Feeds
답변 있음
How can I return the values of a loop
You are computing k once for each value of i and overwriting it. If I understand what you want, try: i = 1:5; j = 0:5; k...
How can I return the values of a loop
You are computing k once for each value of i and overwriting it. If I understand what you want, try: i = 1:5; j = 0:5; k...
8년 초과 전 | 0
| 수락됨
질문
Create an array of n function handle
Hello, How can I create a set of ode equations? Example: fun1 = @(t,x,k) x-k; I want to generate a function of n e...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
Struggling at 'Events' of ODE45
Hello, I have a ODE and need to compute the "exact" time and values of y at y(2)=0 and I'm using ode45 and 'Events'. When ...
거의 9년 전 | 답변 수: 1 | 0
1
답변질문
Struggling at events of ode function
Hello, I'm trying to use events function to find the coordinates of a ODE function of n variables. What I want is to find the...
대략 9년 전 | 답변 수: 0 | 0
0
답변답변 있음
Can You Explain This Weird Behavior
I'm not an expert, but try to never use known MATLAB functions. To check if a name is already used, go to command whindow and ty...
Can You Explain This Weird Behavior
I'm not an expert, but try to never use known MATLAB functions. To check if a name is already used, go to command whindow and ty...
9년 초과 전 | 1
질문
How to automatically choose to compute for or parfor loops
Hi, I wonder if there's a way to specify if I want to compute with a normal for or with a parfor. What I don't want is to...
9년 초과 전 | 답변 수: 1 | 3
1
답변질문
How to vectorize this simple for-loop
Hello, I'm trying to vectorize something like this: z=zeros(3); x=[1 2 3]; y=x; for i=1:length(x) %or y, d...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to group data in cells?
Hello, My code works on a data file. By loading the file, I have a 5xn matrix (n is approximately BIG). Each column represent...
9년 초과 전 | 답변 수: 0 | 0
0
답변질문
Problem scattering high amount of data
Hello, I'm trying to scatter more than 80Mb of data in one scatter figure and I see nothing but blue. I'm trying to get small...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Which plot do I need?
Hello, I'm trying to plot in 2D some points and I want to color them depending on a logic (1 or 0) classification. I'll ex...
9년 초과 전 | 답변 수: 3 | 0
3
답변질문
How to automatically stop a function execution if it's not running right?
Hi, I have a problem with running my code. I'm numerically solving a Poincaré map of a dynamical system several times with di...
9년 초과 전 | 답변 수: 0 | 0
0
답변질문
How can I get a derivated function df/dt?
Hello, I'm trying to calculate derivate functions like z(t)=cos(x(t))+y(t)^2 and I expect answers like z'(t)=-x'(t)*sin(x(t))...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Struggling with ode45 MATLAB function
Hello everybody, I'm trying to introduce my function into ode45 to solve it but it messages me "Not enough input arguments". ...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to speed up my while loops
Hello, I have been looking for ways to speed up my code because sometimes I spend some hours at running once MATLAB. I've rea...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
How can I speed up importing large .d files?
Hi, soon I'll have large files, about 50000x6 (more than one of them) and I'll have to work on them several times to plot di...
9년 초과 전 | 답변 수: 2 | 0
2
답변답변 있음
Why do I get different outputs at different run's?
Thanks to everybody for your comments. I see global variables are a mess. I finally solved the problem this way: fun goes from ...
Why do I get different outputs at different run's?
Thanks to everybody for your comments. I see global variables are a mess. I finally solved the problem this way: fun goes from ...
9년 초과 전 | 0
| 수락됨
질문
Why do I get different outputs at different run's?
Hi, there's something very odd happening with my code. I'm doing three times the same calculations for three different input va...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Am I overwriting data?
Hi, I need to get three different orbits and I think I might be overwriting data because when I plot them together I just get...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to plot different length vectors
Hi, I need to plot different orbits in one figure. The coordinate vectors are result of a Runge-Kutta 7-8 so I can't kno...
9년 초과 전 | 답변 수: 1 | 0