A basic matlab problem
显示 更早的评论
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 个评论
Ashok jat
2019-5-18
x=ones(1,8);
y=9.5*x
Walter Roberson
2019-5-19
This is the same as Fangjun Jiang's solution.
采纳的回答
更多回答(4 个)
Bao Le
2019-12-5
0 个投票
x = 9.5.*ones(2,5)
1 个评论
Walter Roberson
2019-12-5
This is the same as earlier solutions.
Alejandro Ayala
2019-12-5
0 个投票
x = 9.5.*ones(2,5)
1 个评论
Walter Roberson
2019-12-5
This is the same as earlier solutions.
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!