Create a plot with sample on the x-axis and mass1 on the y-axis.
Show older comments
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
on 16 Aug 2025
Edited: Walter Roberson
on 16 Aug 2025
sample = linspace(0,10);
mass1 = exp(-sample);
plot(sample, mass1)
xlabel sample
ylabel mass1
Categories
Find more on Line 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!