how do I create a matrix whose elements in the same column make Isothermal series
显示 更早的评论
I want to create a matrix whose elements in the same column make Isothermal series-like this. Ignore the below three lines.
if true
% code
end
[0.1, 1.0, 10.0
0.2, 2.0, 20.0
0.3, 3.0, 30.0
0.4, 4.0, 40.0
...
]
how can I make it?
采纳的回答
更多回答(1 个)
John D'Errico
2017-11-6
10.^(-1:1)'*(2:4)
ans =
0.2 0.3 0.4
2 3 4
20 30 40
2 个评论
yong beom Kwon
2017-11-6
John D'Errico
2017-11-6
编辑:John D'Errico
2017-11-6
Then transpose it. Your question was ambiguous, since your original question had the result as a pure row vector initially.
类别
在 帮助中心 和 File Exchange 中查找有关 제품 관리 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!