Getting an error after rounding data.
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 件のコメント
回答 (1 件)
Azzi Abdelmalek
2013 年 4 月 21 日
編集済み: Azzi Abdelmalek
2013 年 4 月 21 日
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
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!