Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はmatlabの初心者です。私は配列を持っています、50x100 uint8私はそれをに変更したいです5000x1 double。どうやってやるの?前もって感謝します。
50x100 uint8
5000x1 double
データの 1 列だけが必要な場合は、コロン演算子:もオプションです。
:
data = uint8(randi(10,50,100)); result = double(data(:));
を使用しreshape(matrix_to_resize, new_row_size, new_col_size)て配列のサイズを変更できます。im2double(matrix)結果の行列と関数を使用して、要素を double に変換できるはずです。
reshape(matrix_to_resize, new_row_size, new_col_size)
im2double(matrix)
reshape のドキュメント。