Could anyone help me to solve on unused_rows=1:50
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
In my code i am using
unused_rows = 1:50
But when the command executes, it displays the result as shown in the attached image.
Actually it should display 1x50 double. Could anyone help me to solve this?
2 comentarios
ANKUR KUMAR
el 8 de En. de 2018
Editada: ANKUR KUMAR
el 8 de En. de 2018
I am getting the correct answer. Just one line code and it will give the sequence up to 50. If your problem is not yet resolved, then clear all the variables and then run the code.
Image Analyst
el 8 de En. de 2018
It does not. You must be doing
unused_rows = 1:45
Respuestas (1)
Rik
el 8 de En. de 2018
If you look at the code in my answer, you will see that the vector unused_rows decreases in size every iteration. It is initialized based on m. If you change m, this vector will change as well. You can adapt my code to support a different number of rows by using unused_rows=1:size(B,1); instead.
0 comentarios
Ver también
Categorías
Más información sobre Neuroimaging 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!