Create a plot with sample on the x-axis and mass1 on the y-axis.

28 views (last 30 days)
This question was flagged by Chuguang Pan
Create a plot with sample on the x-axis and mass1 on the y-axis.
this a question i see the solution and put the value but it did't work

Answers (1)

Walter Roberson
Walter Roberson on 16 Aug 2025 at 9:06
Edited: Walter Roberson on 16 Aug 2025 at 9:07
sample = linspace(0,10);
mass1 = exp(-sample);
plot(sample, mass1)
xlabel sample
ylabel mass1

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!