Community Profile

photo

Adam Kevin Francis Baker


Aktiv seit 2019

Statistiken

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


use a Loop to repeat an equation using the previous answer as the new variable.
I want to write a loop to do the below all the way up to p340....I do not want to change the name of the variable each time but ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Variable changes to previously calculated value each iteration.
Here is the equation I am dealing with p2 = p1./(exp((50)./(29.3.*((T))))); T = 1:340 p1 = 99977 I need to calculate p2 for ...

fast 5 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
perform calculation using for loop
Ok I had to do a double for loop to make it work because I was dealing with a matrix so I ended up writing this code to solve my...

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
perform calculation using for loop
This is what I did... for q = 1:numel(p1) q_for(q) = (0.622.*e(q))./(p1(q)); end and for the array operation q_array = ...

etwa 5 Jahre vor | 0

Frage


perform calculation using for loop
So I have to use a for loop because I'm a student and the teacher said so. I've been trying to figure this one out and I'm sure ...

etwa 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


for loop produces a 103x1 array I need a 1x103 array.
How do I get this for loop to produce a 103X1 array? I do not want to use the transpose function. for ii = 1:numel(H) if H...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort