I have a table that was imported into the work space, and I am unsure on why it is unable to be located. The table in the workspace is named "LabData3". Two of the colunms in this table are named "Qgpm" and "hpft".
Tab = readtable('LabData3');
scatter(Tab,'Qgpm','hpft');
Error using readtable (line 498)
Unable to find or open 'LabData3'. Check the path and filename or file permissions.
Error in Lab3 (line 1)
Tab = readtable('LabData3');

댓글 수: 3

Walter Roberson
Walter Roberson 2022년 3월 8일
Are you saying that LabData3 is already in the workspace? If so you would not use readtable() on it.
Luke Butcher
Luke Butcher 2022년 3월 8일
It is, what function would I use instead?
Star Strider
Star Strider 2022년 3월 8일
Just index into it. See Access Data in Tables for details.

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

 채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 8일

0 개 추천

Replace your line
Tab = readtable('LabData3');
with
Tab = LabData3;

추가 답변 (1개)

Peter Perkins
Peter Perkins 2022년 3월 9일

0 개 추천

Only in (I think) the most recent version of MATLAB will
scatter(Tab,'Qgpm','hpft');
In earlier versions, use scatter(Tab.Qgpm,Tab.hpft);

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2022년 3월 8일

댓글:

2022년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by