The Student Room Group

Urgent help in Matlab needed

Hi, I need a bit of help with a Matlab code. Don't want any code written for me, just need some advice.

Is there anyone who I can message for help?
Reply 1
Original post by therealone7
Hi, I need a bit of help with a Matlab code. Don't want any code written for me, just need some advice.

Is there anyone who I can message for help?


Posting the problem would probably yield more responses.
Reply 2
Original post by Phichi
Posting the problem would probably yield more responses.


ok,here it is

I am trying to fit the curve to the equations in the red box.

Someone suggested to use lsqcurvefit to the job, and provided me with this

% MAPPING: B(1) = r2, B(2) = b, B(3) = c, Th24 = [theta2(: ) theta4(: )];pathfun = @(B, Th24) [B(1).*cos(Th24(:,1))+hypot(B(2),B(3)).*cos(Th24(:,2)+atan(B(3)/B(2))-pi/2); B(1).*sin(Th24(:,1))+hypot(B(2),B(3)).*sin(Th24(:,2)+atan(B(3)/B(2))-pi/2)];

But I don't know what to do with it.
(edited 9 years ago)

Quick Reply

Latest