Community Profile

photo

Jason


1979

Active since 2014

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Answered
Dont see why this code doesnt work
With the way I have the code written, what is it that MATLAB doesnt like? All I can think of is that it doesnt want me to be su...

10 years ago | 0

Question


Dont see why this code doesnt work
for i=1:11 x = z(i)/0.9; pipeLength = sqrt(x.^2+z.^2); if pipeLength <= 10 pipeCost(i) = price1*pipeLength ...

10 years ago | 3 answers | 0

3

answers

Question


IF argument question I am seriously new to coding.
Ok, Im trying to output c1 for x from 0 to 10. Im looking for it to return c1=0 0 0 0 0 0 0 0 1 2 but it keeps giving me c1=-8 -...

10 years ago | 3 answers | 0

3

answers