필터 지우기
필터 지우기

2 graphs on same plot

조회 수: 1 (최근 30일)
Omar Abdullateef
Omar Abdullateef 2019년 3월 25일
댓글: Rena Berman 2019년 4월 2일
S3(x)=-0.0196x^2+0.2974x+9.1157
S3(x)=-0.9288(x-1)^3+0.619(x-1)^2+0.548(x-1)+9.39
I am trying to plot both these unctions on the same graph but i always end up with only 1 of them or the wrong figure!! over interval 0.1<x<2
I tried using ezplot but it wouldnt work for me neither would plot
  댓글 수: 1
Rena Berman
Rena Berman 2019년 4월 2일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2019년 3월 25일
syms x
S3(x)=-0.0196*x^2+0.2974*x+9.1157 ;
fplot(S3,[.1,2])
hold on
S3(x)=-0.9288*(x-1)^3+0.619*(x-1)^2+0.548*(x-1)+9.39 ;
fplot(S3,[.1,2])
Note: Name the second variable other than S3.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by