Question: MATLAB can plot waveforms given two declared vectors / matrices . In the context of AC analysis we can declare a vector t for time

MATLAB can plot waveforms given two declared vectors/matrices. In the context of AC
analysis we can declare a vector t for time and relate it to a cosine function then plot the
transient response on a figure.
% Creating Graphics
t =0:0.1:20;
Vin =10*cos(t);
figure;
plot(t, Vin);
t is declared with a special syntax that creates a long row of numbers from 0 to 20 with 0.1
intervals. Its a quick way to declare a time range and in the simplest sense is how you create the
x axis for your plot. This example has a range from 0 to 20 seconds for a cosine wave with
period of 2\pi .
Figure 4 Example MATLAB Cosine Plot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!