graphical representation function of x

조회 수: 5 (최근 30일)
kanhaiyaditya prasad
kanhaiyaditya prasad 2015년 8월 4일
편집: Sean de Wolski 2015년 8월 4일
f =inline('2*x.^3-3*x.^2+4*x-1');
x1=2.2345;
x2=-2:0.2:2;
y1=f(x1);
y2=f(x2);
plot(x2,y2)
title('graphical representation function of x')
xlabel('graphical variable of x');
ylabel('graphical variable of y');
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2015년 8월 4일
편집: Sean de Wolski 2015년 8월 4일
What is your question?
Also, use an anonymous function instead of inline
f = @(x)2*x.^2-2*x.^2+4*x-1;

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by