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 9 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 1 month 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...
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 10 months ago
[d,s,r] = xlsread('Damith test.xls');
DN = datenum([d(:,1:4) repmat([0 0], size(d,1), 1)]); % Convert All...
Answered 7 days ago
The <http://www.mathworks.com/help/matlab/ref/colon.html *|colon|*> operator creates vectors. In your illustration, it creates ...
Answered 9 days ago
A([1 4], 2:5) = B([1 3], 3:6);
It could be made more general if necessary. This is specific because it is ...
Answered 29 days ago
vi = linspace(1, 3, 5); % Interpolation Vector
for k1 = 1:size(A,1)
In the line that throws the error:
what is the _value_ of |‘t’|?
In *|R2014b|*, the *|round|* function now supports rounding to a specific number of digits:
minval = 0.4410;
maxval = ...
Answered 2 months ago
fidi = fopen('KEmodel12_G201.txt');
d = textscan(fidi, '%f%f%f%f%f%f%f%f', 'HeaderLines',1, 'Delimiter','\n',...
I’m not sure I understand what you want to do, but the <http://www.mathworks.com/help/matlab/ref/cellstr.html *|cellstr|*> funct...
‘It didn’t happen before’ on the same computer or a different computer?
To see what Toolboxes you have installed, in the Co...
Answered 3 months ago
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 5 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...
Answered 6 months ago
Untested code, but I would change the first line of the function to:
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...
Answered 7 months ago
Join the conversation