how to make 10x10x10 dobule?

1 回表示 (過去 30 日間)
Sierra
Sierra 2022 年 11 月 12 日
回答済み: Image Analyst 2022 年 11 月 12 日
I want to make 10x10x10 dobule.
but only i can make is 10x10 dobule.
please let me know
tanks.

採用された回答

Image Analyst
Image Analyst 2022 年 11 月 12 日
If you already have your 10x10x10 array and it is of some different numerical class (i.e. not a cell array, structure, table, etc.)
originalArray = uint8([1,2,4,7]);
whos originalArray
Name Size Bytes Class Attributes originalArray 1x4 4 uint8
then you can do
dblArray = double(originalArray);
whos dblArray
Name Size Bytes Class Attributes dblArray 1x4 32 double
See? It's now a double.
If you want to create/initialize a new array you can use functions like ones, zeros, NaN, etc.
What are you starting with? Nothing or an existing array?

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by