Community Profile

photo

Allison Sims


Last seen: oltre un anno fa Attivo dal 2022

Statistiche

  • Thankful Level 3

Visualizza badge

Content Feed

Visto da

Domanda


I'm studying for an exam and I am stuck on this problem this is what I have so far...
All of the elements in the first row are the column number +2 and all of the elements in the first column are the row number + 3...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


Why is Q=30 after the loop is ran?
B=1; Q=0; if B==1 && Q~=B Q=20; if B<0 || Q==20 Q=30; end elseif B<10 Q=40; else Q=50; end disp(...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


After the if statement is ran why is the answer 10?
A=1; B=2; C=10; if A<0 C=5; if B==2 C=3; %I thought the answer would be 3 why is it 10? end end ...

oltre un anno fa | 2 risposte | 0

2

risposte

Domanda


I'm new to Matlab and still learning, how do I go about solving this problem in simple terms?
You want to save some money. You start with $1000, and contribute $100 to the account each month. Using an interest rate of 5% A...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


Is this correct?
Use loops to compute and plot (not animated)the following piecewise function for ...

oltre un anno fa | 2 risposte | 0

2

risposte

Domanda


I need to create the following plots in the same figure window but the green graph is remaining constant when it should be a negative graph
Whenever I run each graph separatly it displays correctly but when I try to have them all on the same plot using the hold on and...

oltre un anno fa | 0 risposte | 0

0

risposte

Domanda


Sum values from one column vector based on another column vector
How do I compute this without using any loops or conditionals? I want to sum the values in column B based on if the value in co...

oltre un anno fa | 1 risposta | 0

1

risposta