how do I create a matrix whose elements in the same column make Isothermal series
Show older comments
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?
Accepted Answer
More Answers (1)
John D'Errico
on 6 Nov 2017
10.^(-1:1)'*(2:4)
ans =
0.2 0.3 0.4
2 3 4
20 30 40
2 Comments
yong beom Kwon
on 6 Nov 2017
John D'Errico
on 6 Nov 2017
Edited: John D'Errico
on 6 Nov 2017
Then transpose it. Your question was ambiguous, since your original question had the result as a pure row vector initially.
Categories
Find more on 제품 관리 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!