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

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

74726 views

Responded 6 years ago

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

4

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

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

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

Answered 2 years ago

I'm not quite sure what the problem here turned out to be or how you or TMW solved it, but many, many versions ago when MATLAB f...

36106 views

Responded 3 years ago

This works: C = {'A1a' 'A2a' 'A1a' 'A2b' 'A1b' 'A2a' 'A1b' 'A2b'}; Cu = unique(C,'...

2

Answered 22 days ago

The reason the first data set returned the slope you expected is that the intercept was zero, and your design forced a zero inte...

Answered 1 month ago

Since you have gridded data, the <http://www.mathworks.com/help/matlab/ref/interp2.html *|interp2|*> function is perfect for wha...

Answered 2 months ago

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

Answered 3 months 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 4 months 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...

Answered 5 months ago

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

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

Answered 6 months ago

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

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select Netherlands from the following list:

See all countries