Réponse apportée
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) ...

environ 11 ans il y a | 1

Réponse apportée
how to reverse a string in matlab
Search the documentation/help for flip fliplr flipud

environ 11 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 11 ans il y a | 0

Réponse apportée
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 ...

environ 11 ans il y a | 0

Réponse apportée
How to generate a restricted matrix
say, c = 2; b = 1:10; >>v = c.^b

environ 11 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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')...

environ 11 ans il y a | 1