已回答
How can I share variables between .m files?
Okay.. You have done two mistakes with this... 1: In the file test.m, the function shall be function val = test(x) ...

11 years 前 | 1

已回答
how to reverse a string in matlab
Search the documentation/help for flip fliplr flipud

11 years 前 | 1

| 已接受

已回答
How to replace a Constant block with a From Workspace block programatically?
Try this... e.g. Model is open, block is named as 'Constant'... replace_block(bdroot,'Name','Constant', 'built-in/FromWo...

11 years 前 | 0

| 已接受

已回答
How many input variables can a MATLAB function have?
You can find the number of input arguments supported on the matlab version that you are using the example below: I was able to ...

11 years 前 | 0

已回答
creating a temporary file in specified directory
The function ... getenv('TEMP'); shows the current path of the temporary directory in which the temporary files will be ...

11 years 前 | 0

已回答
How to generate a restricted matrix
say, c = 2; b = 1:10; >>v = c.^b

11 years 前 | 0

| 已接受

已回答
Output Data produced is in a 2D array instead of 1D array.
My understanding of the problem statement: - Vector input of 109*1 - For every time step one value out of this vector sho...

11 years 前 | 0

已回答
how to get disp('') to displace in one line instead of many
Concat the strings... function v=test(x) v=x+2; disp(['The answer is ',num2str(v),' hooray']); end At...

11 years 前 | 0

已回答
How to remove tick label from y axis
Hello James, I tried your problem statement in the following example. fh = plot(-10:10); axis = get(fh,'Parent')...

11 years 前 | 0