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 1 year ago
POLYPARCI calculates confidence intervals for parameters estimated by ‘polyfit’.
1 year 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 6 months 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:
Use the *|coeffs|* function and then get slightly creative:
syms x y z
f = 2*x*y*z - x*z - y*z - x*y + 1;
[cf,T] = c...
Answered 10 days ago
Because your instructor told you to, so you’ll learn how they work.
Answered 4 months ago
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...
There are several problems with your code.
yfirst=[.8967e07 1.6294e07 2.6587e07 3.2537e07 3.6136e07 3.841...
Answered 14 days ago
Very interesting problem! The solution parallels the technique used to fit differential equations using curve fitting functions...
Answered 16 days ago
Create it as a cell array, and use *|unique|*. It will give you _almost_ what you want, however *|unique|* sorts the results, s...
Answered 21 days ago
Your *|‘g’|* is incorrect.
pn = [1 0 1]; % Polynomial
res = 1; ...
Answered 1 month ago
Use the <http://www.mathworks.com/help/matlab/ref/format.html *|format|*> function. You may want to use *|format longE|*.
Use the <http://www.mathworks.com/help/matlab/ref/bar.html *|bar|*> function with the |'grouped'| option. The error bars and th...
Use the <http://www.mathworks.com/help/matlab/ref/sortrows.html *|sortrows|*> function, specifying column |#1|.
Answered 3 months ago
The |‘48’| are ASCII representations of the string representation of zero. The first row of your array must be a vector of char...
If you have *|R2015a|*, you can invert it the old-fashion way with <http://www.mathworks.com/help/symbolic/partfrac.html *|partf...
Use the tilde |‘~’| to suppress outputs you don’t need.
In this instance:
[~,ia] = setdiff(A,B)
[d,s,r] = xlsread('Damith test.xls');
DN = datenum([d(:,1:4) repmat([0 0], size(d,1), 1)]); % Convert All...
The <http://www.mathworks.com/help/matlab/ref/colon.html *|colon|*> operator creates vectors. In your illustration, it creates ...
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 5 months 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’|?
Join the conversation