Professional Documents
Culture Documents
>> t = 0:pi/30:10*pi;
>> x1 = 10*sin(2*t);
>> x2 = 10*sin(2.2*t);
>> plot(t, x, 'k-')
??? Error using ==> plot
Vectors must be the same lengths.
>> x = x1+x2;
>> plot(t, x, 'k-')
>> t = 0:pi/30:20*pi;
>> x1 = 10*sin(2*t);
>> x2 = 10*sin(2.2*t);
>> x = x1+x2;
>> plot(t, x, 'k-')
>> x = 10*(5*t);
>> y = 10*(6*t);
>> figure(6)
>> plot(y,x);
>> x = 10*(5*t+pi/6);
>> plot(y,x);
>>