A basic matlab problem
Show older comments
Hello all,
If I want to create a matrix of for example 9.5 with a specific size i.e. [9.5 9.5 .... 9.5], what should I do?
2 Comments
Ashok jat
on 18 May 2019
x=ones(1,8);
y=9.5*x
Walter Roberson
on 19 May 2019
This is the same as Fangjun Jiang's solution.
Accepted Answer
More Answers (4)
Bao Le
on 5 Dec 2019
0 votes
x = 9.5.*ones(2,5)
1 Comment
Walter Roberson
on 5 Dec 2019
This is the same as earlier solutions.
Alejandro Ayala
on 5 Dec 2019
0 votes
x = 9.5.*ones(2,5)
1 Comment
Walter Roberson
on 5 Dec 2019
This is the same as earlier solutions.
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!