Community Profile

Contact

Professional Interests: MATLAB, Simulink, Comptuer Vision

Top 1% contributor

MATLAB Function Block is having difficulty inferring the size of x. Replacing x=value(ind); with x=value(ind(1)...

accepted

1

Answered 1 year ago

This looks like it might be a path issue. Try: restore defaultpath savepath rehash toolboxcache and restart MATLAB...

Patrik, The MATLAB Answers article <http://www.mathworks.com/matlabcentral/answers/102537-why-do-i-receive-an-error-when-i-...

One approach is to create a logical matrix for the input by comparing it to the target value. You can then sum a row, column, or...

Answered 2 years ago

The <http://www.mathworks.com/help/releases/R2013b/curvefit/fit.html fit function> can use custom non-linear models. <http://www...

Check if the xlabel string is a cell array when you retrieve it. If it is a cell, then the code: xoffset = blah...

You can use <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hold.html |hold|> to overlay multiple plots on one set of ...

You should use |%q| instead of |%s| when double quotation marks are used to indicate text that you want to keep together. Additi...

There is no need to use a global. You can pass t in as an argument to your ode function. <http://www.mathworks.com/help/matlab/r...

2

Use strsplit with "Collapse Delimiters" disabled. inputstr = '[1,1,,1;1,1,,1;1,1,,1]'; C = strsplit( inputstr , ',' , 'C...

You can use strsplit to split the string into cells. For your output, you can use the line feed character char(10) as the delimi...

0

b = regexprep(a,'^_','','emptymatch')

This looks like an issue with the Painters renderer. Switching to OpenGL resolves the issue on my end. x = [0 0; 12 0; 6 6]...

The function <http://www.mathworks.com/help/matlab/ref/strsplit.html |strsplit|> will split a string into parts based on a delim...

All of these approaches will throw an error if |a| is not a numeric array, logical array, character array, or categorical array....

The function |imcrop| returns a matrix. You are trying to store this matrix as a single element of an array. This is not possibl...

If you want to make the line black at the time of plotting, add the argument |'k'| to the plot command. Example: figure;...

Let's see if I have your situation right. Your measurements are stored in a 9450x10 matrix where each row is a row correspond...

Assuming that by the first 10 pixels, you mean the first 10 in column major order, <http://www.mathworks.com/help/releases/R2013...

A title is a text object. You can change the position of any text object by using <http://www.mathworks.com/help/releases/R2013b...

This can be done using <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hist.html hist> and <http://www.mathworks.com/h...

The code for generating the table and printing it to a file is correct, but the variables |y|, |ud|, and |taub| are all scalars....

You can read a variable |'variablename'| in a group |'/groupname/'| using |'/groupname/variablename|' as the argument for the va...

A for loop needs an index variable and a set of values to loop through. Check out the documentation <http://www.mathworks.com/he...

The function <http://www.mathworks.com/help/releases/R2013b/stats/kmeans.html |kmeans|> is part of the Statistics Toolbox in MAT...

You can <http://www.mathworks.com/help/matlab/math/matrix-indexing.html#f1-85544 access multiple elements of a matrix> using a v...

You can plot multiple histograms on a single set of axes using the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hol...

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

Solve this!

4 months ago

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

Load more