forcing the final column in a matrix to be zero
1 次查看(过去 30 天)
显示 更早的评论
I want to make the final column to go to zero once I go past a certain flag number
k = 10
a = zeros(1:k)
if b < 1
a = (end 0)
end
I think it looks something like this but I know it isn't exactly right
please help
Alex
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!