Homework 1: (due Thursday, 09/06)

 

  1. Find out what the function linspace can do for you.
  2. Replace the loop

 For i=1:10

                        x(i) = i;

            End

By appropriate linspace command that produces the same x vector

  1. What the symbol “~=” means?
  2. 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.