Feeds
已回答
Change matrix dimensions from 4D to 2 D : matrix manipulation
This should make the matrix you were looking for: datatemp = permute(squeeze(data(:,1,:,:)),[2 1 3]); datatemp = reshape...
Change matrix dimensions from 4D to 2 D : matrix manipulation
This should make the matrix you were looking for: datatemp = permute(squeeze(data(:,1,:,:)),[2 1 3]); datatemp = reshape...
8 years 前 | 1
已回答
unstable ode45 solution
I got it to work by limiting max step size. options = odeset('AbsTol',[1e-8 1e-8 1e-8 1e-8],'RelTol',1e-4, 'MaxStep',0.1); ...
unstable ode45 solution
I got it to work by limiting max step size. options = odeset('AbsTol',[1e-8 1e-8 1e-8 1e-8],'RelTol',1e-4, 'MaxStep',0.1); ...
8 years 前 | 0
| 已接受
已回答
How to decrease index of an vector on every time step?
I don't have all your code so I can't be sure this is the problem but: rTotalAccum(n) = rTotalAccum(n) - rTotalAccum(n)*0.0...
How to decrease index of an vector on every time step?
I don't have all your code so I can't be sure this is the problem but: rTotalAccum(n) = rTotalAccum(n) - rTotalAccum(n)*0.0...
8 years 前 | 1
| 已接受
已回答
ploting a specific function.
t = linspace(0,1,10001); x = nan(size(t)); for i =1:numel(t) if t(i) <=0.2 x(i) = 5*t(i); elsei...
ploting a specific function.
t = linspace(0,1,10001); x = nan(size(t)); for i =1:numel(t) if t(i) <=0.2 x(i) = 5*t(i); elsei...
8 years 前 | 0
提问
unstable ode45 solution
I am currently modeling Hodgkin-Huxley equations. I give external input to the model at specific times and see whether action po...
8 years 前 | 2 个回答 | 0
2
个回答提问
Heat map of 2-D scatter plot data
I have a n by 2 matrix called new_data, and I want to make a heat map plotting density of scatter distribution. I want to add...
9 years 前 | 2 个回答 | 0
2
个回答提问
How do I load ASCII dat file to MATLAB
After reading some articles in the forum, I used textscan to load my .dat file to MATLAB. Unfortunately, MATLAB only read the f...
9 years 前 | 2 个回答 | 0