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!