photo

Alec Carruthers


Active since 2017

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


While Loop indexing help.
First off, My code is 600+ lines long so I cannot post the entire script. Here is my setup for nested while loops: count =...

6 years ago | 0 answers | 0

0

answers

Question


How to fix "Subscripted assignment dimension mismatch," in a for loop?
for k=1:length(index) syms w W_TO(k) = vpasolve(((C1(k)+C5(k))*(w^1.195))+(C2*(w^.235))+((C3+C4(k)+C6(k)+C7+C10...

6 years ago | 1 answer | 0

1

answer

Question


Nested For loop with Cell Arrays
This code runs ok with one for loop, but when I introduce a for loop for "AR" within the original, I get an error of: "Out of ...

6 years ago | 2 answers | 0

2

answers

Question


How to compare elements in an array?
My for loop cycles through a series of initial CL values and then a lot of calculations are done and I get final values for CL "...

6 years ago | 1 answer | 1

1

answer

Question


How do I fix an equation in a for loop?
clc; clear; %Design Mission PAX = 250; Cargo = 8000; Range = 7000; %N. Miles DRatio = .9524988; PRa...

6 years ago | 1 answer | 0

1

answer

Question


How do I fix this error "In an assignment A(:) = B, the number of elements in A and B must be the same."?
clc; clear; %Design Mission PAX = 250; Cargo = 8000; Range = 7000; %N. Miles DRatio = .9524988; PRatio = .23590495; ...

6 years ago | 1 answer | 0

1

answer

Question


Plotting data from for loop
Here is my code: T=290; R=287; G=1.4; Cv= R/(G-1); e=Cv*T; V= (0:1:1000); Ke= .5*...

7 years ago | 1 answer | 0

1

answer

Question


How do I remove a certain part of my graph?
I'm trying to plot the specific thrust and specific fuel consumption on the same graph. I have horizontal lines that start the g...

7 years ago | 1 answer | 0

1

answer