How to write a matrix with elements 10,30,10

1 次查看(过去 30 天)
M2=(10,30,10)

回答(1 个)

James Tursa
James Tursa 2024-4-16
Use brackets
M2 = [10,30,10]
M2 = 1x3
10 30 10
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>

标签

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by