Write a MATLAB®

2 vues (au cours des 30 derniers jours)
Pamela Aquino
Pamela Aquino le 20 Avr 2019
Commenté : Walter Roberson le 20 Avr 2019
Write a MATLAB® script to graph the variable (?) vs. the variable (?). . [2 Pts] ? = ?. ? √?. ? ? for ? ≤ ? ≤ ??

Réponses (1)

Clay Swackhamer
Clay Swackhamer le 20 Avr 2019
Hi Pamela,
Here is the gist, but with a different function. I can see that this problem is worth 2 points, so I won't do your homework for you. This will be close enough for you to get the basics of plotting and then apply it to your own problem.
x = 0:0.1:100; %make x values to put into the function
y = sin(x)+5+1e-3*x.^2; %evaluate the function on the x values we just made
plot(x, y, 'LineWidth', 2) %plot y vs x
ylabel('y')
xlabel('x')
simple function plot.png

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by