i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
조회 수: 5 (최근 30일)
이전 댓글 표시
i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2012년 11월 29일
편집: Azzi Abdelmalek
2012년 11월 29일
x=[1 6 8 9]
y=[3 6 9 14]
x0=4
y0=interp1(x,y,x0)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!