Getting an error after rounding data.
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
I get an error saying 'Index exceeds matrix dimensions.' when I try to plot data rounded to 3 decimal places. It works fine without rounding.
filtered_hand = sprintf('%6.3f',filtered_hand)
plot3(handles.axes4, filtered_hand(index(j),1), filtered_hand(index(j),2), filtered_hand(index(j),3), 'o')
1 Kommentar
Antworten (1)
Azzi Abdelmalek
am 21 Apr. 2013
Bearbeitet: Azzi Abdelmalek
am 21 Apr. 2013
After
filtered_hand = sprintf('%6.3f',filtered_hand)
filtered_hand becomes a string
If you want to round to 3 decimals use
filtered_hand = round(filtered_hand*1000)/1000
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!