Community Profile

Contact

Hic sunt dracones!

Top 1% contributor

There isn’t one specifically, but you can create one easily enough: windhx = @(C,W,S) S*[sind(abs(C-W)); cosd(abs(C-W))]; ...

accepted

5

Answered 4 months ago

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

59 downloads

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

73369 views

Responded 6 years ago

This works: Xm1 = mean(X(X(:,1)<0,1));

4

Answered 11 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: figure(1) ...

I do not understand what you mean by ‘represent the integral’, so I will take some guesses: # To do a numerical integration ...

3

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 5 months ago

Because your instructor told you to, so you’ll learn how they work.

Answered 9 months ago

*1.* You most likely have a variable named |std|. This command should give you that information (copy-paste it to the Command W...

I had to do some really deep handle-diving, but I finally figured out how to link them to the colors you choose for the bars and...

There is one in the Symbolic Math Toolbox: <http://www.mathworks.com/help/symbolic/rewrite.html *|rewrite|*>! To wit: ...

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

The easiest way is to do it directly from the *|plot|* GUI itself. Click the image of the floppy disk in the upper left corner ...

2

Answered 19 days ago

You cannot do what you want. You have three data pairs, so you can fit a maximum of three parameters, not the four you want to ...

Answered 1 month ago

Assuming you don’t want to turn the second one into a function and pass data to it as arguments, the easiest way would be to *|s...

First, the singular of ‘dice’ is ‘die’. Second, in your *|if|* block, you do not compare your *|‘choice’|* variable with th...

That seems to me to be a bit of a strenuous start to a MATLAB course! If you can do the algebra, then all you need to know ...

Answered 3 months ago

If you have the Optimization Toolbox, probably the easiest way is to use the <http://www.mathworks.com/help/optim/ug/lsqlin.html...

No tips. Your *|y|* is going to *|+Inf|* as *|x->0+|* (that is *|x->0|* from the positive direction) regardless. (It also ...

It is, using the *|cumsum|* function (and a bit of fudging to get the result you want): x = 1:5; xs = [1 1+cumsum(x)] ...

To begin with, the quote syntax is wrong. This is correct: fprintf( '%8sVIII\n', 'Henry' ) fprintf( '%-8sVIII\n', ...

This works: X = [1 2 3]; Y = [4 5 6]; Z = reshape( bsxfun(@plus, X, Y'), 1, []);

There are several problems with your code. This works: yfirst=[.8967e07 1.6294e07 2.6587e07 3.2537e07 3.6136e07 3.841...

Load more