the value of the row and columns

1 visualización (últimos 30 días)
lola khairy
lola khairy el 4 de Mayo de 2022
Comentada: Jon el 4 de Mayo de 2022
if i have matrix
x = [ 2,5,7,9,0,3,5,
0,5,11,9,20,3,5 ]
how can i get the value of column 5 row 2 i know it is 20 but i mean what function to use in MATLAB

Respuesta aceptada

Jon
Jon el 4 de Mayo de 2022
Editada: Jon el 4 de Mayo de 2022
val = x(2,5)
  1 comentario
Jon
Jon el 4 de Mayo de 2022
Glad this helped. If you want to get a quick immersion in MATLAB and you haven't already completed it I would recommend the free, 2 hour MATLAB Onramp training. It will get you up and running with MATLAB indexing (as in the question you asked), plotting, and much more. https://www.mathworks.com/learn/tutorials/matlab-onramp.html

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing 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!

Translated by