Hello smart people...I'm a CS major who has to take CPET lab. There is one lab project that is well out of the scope of my understaning...it could have just as well been written in Chinese.
Here's what the problem asks:
We have already used (and I guess are supposed to modify) this code:
clear;
clf;
t = 0:0.001:1; % Time vector
e = sin(2*pi*60*t);
figure(1), stem(e(1:30));
figure(2), stem(e(1:30)), grid on;
figure(3), plot(t,e), grid on,
figure(4), plot(t(1:50),e(1:50)), grid on;
figure(5), plot(t(1:100),e(1:100)), grid on;
As mentioned, this is so far out of the scope of my understanding that I do not even know what the questions are asking or how to set-up the code to display results.
Thank you so much for your contribution. Also, and this is an aside, is there a MATLAB function that would give the size of a period. I believe the period in the above sample code is 1/60 = .0167, but how would I get MATLAB to tell me that from the console window.
Again, Thank you so much
Here's what the problem asks:
We have already used (and I guess are supposed to modify) this code:
clear;
clf;
t = 0:0.001:1; % Time vector
e = sin(2*pi*60*t);
figure(1), stem(e(1:30));
figure(2), stem(e(1:30)), grid on;
figure(3), plot(t,e), grid on,
figure(4), plot(t(1:50),e(1:50)), grid on;
figure(5), plot(t(1:100),e(1:100)), grid on;
As mentioned, this is so far out of the scope of my understanding that I do not even know what the questions are asking or how to set-up the code to display results.
Thank you so much for your contribution. Also, and this is an aside, is there a MATLAB function that would give the size of a period. I believe the period in the above sample code is 1/60 = .0167, but how would I get MATLAB to tell me that from the console window.
Again, Thank you so much