Top 1% contributor
this indeed means that the size of your image is much smaller than the size of your axes. To make it work on different computers...
Answered 25 days ago
for ii = 1:N
B(:,n) = eig(A);
Answered 27 days ago
instead of using load, you could use textscan to read in the txt file
endNotReached = true;
counter = 1;
fid = fope...
Answered 1 month ago
to speed up your code you can use the actxserver instead of xlswrite
%Open an ActiveX connection to Excel
h = ac...
Answered 7 months ago
thanks, this really works perfectly to read in the text that is in the edit box without pressing enter to update the String of t...
2 years ago
Is it possible to start with input to a simulink model that has 4 dimensions (location(x), time(t), statevariable(s), value(y)),...
Asked 3 years ago
I have some data shown in the example figure below for which I want to perform an interpolation to calculate the average value. ...
Asked 1 month ago
you can use a switch - case statement
for i = 1:length(params)
Answered 20 days ago
worked on the data you provided
i am trying to do an automatic calibration to find an o...
Asked 25 days ago
I have a website from which I want to download data. However, the url-link only refers to a form on which two parameters needs t...
Asked 7 months ago
I am using a toolbox that makes use of a NET.addAssembly (developed by DHI namely to read in result files of their software). I ...
Asked 10 months ago
I try to call a function from mex in matlab and for this reason I made a mxArray because the function has two inputs namely a fi...
Asked 1 year ago
My data has two columns and I am trying to find a way to sort the rows such that the values in the second column appear before t...
Asked 2 years ago
When I add the following code to my mdlOutputs function, the mex compiler does not give any errors, but when I run my simulink ...
I am trying to write an s-function in C-code (to have a better simulation performance). In my simulink model I created first I i...
I am very new to simulink and I am trying to figure out how I can convert a model that I created to s-code so that I can use...
try using the diff function before calling find
Answered 9 days ago
as you can see from the legend also, these are just 4 different plots, if the data you have to plot your function is stored in x...
Answered 12 days ago
why not add a table to your GUI where you store the options that you click? Just add a pushbutton that clears the table when you...
Answered 13 days ago
since you are also indexing to k+1 you cannot go all the way to the end of line1!
without looking at your own defined function but try this as it is the correct syntax for anonymous function definition
you can find your answer here :
Answered 14 days ago
just type doc textscan and you can find this there. So you need to add the * after the % sign for data that you do not want to r...
Answered 15 days ago
why did you open a new question?
instead of using gca you should store the handle of the axes generated by your plotyy command since two axes are created so you ...
a(:,2) = mat2cell(cellfun(@str2num,a(:,2)),ones(4,1),1)
Answered 19 days ago
distance is not a built-in function
If your are using code from someone else than you should also ask them to provide the dis...
you cannot define an axes handle in a subplot command because the subplot command generates an axes
You should just write
the problem is that your f1 is not a double but an integer hence the division also gives an integer
if you cast f1 to be a do...
Answered 21 days ago
Join the conversation