Homework 1: (due Thursday, 09/06)
- Find out what the function linspace can do for
you.
- Replace the loop
For i=1:10
x(i)
= i;
End
By appropriate linspace command
that produces the same x vector
- What the symbol “~=” means?
- Create two vectors of length 101 x=t^2 and
y=sin(t) where t is equally spaced between 0 and 100. Find a way of
generating a two dimensional plot of x against y.