forcing the final column in a matrix to be zero
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!