필터 지우기
필터 지우기

I am trying to graph two equations y1 = 25x + 10 and y2= x^2 on the same plot and finding the intersection.

조회 수: 2 (최근 30일)
However, i get a error when i type out the second equation. What is strange is that it plots if i change the second equation to something like y2= sin(x). What am i doing wrong?
Also how would I label the axes.

답변 (1개)

David Hill
David Hill 2020년 1월 31일
Look at the plot function for labeling the axes.
x=-10:10;%decide on what you want the x-values to be
y1=25*x+10;
y2=x.^2;
plot(x,y1,x,y2);

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by