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

Answers (1)

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

Products

Release

R2023a

Tags

Asked:

on 16 Apr 2024

Answered:

on 16 Apr 2024

Community Treasure Hunt

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

Start Hunting!