필터 지우기
필터 지우기

Error while plotting 3 vectors- Data must be numeric, date time, duration or an array convertible to double.

조회 수: 1 (최근 30일)
rohit=readtable('rahul11.xlsx')
t = rohit(:,1);
x = rohit(:,2);
u = rohit(:,3);
plot3(t,x,u)
%t,x,u are vectors of size 1*242

채택된 답변

Sai Sri Harsha Vallabhuni
Sai Sri Harsha Vallabhuni 2020년 6월 9일
t = rohit(:, 1);
x = rohit(:,2);
u = rohit(:,3);
t, x, u are of type table and table datatypes do not have plot method.
Instead you can do
t = rohit.(1);
x = rohit.(2);
u = rohit.(3);
plot3(t, x, u)
Hope this solves your problem.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by