Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have a data set with <1x4418 double>, and i want to convert the same data set <94x47 single or double>, how can i do this?

1 回表示 (過去 30 日間)
Heramb Gaikwad
Heramb Gaikwad 2019 年 8 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a data set with <1x4418 double>, and i want to convert the same data set <94x47 single or double>, how can i do this?

回答 (1 件)

Star Strider
Star Strider 2019 年 8 月 28 日
Use the reshape function:
v = rand(1, 4418);
vr = reshape(v, 94, []);
  2 件のコメント
Heramb Gaikwad
Heramb Gaikwad 2019 年 8 月 28 日
It works.
thank you so much for your kind guidance.
Star Strider
Star Strider 2019 年 8 月 28 日
My pleasure.
If you want to chnage it from double to single, use the single function. Other relevant links are in and at the end of that page.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by