Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Matlab Help exercises 4.7?
4.1 Write the matlab statements required to calcualte y(t) from the equation
y(t) = {-3t^2 + 5 t =>0
{3t^2 +5 t <0
for vaules between -9 and 9 in steps of .5
use loops and branches to perform this calucaltion
4.2 use vectorization to solve 4.1
4.6 examine the following for statements and determine how many times each loop will be executed
a for ii= -32768:32767
b for ii = 32768:32767
c for kk = 2:4:3
d for jj = ones(5,5)
can u just explain and show me the m file as long as with the answer
thanks
1 Answer
- 1 decade ago
I'll give you a little help...Here's an example for 4.6
For the items in 4.6 you need to understand the notation.
for ii=5:5:20
start value: increment value: last value
so 5:5:20 would mean start at 5 increment by 5 until 20 or [5 10 15 20] therefore it would loop 4 times.