Meaning of square bracket

Risposte (1)

You probably need to do the basic MATLAB onramp tutorial, as this should be covered there. And it is free.
But this is how you can delete an element, or in this case the second row of the array x.
x = magic(4)
x = 4×4
16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1
x(2,:) = []
x = 3×4
16 2 3 13 9 7 6 12 4 14 15 1

Categorie

Scopri di più su Mathematics and Optimization in Centro assistenza e File Exchange

Richiesto:

il 13 Apr 2023

Risposto:

il 13 Apr 2023

Community Treasure Hunt

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

Start Hunting!

Translated by