Question

Integration and Trajectory of Dubin's Car Model

T=30;%time dt=.1; %step size N=T/dt; %number of steps deltheta=0; %steering input delT=0.5; %throttle input z=zeros(4,N);...

1 year ago | 0 answers | 0

Question

Fiber Recruitment Model Solve & Plot

Every 0.1mm, a new fiber with a stiffness 20 N/mm is recruited starting from x=0. The net force is given by the following equati...

1 year ago | 0 answers | 0

Question

Return if No Solution

I am asked to solve the equation: Ax = B for two randomly generated matrices. Furthermore, I am instructed that the script shoul...

1 year ago | 2 answers | 0

Question

How do I return something only if all steps of an conditional statement is true?

I am attempting to generate a random 4x4 matrix and if all the real parts of the eigenvalues are negative, then compute the inve...

1 year ago | 1 answer | 0

Question

Integrate for a specific period of time

Please help me. I am trying to use Euler integration to integrate for 10 seconds with a step size of .01 seconds. Plot x versus...

1 year ago | 2 answers | 0

Question

Create a Matrix with Specific Pattern for Changing Values

How can I create a matrix such as this one where the change in value is some dx and each column varies differently? [-3*pi/4 -3...

2 years ago | 1 answer | 0

Question

Create This Matrix to N-Value

I am trying to create a matrix that looks like this without having to type out each value. How can I create a matrix like this o...

2 years ago | 1 answer | 0

Question

Hold Position Once Condition Is Met

I am moving points within a for loop. However, once a point reaches a specific position, I would like it to hold that position. ...

2 years ago | 0 answers | 0

Question

Display Value in Text Box

I am trying to display the value of a in a text box. a=trapz(cP6-cP7); str='Area Swept: %d'; annotation('textbo...

2 years ago | 1 answer | 0

Question

Calculate the Area Between Two Curves

I am trying to calculate the area between these two curves: cP6(k,:)=P6; cP7(k,:)=P7; plot(cP6(:,1),cP6(:,2),'LineWidth',2,...

2 years ago | 1 answer | 0

Question

Creating Curve from Moving Point

I want to create curves based on moving points P6 and P7. Here is what I have so far. Can someone please tell me how I can creat...

2 years ago | 1 answer | 0

Question

Area Swept by Vector

I am looking to calculate the area swept by h{13}. That would be the area between h{14} and h{15}. How do I do this? hold on ...

2 years ago | 1 answer | 0

Question

Reading Specific Data Into MATLAB from an Excel File

I need to read data from the attached file into my program in MATLAB. How do I do this? I only need the columns listed below: i...

2 years ago | 1 answer | 0

Question

How do I hold the second to last image of the simulation?

hold on axis equal axis off b = 0:pi/40:pi/4; c = 0:pi/20:pi/2; P4vct=nan(numel(b),2); for k = 1:numel(b) P1=...

2 years ago | 1 answer | 0

Question

How to Plot the Trajectory of a Point

I am trying to plot the trajectory of P4 as it travels in the animation. hold on axis equal axis off b = 0:pi/60:pi/6; ...

2 years ago | 1 answer | 0

Question

How do I create a for loop that can use multiple changing variables?

I am trying to create a for loop in which multiple circles move at the same time; however, each circle has a specific angle that...

2 years ago | 1 answer | 0

Question

How can I get multiple for loops to run at the same time?

%Points P1=[-15,0]; P2=[-5,0]; plot([P1(1) P2(1)],[P1(2) P2(2)],'LineWidth',5,'Color','black'); A=[0,0]; circle=viscircle...

2 years ago | 1 answer | 0