当前位置:网站首页>【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值
【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值
2022-07-05 10:06:00 【fpga和matlab】
在matlab中可以通過cdfplot畫出數據的累積分布函數曲線,如下程序:
clc;
clear;
close all;
warning off;
x = rand(1,1000).^4;
cdfplot(x)
運行結果如下:
那麼如何從cdfplot中獲得對應的數值呢?非常簡單,我們將上述程序做如下的調整。
clc;
clear;
close all;
warning off;
x = rand(1,1000).^4;
[xx]=cdfplot(x);
x1 = xx.XData;
y1 = xx.YData;
figure;
plot(x1,y1);
運行後,可以看到和直接cdfplot的輸出結果一樣,這說明x1和y1就是從cdfplot中提取的數據。
边栏推荐
- 代码语言的魅力
- Theme. AppCompat. Light. Darkactionbar not found
- How to improve the operation efficiency of intra city distribution
- 卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
- Solve liquibase – waiting for changelog lock Cause database deadlock
- MySQL字符类型学习笔记
- Wechat applet - simple diet recommendation (4)
- 一文读懂TDengine的窗口查询功能
- Android SQLite database encryption
- Getting started with Apache dolphin scheduler (one article is enough)
猜你喜欢
Solve the problem of no all pattern found during Navicat activation and registration
观测云与 TDengine 达成深度合作,优化企业上云体验
mysql80服务不启动
Officially launched! Tdengine plug-in enters the official website of grafana
宝塔面板MySQL无法启动
高级 OpenCV:BGR 像素强度图
Small program startup performance optimization practice
一文读懂TDengine的窗口查询功能
Why do offline stores need cashier software?
ArcGIS Pro 创建要素
随机推荐
Why does everyone want to do e-commerce? How much do you know about the advantages of online shopping malls?
Cent7 Oracle database installation error
Data visualization platform based on template configuration
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
Apache DolphinScheduler 入门(一篇就够了)
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
First understanding of structure
Getting started with Apache dolphin scheduler (one article is enough)
[200 opencv routines] 219 Add digital watermark (blind watermark)
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
Fluent development: setting method of left and right alignment of child controls in row
Why don't you recommend using products like mongodb to replace time series databases?
Kotlin compose multiple item scrolling
What should we pay attention to when developing B2C websites?
Tutorial on building a framework for middle office business system
E-commerce apps are becoming more and more popular. What are the advantages of being an app?
Online chain offline integrated chain store e-commerce solution
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)