Feeds
提问
plotting step function with variable step length
I want to do a plot of y as a function of time. Where the values of y are either zero or one and they alternate. The time that y...
10 years 前 | 1 个回答 | 0
1
个回答提问
Stand alone C file
I have my matlab code which is working, but a little slow. I want to write it for C, but I have an error that comes up when I us...
10 years 前 | 2 个回答 | 0
2
个回答提问
numerically integrate multidimensional function along one dimension.
I have a function: f(x,y,z). I want to numerically integrate this function along x and be left with a function of only y and z. ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Does order of multiplication in a for loop matter?
I am currently trying to rewrite my code in a way to get rid of the for loops I have, but as I was doing that, I stumbled on som...
10 years 前 | 2 个回答 | 0
2
个回答提问
how to vectorize a for-loop or use parfor to speed it up?
I have this for loop right now: for x = 2:Nx_max-1 for y = 2:Ny_max-1 lp(x,y,t1) = (1/(2*h^2))...
10 years 前 | 1 个回答 | 0
1
个回答提问
speeding up nested for loops
I have a couple of nested for loops that take a very long time to calculate. Basically they look like: for x= 1:Nx for...
10 years 前 | 2 个回答 | 0
2
个回答提问
question regarding what is allowed in a parfor loop
I am confused about a section of the description of how to use parfor: " Next assume that A, B, and C are variables and that ...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to save an array output to file every 1000 iterations?
My array is 201 by 201. And I want to watch it evolve by looking at every 1000 steps in time. Basically I have an initial array ...
10 years 前 | 4 个回答 | 0
4
个回答提问
Trying to define an array as the derivative of the terms of another array gives just zeros.
I have this code. Most of it is working fine. The problem is when I'm trying to define the array dpx and dpy. Instead of giving ...
10 years 前 | 1 个回答 | 0
1
个回答提问
Why is my if statement making the values of a previous array disappear?
My code basically looks like: for x = 1:xmax for y = 1:ymax for l = 1:xmax for m = 1:ymax ...
10 years 前 | 2 个回答 | 0
2
个回答提问
How to save only latest ~10 iterations on for loop
I'm trying to run a for loop that will give me a new iteration of a matrix at each time step. The problem comes in because I nee...
10 years 前 | 2 个回答 | 0