Against value plot different value

3 visualizaciones (últimos 30 días)
Junway
Junway el 22 de Jul. de 2021
Respondida: KSSV el 22 de Jul. de 2021
Hi,
I want to plot against value L 0 to 2
x-axis is L y-axis is A and B value
here is equation.
I have no idea how to set it.
please help me
A = L / 10
B = (A)/ 20

Respuestas (1)

KSSV
KSSV el 22 de Jul. de 2021
This is a simple problem, you sould learn about MATLAB basics. This time I am answering your question; next I am not going to help you unless there is an attempt from you.
L = linspace(0,2) ;
A = L/10 ;
B = A/20 ;
plot(L,A,'r',L,B,'b') ;
legend('A','B')

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by