Against value plot different value

조회 수: 1 (최근 30일)
Junway
Junway 2021년 7월 22일
답변: KSSV 2021년 7월 22일
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

답변 (1개)

KSSV
KSSV 2021년 7월 22일
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')

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by