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

Unterschied: ruler2num und datenum

 

Hans5566
Forum-Newbie

Forum-Newbie


Beiträge: 4
Anmeldedatum: 20.03.19
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 20.03.2019, 19:37     Titel: Unterschied: ruler2num und datenum
  Antworten mit Zitat      
I understand the result of datenum in the following code is just the count of days:
Code:

Datum='2019-03-25 12:00:00.000';
Eingabeformat = 'yyyy-MM-dd HH:mm:ss.SSS';
A=datetime(Datum,'InputFormat',Eingabeformat);
plot(A,1,'*');ax=gca;
datenum(xlim)
 

>> 737508.5 737510.5

What I do not understand is the meaning of the numbers resulting from ruler2num if I use a datetime-axis
Code:

ruler2num(xlim,ax.XAxis)
 

>>-0.5 1.5

What defines the result here? OK it's kind of positioning in the plot, but what defines the numbers here?

I see the interval length of the X-Axis is 2days, so the interval given by ruler2num also seems to be based on julian days, but the reference date is unknown ...?
Private Nachricht senden Benutzer-Profile anzeigen


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 - 2024 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.