How to push a variable in a vector in Matlab?

 Accepted Answer

Matt J
Matt J on 7 Feb 2013
Edited: Matt J on 7 Feb 2013
A(end+1)=4;
or
A=[A,4];

More Answers (1)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!