therealone7
Badges: 0
Rep:
?
#1
Report Thread starter 4 years ago
#1
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?
0
reply
Phichi
Badges: 11
Rep:
?
#2
Report 4 years ago
#2
(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.
0
reply
therealone7
Badges: 0
Rep:
?
#3
Report Thread starter 4 years ago
#3
(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.
Attached files
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • University of East Anglia
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19
  • University for the Creative Arts
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19
  • University of Gloucestershire
    Undergraduate Open Day Undergraduate
    Sun, 20 Oct '19

Have you made up your mind on your five uni choices?

Yes I know where I'm applying (76)
67.26%
No I haven't decided yet (21)
18.58%
Yes but I might change my mind (16)
14.16%

Watched Threads

View All