Answered
Is it possible to use (publish) markup inside nested functions
Also note that if you're trying to do fancy markup, you may be better off with the report generator that gives you really fine c...

9 years ago | 0

| accepted

Answered
using a timer in GUI
function NameOfFun() do something end Needs to take in the two inputs that come by default, src, evt. function Name...

9 years ago | 0

| accepted

Answered
Matlab VS adobe photoshop
Automation.

9 years ago | 0

Answered
Reduce comuting time: can I change a triple for-loop to a matrix formula?
Did you preallocate _meanrs_ and _meants_? E.g. before the loop meanrs = zeros(whatever_the_final_size_is); ?

9 years ago | 0

Answered
Find rows and columns in matrix that meet a condition, fast
How about: bwconncomp() This returns a list of pixel indices, from which you can calculate row/column and size. You can...

9 years ago | 1

| accepted

Answered
is it possible to expand [0 {9}, 45 {2}, 0 {9}]
This should do it: str = '[0 {9}, 45{2}, 0{9}]'; expr = '(?<num>\d*)'; % match digits nums = cellfun(@str2double,rege...

9 years ago | 1

Answered
Suggestions on how to optimize this code (avoid for-loop)?
This does what you want but does not order based on your country/product order that you have hardwired but rather based on uvp, ...

9 years ago | 0

| accepted

Answered
poly2cw doesn't work for this simple rectangle. I have an example here. Could you please check this code?
*EDIT with more info from comments* It sounds like what you really want is the convex hull of your points since your points...

9 years ago | 0

| accepted

Answered
Run multiple for loops in separate functions simultaneously?
Use a |timer|. The |timer| will periodically fire calling the arduino method which can then call a plot update as necessary. I...

9 years ago | 0

Answered
First time using MATLAB,and I need help.
You can create an anonymous function like this (e.g. |f = x.^2|): f = @(x)x.^2 And evaluate it at a specific point (e.g....

9 years ago | 0

Answered
Not sure how to ask this, but here's my scenario:
%% Data x = {'a', 'b'; 'a', 'c'; 'a', 'b'; 'b', 'c'; 'c', 'a'; 'a', 'd'}; %% Engine uv ...

9 years ago | 0

| accepted

Answered
Plotting graph objects with curved edges and forced layout
<http://blogs.mathworks.com/graphics/2015/12/31/interactive-graph-layout/> Maybe?

9 years ago | 0

Answered
Can my workstation also be used as the DCS cluster head?
Yes, it can be.

9 years ago | 0

Answered
What determines the time axis in spectrogram using normalized frequencies?
Time is a function of the sampling frequency, fs. Compare spectrogram(rand(1,100000),64,0,64,8000) spectrogram(rand(1...

9 years ago | 0

Answered
FAQ: How can I process a sequence of files?
In MATLAB R2014b and newer, you can use a |datastore| to read a sequence of files in a load-analyze-discard manner or in one sho...

9 years ago | 1

Answered
Simevents stochastic replications capability?
You can set the seed of an entity generator in order to do this (R2016a SimEvents). <</matlabcentral/answers/uploaded_files/5...

9 years ago | 0

Answered
MATLAB code with GUI codes on another language (C#, Python, ...)
Yes*2, you can run the MATLAB engine from Python or open it as an automation server in C#. <http://www.mathworks.com/help/rel...

9 years ago | 0

Answered
How to live plot 2 seconds of DAQ data while updating 10 times/sec
One easy way is to use |animatedline| in newer releases.

9 years ago | 0

Answered
How to use datetime to plot value vs. hour of day, i.e. daily cycle?
*EDIT* %% [tHours.Year, tHours.Month, tHours.Day] = deal(0); plot(tHours,humidity,'x','DatetimeTickFormat','HH')

9 years ago | 0

| accepted

Answered
Using accumarray or a similar method for tables
% fake c and data c = [1; 2; 2; 1; 3] data = repmat(1:6,5,1) % engine sz = size(data) accumarray([repmat(c,sz(2),1)...

9 years ago | 0

Answered
Exclude packages from MCR
Starting in R2016a, if you are only doing numerics (not graphics) the MCR will be much smaller <http://www.mathworks.com/help...

9 years ago | 2

| accepted

Answered
How effective is Report Generator DOM API on linux?
# As of R2016a, you can go direct to pdf on Linux without needing Office or Word installed. It pipes it direct to PDF without L...

9 years ago | 0

| accepted

Answered
Pass variables during minimization routine
Use a nested function instead of an anonymous one. <http://www.mathworks.com/help/releases/R2016a/matlab/matlab_prog/nested-f...

9 years ago | 0

Answered
What is an import list?
So you can use the shortname pack1.pack2.file(pi) or import pack1.pack2.* file(pi) I tend to do the import if I...

9 years ago | 0

Answered
How to only keep lines that start with a number?
x = fileread('test.csv') xc = strsplit(x,sprintf('\n')) % split to cellstr ix = regexp(xc,'^\d') % match a digit at beginnin...

9 years ago | 0

Answered
Removing components touching phase in 3d volume
Use |bwdist| to get the distance from every pixel to the border (euclidean distance). Zero out any less than or equal to sqrt(2...

9 years ago | 0

Answered
Most efficient way to sum anti-diagonal elements
diag(flip(A))

9 years ago | 0

Answered
Is there a way to provide a variable to a worker of a parpool?
You want a |parallel.pool.Constant|. <https://www.mathworks.com/help/distcomp/parallel.pool.constant.html>

9 years ago | 1

Answered
Accumarray error: First input SUBS must contain positive integer subscripts.
[uval,~,subs] = unique(temp_raw_JE50); accumarray(subs,vals) You most likely want to accumulate by the unique values. Sin...

9 years ago | 0

| accepted

Load more