The ecdf(x) always starts from the origin of the axis
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Jose Rego Terol
 am 26 Mai 2020
  
    
    
    
    
    Kommentiert: Ameer Hamza
      
      
 am 26 Mai 2020
            Hi,
The curve of ecdf starts at f(x)=0.2, x=0.04, but MatLab doesn´t feel it is a good beginning, so the curve always starts from f(x)=0, x=0. I cannot change it, and it pissed me off because I cannot interpret the curve onset accurately. I am using ecdf because I want to plot the cumulative frequency distribution. I want to remove the part of the curve within the red rectangle.
Any workaround?

Thanks
4 Kommentare
Akzeptierte Antwort
  Ameer Hamza
      
      
 am 26 Mai 2020
        Try this
[f, x] = ecdf(fluc_freq);
mask = x > 0;
plot(x(mask), f(mask))
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!