how to remove the zero from the first column and last row (4,1) to make it empty. it change my all values by subtracting.
1 次查看(过去 30 天)
显示 更早的评论
s=[1;2;3];
s(1:4,2)=[1;2;3;4]
s =
1 1
2 2
3 3
0 4
0 个评论
采纳的回答
Bhaskar R
2019-10-28
Not specified what subtraction operation here.
And you can't remove zero and put empty here this lead to non structure of the matrix. But you there are otherways to do that use cell array notations.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!