Feeds
已回答
How to get the the arrow length as legend in quiver function ?????
I had the same problem. I finally used the following workaround: 'hold on' the figure and use the 'quiver' command again in orde...
How to get the the arrow length as legend in quiver function ?????
I had the same problem. I finally used the following workaround: 'hold on' the figure and use the 'quiver' command again in orde...
7 years 前 | 3
| 已接受
已回答
How to speed up a for loop ?
If A have 3 rows and n columns, try that: angle=asin(A(3,:))./(sqrt(A(3,:).^2+A(2,:).^2+A(1,:).^2));
How to speed up a for loop ?
If A have 3 rows and n columns, try that: angle=asin(A(3,:))./(sqrt(A(3,:).^2+A(2,:).^2+A(1,:).^2));
8 years 前 | 0
已回答
Hello, I have been trying to surf two parallel circles but data dimensions don't match and I don't know why. Any help would be nice. Thank you, Omar
Furthermore, surf is not the right command to do what you want. Try the following instead: fill3(X(1,:),Y(1,:),Z(1,:),'r') ...
Hello, I have been trying to surf two parallel circles but data dimensions don't match and I don't know why. Any help would be nice. Thank you, Omar
Furthermore, surf is not the right command to do what you want. Try the following instead: fill3(X(1,:),Y(1,:),Z(1,:),'r') ...
8 years 前 | 0
| 已接受
已回答
Hello, I have been trying to surf two parallel circles but data dimensions don't match and I don't know why. Any help would be nice. Thank you, Omar
Erase Z=[Z;Z]; This is not needed because X already have 2 rows and size(X)=[2 100]
Hello, I have been trying to surf two parallel circles but data dimensions don't match and I don't know why. Any help would be nice. Thank you, Omar
Erase Z=[Z;Z]; This is not needed because X already have 2 rows and size(X)=[2 100]
8 years 前 | 0
已回答
Solving Poisson type of equation, increasing tolerance requirement leads to no response
The solution does not converge. It does not converge even with the 10-5 tolerance. You should print the max variable at each ste...
Solving Poisson type of equation, increasing tolerance requirement leads to no response
The solution does not converge. It does not converge even with the 10-5 tolerance. You should print the max variable at each ste...
8 years 前 | 0
已回答
transform matrices into a single matrix?
Make a 3D matrix. If your 6x6 matrices are in the variables A1,A2,...,A20, then: A=zeros(6,6,20); A(:,:,1)=A1; A(:,:,...
transform matrices into a single matrix?
Make a 3D matrix. If your 6x6 matrices are in the variables A1,A2,...,A20, then: A=zeros(6,6,20); A(:,:,1)=A1; A(:,:,...
8 years 前 | 0
已回答
How do I store output from double for loops, I only get the last iteration?
flygplatsmetar = cell(1,length(Data)); %initialize your 1D cell array for l = 1:length(Data) ... flygplatsmetar...
How do I store output from double for loops, I only get the last iteration?
flygplatsmetar = cell(1,length(Data)); %initialize your 1D cell array for l = 1:length(Data) ... flygplatsmetar...
8 years 前 | 0
已回答
How to assign two values randomly among 2 variables?
r=rand; %random number between 0 and 1 if r<0.5 sensor1 = c1; sensor2 = c2; else sensor1 = c2; ...
How to assign two values randomly among 2 variables?
r=rand; %random number between 0 and 1 if r<0.5 sensor1 = c1; sensor2 = c2; else sensor1 = c2; ...
8 years 前 | 0
已回答
How to colour some node in a graph
Take a look here <https://www.mathworks.com/help/matlab/ref/plot.html?searchHighlight=plot#inputarg_LineSpec> You can give als...
How to colour some node in a graph
Take a look here <https://www.mathworks.com/help/matlab/ref/plot.html?searchHighlight=plot#inputarg_LineSpec> You can give als...
8 years 前 | 0
已回答
How to remove a pattern in a table column
strfind function is what you need ( <https://www.mathworks.com/help/matlab/ref/strfind.html> ). I suppose that you have a cell a...
How to remove a pattern in a table column
strfind function is what you need ( <https://www.mathworks.com/help/matlab/ref/strfind.html> ). I suppose that you have a cell a...
8 years 前 | 0
已回答
Error calculation and using for loop
# You need to put your code inside a function, in order x and n to be parameters. # You can estimate the true value by just us...
Error calculation and using for loop
# You need to put your code inside a function, in order x and n to be parameters. # You can estimate the true value by just us...
8 years 前 | 0
已回答
trying with bisection method to create a function that finds the root of an equation, approximated error, and numbers of iteration
A first problem in your code is that the returned variable "root" does not always take a value. A second one is the "i= i+1;". i...
trying with bisection method to create a function that finds the root of an equation, approximated error, and numbers of iteration
A first problem in your code is that the returned variable "root" does not always take a value. A second one is the "i= i+1;". i...
8 years 前 | 0
| 已接受