How can I create a matrix of equal element value?
34 views (last 30 days)
Show older comments
If I want to create a 5 by 80 matrix of value 121 for each element, how can I do that? example A variable y is a 2 by 2 matrix of value 5 for each element is : y = [5,5;5,5]
0 Comments
Accepted Answer
More Answers (1)
Matt J
on 13 Mar 2015
clear y;
y(1:5,1:80)=5;
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!