Create a 100 element vector for x

2 Comments

How would we input the equation in matlab using the ranges?
Also, how would you go on to plot the 2 equations. (Can they both be plotted in a single graph? or do they need to be seperate?)

Sign in to comment.

 Accepted Answer

x = linspace(0, L/2, 100);

2 Comments

How would we input the equation in matlab using the ranges?
Also, how would you go on to plot the 2 equations. (Can they both be plotted in a single graph? or do they need to be seperate?)

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!