Filter löschen
Filter löschen

Unable to find or open table data

10 Ansichten (letzte 30 Tage)
Luke Butcher
Luke Butcher am 8 Mär. 2022
Kommentiert: Luke Butcher am 11 Mär. 2022
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 Kommentare
Luke Butcher
Luke Butcher am 8 Mär. 2022
It is, what function would I use instead?
Star Strider
Star Strider am 8 Mär. 2022
Just index into it. See Access Data in Tables for details.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Mär. 2022
Replace your line
Tab = readtable('LabData3');
with
Tab = LabData3;

Weitere Antworten (1)

Peter Perkins
Peter Perkins am 9 Mär. 2022
Only in (I think) the most recent version of MATLAB will
scatter(Tab,'Qgpm','hpft');
In earlier versions, use scatter(Tab.Qgpm,Tab.hpft);

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by