How can I plot the discrete points of two arrays?

2 views (last 30 days)
Hi,
How can I plot the contents of two arrays (discrete points)? For example, If I have the array x=[0;1;2;3] and y=[5.9;3.7;7.5;3.3]. How can I plot y vs x?
I thank you in advance,
Best regards,

Accepted Answer

Riley
Riley on 30 Mar 2021
Read about function plot.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!