Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
How do I show rows and columns from a matrix in a edit texted in MATLAB?
Respuesta aceptada
21 comentarios
- Vm = reshape(Vc, m, n) turns the vector Vc into a matrix with m rows and n columns and the order of the elements in Vm are columnar. That means the Vc(1) is in Vm(1,1); Vc(2) is in Vm(1,2) and so on.
- m or n can be empty if you want Matlab to fill it in automatically. In my example, I want 50 rows and however-many columns.
- In order for you to show values in Vc by row instead of by column, I reshaped it so it has 50 rows and then I transposed the matrix so column-1 becomes row-1. The .' at the end is the transpose.
- If Vc does not have enough values to fit into an mxn matrix, pad the end with NaNs.
Más respuestas (0)
Ver también
Categorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)