class 'matlab.io.datastore.PixelLabelDatastore' is not allowed. Error !!!!!
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I solve this problem please
Array formation and parentheses-style indexing with objects of
class 'matlab.io.datastore.PixelLabelDatastore' is not allowed.
Use objects of class 'matlab.io.datastore.PixelLabelDatastore'
only as scalars or use a cell array.
0 Kommentare
Antworten (1)
Steven Lord
am 10 Mär. 2023
You can make an array of numeric data in MATLAB.
A = [1 2; 3 4]
You cannot make an array of PixelLabelDatastore objects like that. You need to either use one PixelLabelDatastore or you need to make a cell array of PixelLabelDatastore objects. If you choose the latter approach, know that some functions may not accept a cell array of datastores.
If you show us a small sample of your code where this error occurs and explain what you want this code to do we may be able to offer alternate suggestions.
2 Kommentare
Steven Lord
am 10 Mär. 2023
So what in this code is a datastore and what isn't?
If you want to perform mathematics on the data from the datastore you're probably going to want to create a tall array from that datastore and perform math on the tall array instead of the datastore.
Siehe auch
Kategorien
Mehr zu Datastore finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!