Unable to find or open table data

15 ビュー (過去 30 日間)
Luke Butcher
Luke Butcher 2022 年 3 月 8 日
コメント済み: Luke Butcher 2022 年 3 月 11 日
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 件のコメント
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 日
Replace your line
Tab = readtable('LabData3');
with
Tab = LabData3;
  1 件のコメント
Luke Butcher
Luke Butcher 2022 年 3 月 11 日
Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Peter Perkins
Peter Perkins 2022 年 3 月 9 日
Only in (I think) the most recent version of MATLAB will
scatter(Tab,'Qgpm','hpft');
In earlier versions, use scatter(Tab.Qgpm,Tab.hpft);
  1 件のコメント
Luke Butcher
Luke Butcher 2022 年 3 月 11 日
Thanks!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by