WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Write from text file to annotation box

 

Chr1sB

Gast


Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 01.06.2011, 15:04     Titel: Write from text file to annotation box
  Antworten mit Zitat      
Hi everyone,
I've got a problem which keeps me busy and I don't really get near it:
How can I read 10 lines from a txt file (containing both numbers and strings) and attach this information to a fig plot file? The information does not need to be actually visible, but somehow implemented in the figure.
My idea was to read the lines with textscan and write them in an annotation box, which was to hide. But - I really have not figured out how to achieve this. Any brilliant mind share his thoughts on this?
Thx in advance!
Chris


Jan S
Moderator

Moderator


Beiträge: 11.057
Anmeldedatum: 08.07.10
Wohnort: Heidelberg
Version: 2009a, 2016b
     Beitrag Verfasst am: 01.06.2011, 17:01     Titel: Re: Write from text file to annotation box
  Antworten mit Zitat      
Dear Chr1sB,

This is actually a German forum.

What about storing these 10 lines as cell string in the figure's UserData?

Kind regards, Jan
Private Nachricht senden Benutzer-Profile anzeigen
 
Chr1sB

Gast


Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 01.06.2011, 17:21     Titel: thx!
  Antworten mit Zitat      
Dear Jan,
thanks very much, awsome idea! The concept of UserData was not familiar to me, but this is exactly what I was looking for. It totally works Smile

..and btw: that's the reason I rely on this forum Wink

Chris
 
Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2025 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.