coordinate data in the text command
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.
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.
0 votes
Partagez un lien vers cette question
Réponse acceptée
0 votes
Partagez un lien vers cette réponse
- Write a wrapper function that will split your vector as approriate.
- Use a comma separated list: loc=[0.5;0.5];loc=num2cell(loc);text(loc{:},'a')
13 commentaires
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- It did not explain, that one vector with two elements in the first position did not cover the requirements of text
- It did not explain, that {:} makes comma separated numbers that were exceptable to the command.
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- ans = 1
- ans = 2
- ans = 0.6719
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- s.a returns a comma separated list, just like loc{:} did, so it equivalent to:
- s(1).a , s(2).a , s(3).a
- If you execute that line of code, what do you expect the output to be? Exactly: three lines of ans.
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- a comma separated list of variables assigned to a cell array, will assign each variable between each of the commas into a separate element of the cell array e.g. a={1,2,3,....}
- a cell array inserted into a Matlab command will insert all cells in a row, as a comma separated list of its elements
Partagez un lien vers ce commentaire
Partagez un lien vers ce commentaire
- I used writing for may be a better word might be "assigning a value to a variable" e.g. a=1
- I used reading for replacing the "value of a variable" by the "variable"
Partagez un lien vers ce commentaire
Plus de réponses (1)
0 votes
Partagez un lien vers cette réponse
1 commentaire
Partagez un lien vers ce commentaire
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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)
