Cell contents reference from a non-cell array object.
Ältere Kommentare anzeigen
Hi,
I am dealing with the following error:
Cell contents reference from a
non-cell array object.
The error points me to the following line:
Error using dataset/subsrefDot
(line 80)
which corresponds to:
update(conn, tablename, columnnames, data, whereclause);
Any ideas on how to deal with the error? If needed i can provide the full code as well.
6 Kommentare
Adam
am 15 Dez. 2014
You will definitely need to provide your code that calls this function as that is clearly the source of the error.
Paul
am 15 Dez. 2014
Image Analyst
am 15 Dez. 2014
Please give the full error code - ALL THE RED TEXT. I didn't see any cell reference in the line of code you gave so I need to see all the red text. Don't snip out just a small portion of it and paraphrase it like you did.
Paul
am 16 Dez. 2014
Adam
am 16 Dez. 2014
Is
l_equities.CONVERSION
a cell array?
You can just stick a breakpoint in and easily find out this kind of thing from a fairly explicit error like that.
Paul
am 16 Dez. 2014
Akzeptierte Antwort
Weitere Antworten (2)
Image Analyst
am 16 Dez. 2014
It's not clear that l_equities.CONVERSION is even defined at that point. I searched the entire code you provided and the first time you even mentioned l_equities.CONVERSION was when you tried to display its values. But I would think you would have gotten a different error like "Reference to non-existent field 'CONVERSION'." so it probably got defined when you assigned EQUITIES_curs.Data to l_equities - "Data" must have been a structure itself with fields like "Conversion". What happens if you put these lines
l_equities
whos(l_equities)
fieldnames(l_equities)
whos(l_equities.CONVERSION)
after this call:
%Assign data to output variable
l_equities = EQUITIES_curs.Data
and also before the disp() call. Don't use semicolons at the ends of the lines.
And finally, I think "debugging by back and forth postings in a discussion forum" is tedious and takes way way too long, so what can you learn from this link.
1 Kommentar
Paul
am 16 Dez. 2014
Paul
am 16 Dez. 2014
0 Stimmen
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!