Hic sunt dracones!
Top 1% contributor
When you say ‘EKG’ do you mean full surface |12|-lead, |Lead-II| rhythm strips, or intracardiac recordings (taken with an electr...
Answered 7 months ago
POLYPARCI calculates confidence intervals for parameters estimated by ‘polyfit’.
11 months ago
I didn't have any trouble installing it under Windows 7 (Professional). I upgraded from Vista Home Premium to Win 7 Pro, so Win...
5 years ago
Xm1 = mean(X(X(:,1)<0,1));
Answered 16 days ago
I’ve not used the Data Acquisition Toolbox (I don’t have it), only the Serial Port Devices functions in core MATLAB (with a fing...
Answered 8 months ago
Use the <http://www.mathworks.com/help/matlab/ref/subplot.html *|subplot|*> function.
Your loop becomes:
There is one in the Symbolic Math Toolbox: <http://www.mathworks.com/help/symbolic/rewrite.html *|rewrite|*>!
Your code runs without error and your *|‘a’|* matrix is |(3x3)|. What do you want?
With *|T|* that large, you quickly end up with an array of |Inf| values.
This loop will do what you want:
A0 = 3;
The <http://www.mathworks.com/help/matlab/ref/diag.html *|diag|*> function can do everything you want. You just have to ask it!...
See the documentation for <http://www.mathworks.com/help/symbolic/vpa.html *|vpa|*> and *|double|* (link at the end of the *|vpa...
Not certain what you want, so here are two possibilities:
For any |y| on the domain |(-0.03, 0.01)|:
f = @(x) 1./(1-7...
Your code didn’t post, but in your previous post, your ODE didn’t do anything that might trigger an ‘event’, like a zero-crossin...
Answered 9 months ago
vi = linspace(1, 3, 5); % Interpolation Vector
for k1 = 1:size(A,1)
Answered 13 hours ago
In the line that throws the error:
what is the _value_ of |‘t’|?
Answered 17 days ago
In *|R2014b|*, the *|round|* function now supports rounding to a specific number of digits:
minval = 0.4410;
maxval = ...
Answered 28 days ago
fidi = fopen('KEmodel12_G201.txt');
d = textscan(fidi, '%f%f%f%f%f%f%f%f', 'HeaderLines',1, 'Delimiter','\n',...
Answered 1 month ago
‘It didn’t happen before’ on the same computer or a different computer?
To see what Toolboxes you have installed, in the Co...
The DFT that <http://www.mathworks.com/matlabcentral/answers/164869-error-using-mtimes-is-not-fully-supported-for-integer-classe...
I’ve seen this problem mentioned before. It is a default behaviour of *|bar|*. There is a posted fix for it here: <http://www....
Answered 4 months ago
A=[1,2,3,4; NaN,NaN,5,6; 7,8,NaN,NaN];
R = NaN(size(A'));
Use the *|find|* function:
V1 = find(V, 1, 'first')
The *|find|* function (in its most fundamental application) locates...
Untested code, but I would change the first line of the function to:
Answered 5 months ago
I don’t have your code or figure, so this is the best I can do:
x = linspace(0,10*pi,1000);
y = sin(2*pi*sin(x));
If your |m|-files are scripts running independently of each other, my choice would be to use a |.mat| file. Save all the variab...
It is difficult to read your code and I can’t run it. I ran a simulation of the matrix operation you describe, and got a scalar...
This was an interesting project!
You will probably have to experiment to get exactly the effect you want, but this will get...
I don’t know exactly what sort of format the data is that you’re plotting in those (it seems to be host response to an infectiou...
Answered 6 months ago
I’m not certain what you want, but this works with the data I created for it:
A = rand(20); % Create Mat...
If you plot it:
Eqn = @(n) (n-1)./factorial(n-1).*exp(-(n-1)).*(n-1).^(n-1)-0.38;
n = 1:5;
y = Eqn(n);
Join the conversation