A répondu
Variable changes to previously calculated value each iteration.
Since T is an array and you are using a for loop to find each value of p2(T), you should you T(i) instead of T. Check the co...

presque 5 ans il y a | 0

A répondu
HOW CAN I CREATE A MATRIX FILE FROM 3 EXCEL FILES
First, there is several ways to import data into Matlab. CHeck the following link: https://www.mathworks.com/help/matlab/import...

presque 5 ans il y a | 0

A répondu
Count size of groups of 1's
Here is a way you can perform this: gpos = [1 1 1 0 0 1 1 0 1 1]'; [I, ~] = find(gpos == 1); k = 0; result = []; for i=...

presque 5 ans il y a | 0

| A accepté

A répondu
Import Text Data As a Numeric Matrix with Specific Delimiters
I am not sure about older versions of Matlab, but for R2018b you can import data by clicking with the right button in the mouse ...

presque 5 ans il y a | 1

| A accepté

A répondu
How to keep colorbar without changing the figure size?
You can set the desired size of the figure. For example: figure(1); % Figure 1 with out colorbar surf(peaks); % Ge...

presque 5 ans il y a | 0

| A accepté

Question


Find Child Subexpressions of Symbolic Expression
I believe the function children might have a problem. Acording to the documentation it returns a cell array containing the child...

environ 5 ans il y a | 1 réponse | 1

1

réponse

A répondu
How to multiply all values in the diagonal of a matrix by -1 in Matlab?
Hi Augustin, This may help you a21 = 1:1:5; c3 = tril((repmat(a21,[5 1]))'.^2, -1) + triu((repmat(a21,[5 1])).^2); ...

plus de 5 ans il y a | 1

A répondu
plotting a plane in three dimensions including data points
Run the following code: [x y] = meshgrid(-10:1:10); z = 2.*x + 3.*y + 4; surf(x,y,z); To add the data you can add...

plus de 5 ans il y a | 3

| A accepté

A répondu
How to hide the obscured portion of the lines in 3D line plot using plot3 command ??
You may check the properties of the surf function ( <https://www.mathworks.com/help/matlab/ref/surf.html> ). I am sure if you pl...

plus de 5 ans il y a | 0

A répondu
Selecting four elements then starting again.
Check the following code. I am not sure that is what you need, but it performs what you said in my understanding. A = ...

plus de 5 ans il y a | 0

| A accepté

A répondu
Create a matrix that contains sine wave
Try this: t=0:0.001:1; x=zeros(5,length(t)); for fi=1:5 for i=1:length(t) x(fi,i)=sin(2*pi...

plus de 5 ans il y a | 1

A répondu
I am using pzmap where poles and zeros are ploted but my question how can i see poles on unit circle only not zeros?
You can extract the pole and zeros and construct your model again using zpk for example. Check the following example: ...

plus de 5 ans il y a | 0

| A accepté