Meaning of square bracket
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
x(2,:)=[];
0 comentarios
Respuestas (1)
John D'Errico
el 13 de Abr. de 2023
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(2,:) = []
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!