필터 지우기
필터 지우기

How to plot x and y with x evaluated in a function

조회 수: 1 (최근 30일)
Niklas Kurz
Niklas Kurz 2020년 6월 20일
댓글: madhan ravi 2020년 6월 20일
It seems to be such an easy thing but I can't right remember
So, I've got an array of x values (2708x1) and y values(2708x1) and a function Amp(x). How to plot(Amp(x),y) ?

채택된 답변

madhan ravi
madhan ravi 2020년 6월 20일
x = ...;
y = ...;
plot(Amp(x),y)
  댓글 수: 4
Niklas Kurz
Niklas Kurz 2020년 6월 20일
I guess I posed my question in the wrong way, I'll re-ask it. Thank you for your effort :)
madhan ravi
madhan ravi 2020년 6월 20일
Amp = @(x) 6.344*10^(-7)*x.^6 + 3.938*10^(-5)*x.^5 -0.001053*x.^4 -0.01953*x.^3 + 0.2699*x.^2 + -13.92*x + 502.4;
x = M{:,1};
y = M{:,2};
plot(Amp(x),y)

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

추가 답변 (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