Réponse apportée
Passing the Value as Argument but not getting it in the function file
In your function, you need to assign or return iNew,jNew

environ 6 ans il y a | 0

Réponse apportée
Removing loaded variables from workspace after changing name with eval
Use one example, figure out if you can use the code below. If not, use "clear" to delete variable from workspace. Patient=load(...

environ 6 ans il y a | 0

Réponse apportée
is it a normal display of the command window on MATLAB for window? and how to fix if it needs attention?
Some of the folders must have been moved or deleted. Run "restoredefaultpath" and re-start MATLAB.

environ 6 ans il y a | 0

Réponse apportée
Changing model programmatically: discard changes and exit?
close_system(sys,saveflag)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
dec2bin is adding inappropriate 0s to negative numbers when numBits is specified
Report to tech support. I think it looks like a bug. From "doc dec2bin" in R2020a Starting in R2020a, the dec2bin function con...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
how to store coordinate values xy[] for randomly generate point
Try one-liner, no loop. xy=[xm*rand(NumOfNodes,1), ym*rand(NumOfNodes,1)]

environ 6 ans il y a | 0

| A accepté

Réponse apportée
display my generated matrix
disp(dist) open('dist')

environ 6 ans il y a | 0

Réponse apportée
Installation for all users on a common machine
Just follow the installation instruction and activate license. You will be asked to activate MATLAB per machine or per user.

environ 6 ans il y a | 0

Réponse apportée
Storage Class replaced to default AUTO.
If the data is in MATLAB base workspace, they have to be saved separately, in .mat file or exported to .m file, although MATLAB ...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How can I overcome the error "variable admit must be of data type logical instead of double"..I have to return logical values true or false using the function below.what is wrong with this?
The error message must have come from somewhere else, not from this function. Here, nothing is wrong except that the data type o...

environ 6 ans il y a | 6

| A accepté

Réponse apportée
How to extract value of cell in excel?
readtable() is ideal for this. See "doc readtable" for examples.

environ 6 ans il y a | 0

Réponse apportée
changing Kp value in a loop for PID tuning
pidsys=pid(1) creats a PID controller. pidsys is an object with the class of 'pid'. You can run class(pidsys) or get(pidsys) to ...

environ 6 ans il y a | 0

Réponse apportée
p_save Change Size on Every Loop Iteration
p_save(:,i)=p

environ 6 ans il y a | 1

Réponse apportée
Convert a table of tables in a single table
Okay, what you have is new in R2020a. Here is an example: a{1}=table(rand(9,1)); a{2}=table(rand(9,1)); b=cellfun(@table2arra...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to load .prj file from windows command prompt?
matlab.exe -r "open('D:\automation\simulink\autogen\autogen.prj')"

environ 6 ans il y a | 1

| A accepté

Réponse apportée
I need to install a toolbox for a specific function and i have restricted acces, why ?
You may have the license to the toolbox. But the license administrators (on both the Mathworks side and your organization side) ...

environ 6 ans il y a | 0

Réponse apportée
Why FixedStep is not really fixed in simulink?
It conflicts with your solver specification. ode45 is a variable-step solver. FixedStep - Fixed step size [ positive scalar ] ...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
My "roots" command is not working and displaying an error (MATLAB 2017a) ver.
You are running your own roots.m SCRIPT, not the MATLAB roots() function.

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Sort rows of a matrix
sortrows()

environ 6 ans il y a | 1

Réponse apportée
How do I create a matrix with all binary combinations?
I though it should be ff2n(4)

environ 6 ans il y a | 4

Réponse apportée
How to avoid 10^3 matrix appearance ?
format long or something else, "help format"

environ 6 ans il y a | 0

Réponse apportée
Incorrect behavior of str2num?
Seems that way. >> version ans = '9.5.0.1298439 (R2018b) Update 7' >> str2num('"Y"') ans = "Y" >> version an...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to set StopTime programmatically?
test_model and 'test' must have been two different models.

environ 6 ans il y a | 0

Réponse apportée
Search through folders and subfolders to collect data saved as a certain name
a=dir('**/Data*.mat')

environ 6 ans il y a | 0

Réponse apportée
Repeating stair sequence does not hold value when plotting on MATLAB
try the stairs() instead of plot()?

environ 6 ans il y a | 1

| A accepté

Réponse apportée
cell conversion to mat
b=cellfun(@(x) x(:), a, 'UniformOutput', false) out=cell2mat(b)

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to programmatically set To File block parameters?
The parameter name is "Filename" and "MatrixName". BTW, the file name should be *.mat, not *.m Select the "To File" block in th...

environ 6 ans il y a | 1

Réponse apportée
Displaying an apostrophe (')
display('''') search for 'Single quotation mark' in "doc sprintf"

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Subtracting different sized arrays in intervals
A=(1:24)'; B=(1:6)'; C=A-repelem(B,numel(A)/numel(B))

environ 6 ans il y a | 0

| A accepté

Réponse apportée
What the difference between using bracket and not.
I think the fundenmental reason is that the function definition requires that the left side contains "[ ]" when there are multip...

environ 6 ans il y a | 0

Charger plus