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

1 view (last 30 days)
Amahle
Amahle on 16 Apr 2024
Answered: James Tursa on 16 Apr 2024
M2=(10,30,10)

Answers (1)

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

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Tags

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!