Why using Text I get: "Error using text Invalid parameter/value pair arguments"?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Eli Borodach
am 10 Mär. 2016
Beantwortet: Walter Roberson
am 10 Mär. 2016
Hello all,
I enter this line:
text(double(Cell.pos.t(idxs_walls)),double(zeros(length(idxs_walls),1)),num2str(numbering_walls_and_corners(idxs_walls)),'r'); hold on;
and I receive:
Error using text
Invalid parameter/value pair arguments
Anyone knows the reason? I watched in other topic that the reason is because of that type of X or Y is not double, but this error remains after the convert to double too...
Thanks in Advance
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Mär. 2016
text(double(Cell.pos.t(idxs_walls)), double(zeros(length(idxs_walls),1)), num2str(numbering_walls_and_corners(idxs_walls)), 'Color', 'r'); hold on;
You cannot just pass a color to text() like you can to plot(); you have to tell it that the parameter refers to color.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu String 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!