Community Profile

photo

Emily Gobreski


Aktiv seit 2016

Followers: 0   Following: 0

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


How can I reformat my loop to get result for given equations?
The task is as follows: Write Matlab program to simulate 2 seconds of engine motion starting at initial conditions of omega2=...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I make a loop the changes for the specified values?
I am trying to set time increment n such that it always corresponds to a 2 degree increment in TH2 based on current omega2. How...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I make the "number of elements" the same?
w2=2*pi; TH2=0; t=2 a2=0.5*t; L2=50; L3=150; for n=1:2:360 TH3(n)=acosd((L2*cosd(TH2))/L3...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


what is wrong with my matrix?
AA=[1 0 1 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0; 0 0 -R*sind(theta) R*cosd(theta) 0 0 0 0 0; 0 0 0 0 1 0 1 0 0; 0 0 0 0 0 1 0 1 0; 0 ...

fast 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Trying to understand a logical way to complete a task
These are the tasks that I am trying to accomplish. What I do not understand is how to find a way to extract a certain value ...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how can i use a "while" loop to automatically increment omega?
theta=120 sign=(cosd (theta)/abs (cosd (theta))) u=.8 w=(2*pi/5) R=1 c=4.05/12 H=18/12 y=H-(R*sind(t...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Error on if loop
if 0<theta<180, x=C*A else xx=CC*AA end Undefined function or variable 'A'. Error in DynamicsProject (...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Is there a way to for Ax and Ab first so that I can use the values to solve the rest of the matrix?
Solving for x=[Ax Ay Bx By Cx Cy Dx Dy Nb Nc T] theta=30 sign=(cosd (theta)/abs (cosd (theta))) u=.8 R=12 ...

fast 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How can I fix error: horzcat dimensions of matrices being concatenated are not consistent?
theta=210 sign=(cosd (theta)/abs (cosd (theta))) u=.8 R=12 c=5 y=18 Id=(.5*Md*R^2) Mp=75 Mb=30 alph...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I write a loop to evaluate theta at every two degrees from 0-360?
n=(360/Dth)+1 theta=0 for I=1:2:n R=12 w=(2*pi/5) Md=50 Thetarads= theta*pi/180 Id=(.5*Md*R^2) ...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how can i fix this error?
a=[1 0 1 0 0 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0 0 0; 0 0 -R*sind(theta) R*cosd(theta) 0 0 0 0 0 0 1; 0 0 0 0 ...

fast 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How can I fix this error?
theta=30 sign=(cosd (theta)/abs (cosd (theta))) u=.8 R=12 c=5 y=8 Id=(.5*Md*R^2) Mp=75 ...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I am having trouble adding [a]+[b].
theta=30 Sign=(cosd (theta)/abs (cosd (theta))) U=.8 R=12 C=5 a=[1 0 1 0 0 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0 0 0; ...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can i make this loop start at theta= zero and evaluate the same equations for values increasing by two (e.i at 0,2,4,6 etc.)
n=(360/Dth)+1 Trial>> for I=1:2:n R=12 w=(2*pi/5) Md=50 Theta=0 Thetarads= theta*pi/180 Id=(.5*Md*R^2) Mp=75...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort