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

21 views (last 30 days)
Amahle
Amahle on 16 Apr 2024 at 23:13
Answered: James Tursa on 16 Apr 2024 at 23:36
M2=(10,30,10)

Answers (1)

James Tursa
James Tursa on 16 Apr 2024 at 23:36
Use brackets
M2 = [10,30,10]
M2 = 1x3
10 30 10
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>

Tags

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!