Question: Create these vectors in MATLAB using both colon(:) and linspace command: a. X = [2,4,6,8, , 100]; b. Y = [1, 0.75, 0.5, 0.25, 0,
Create these vectors in MATLAB using both colon(:) and linspace
command:
a. X = [2,4,6,8, , 100];
b. Y = [1, 0.75, 0.5, 0.25, 0, -0.25, 1]
2. Plot cos(5X) and cos(X) in the same figure using hold on command
in MATLAB. The X value can be taken from problem 1. The x- axis
should have a label as time and y-axis should have a label as
amplitude. Put a legend also as function1 and function2
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
