Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How I can extract certain range of value from workspace?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have load 100x100 mat file into workspace. How can I extract certain range of values for example (5:10)x(5:10) from the workspace?
1 comentario
Respuestas (1)
S. Walter
el 4 de Nov. de 2020
You have a matrix A:
A = rand(100,100);
You want only the 5th through the 10th elements, you can do that using the colon operator:
B = A(5:10,5:10);
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!