Respondida
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) ...

más de 10 años hace | 1

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

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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 ...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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')...

más de 10 años hace | 0