Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

Text-Datei mit Komma

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AMS - 14 Jul 2008 16:44 GMT
Hallo,
ich habe eine Text-Datei, die Zahlen mit Komma enthält.
Wenn ich diese Datei mit Load-Befehl öffne, Matlab betrachtet jede Zahl zwei
Zahlen eine vor u. die Zweite nach dem Komma.
meine Frage wie kann ich diese Datei richtig öffnen
Titus - 15 Jul 2008 10:25 GMT
> Hallo,
> ich habe eine Text-Datei, die Zahlen mit Komma enthält.
> Wenn ich diese Datei mit Load-Befehl öffne, Matlab betrachtet jede Zahl
> zwei
> Zahlen eine vor u. die Zweite nach dem Komma.
> meine Frage wie kann ich diese Datei richtig öffnen

Hi,
usually this is an english speaking (writing?) news group.
If this is just one file you want to load: open it in some editor and to a
replace of "," by ".". If you happen to have more of these, write a function
where you open the file (fopen), read it's content (fread), do a replace
(strrep) and save the file again (fwrite).

Titus
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.