フィルターのクリア

How do I write a sparse matrix in MATLAB

3 ビュー (過去 30 日間)
Shlesha Van
Shlesha Van 2020 年 12 月 15 日
コメント済み: Jan 2020 年 12 月 16 日
  2 件のコメント
Daniel Pollard
Daniel Pollard 2020 年 12 月 15 日
Shlesha Van
Shlesha Van 2020 年 12 月 15 日
That gives solutions on how to convert a full matrix into sparse. My case is opposite. I want to convert a sparse into full

サインインしてコメントする。

回答 (2 件)

Daniel Pollard
Daniel Pollard 2020 年 12 月 15 日
編集済み: Daniel Pollard 2020 年 12 月 15 日
https://uk.mathworks.com/help/matlab/ref/full.html
  4 件のコメント
Shlesha Van
Shlesha Van 2020 年 12 月 15 日
Jan
Jan 2020 年 12 月 16 日
The first two inputs of sparse() are the size of the matrix. As the error message tells you, [2,-1,0] cannot be a valid size. See the documentation of sparse :
doc sparse

サインインしてコメントする。


Jan
Jan 2020 年 12 月 15 日
You want to convert a sparse matrix into a full one? Then use the command: full().

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by