Updating values in a matrix when corresponding variable values are updated
5 views (last 30 days)
Show older comments
In the code below, when a, a variable in matrix w, is updated the matrix does not automatically update. Is there a way to update it as a changes automatically?
a = 5;
w = [a 5 6]
a = 6
w
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!