How can I convert a variable whose value is double to integer or to float?
古いコメントを表示
How can I convert a variable whose value is double to integer or to float? So I think I can fix the problem:
Undefined function 'roundn' for input arguments of type 'double'.
Error in plot_litho_061015 (line 58) drawLine([0 roundn(z1),2], [0 min(z1)]); hold on; % Vertical line at x = 0;
ps: z1 value= 2601x1double
採用された回答
その他の回答 (1 件)
SIFISO NICHOLUS
2022 年 5 月 9 日
0 投票
double Z = 2.55555
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!