photo

sasha


2014 年からアクティブ

Followers: 0   Following: 0

統計

  • Thankful Level 1

バッジを表示

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...

9年以上 前 | 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...

9年以上 前 | 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. ...

9年以上 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年 前 | 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年 前 | 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年 前 | 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年 前 | 2 件の回答 | 0

2

回答