Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
How do I show rows and columns from a matrix in a edit texted in MATLAB?
Réponse acceptée
21 commentaires
- 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.
Plus de réponses (0)
Voir également
Catégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)