conversion
古いコメントを表示
採用された回答
その他の回答 (2 件)
Walter Roberson
2011 年 4 月 24 日
If S is your scalar, you can use any of the following:
reshape(S,1,[])
reshape(S,[],1)
S(:)
S.'
S(end) = S;
kron(S,1)
full(sparse(S))
Oleg Komarov
2011 年 4 月 24 日
0 投票
I think he intends to repmat the scalar.
1 件のコメント
Walter Roberson
2011 年 4 月 24 日
Considering the other active questions by the user, I doubt that myself.
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!