MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Line Plot with Durations


Create a line plot with duration values on the x-axis. Then, change the format of the tick
labels and the x-axis limits.


Create t as seven linearly spaced duration values between 0 and 3 minutes. Create y as a
vector of random data. Plot the data.


t = 0:seconds(30):minutes(3);
y = rand(1,7);
plot(t,y);


Plot Dates and Durations
Free download pdf