当前位置:网站首页>【小技巧】獲取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中提取的數據。
边栏推荐
- Wechat applet - simple diet recommendation (4)
- The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
- 一种用于干式脑电图的高密度256通道电极帽
- Solve the problem of no all pattern found during Navicat activation and registration
- Uncover the practice of Baidu intelligent testing in the field of automatic test execution
- 小程序启动性能优化实践
- 【C语言】动态内存开辟的使用『malloc』
- 从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
- ArcGIS Pro creating features
- How do enterprises choose the appropriate three-level distribution system?
猜你喜欢
Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes
【C语言】动态内存开辟的使用『malloc』
MySQL字符类型学习笔记
7 月 2 日邀你来TD Hero 线上发布会
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
TDengine 已经支持工业英特尔 边缘洞见软件包
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
Community group buying exploded overnight. How should this new model of e-commerce operate?
H. 265 introduction to coding principles
Application of data modeling based on wide table
随机推荐
What about wechat mall? 5 tips to clear your mind
Community group buying has triggered heated discussion. How does this model work?
.Net之延迟队列
Windows uses commands to run kotlin
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
Baidu app's continuous integration practice based on pipeline as code
Coordinate system of view
Apache DolphinScheduler 入门(一篇就够了)
如何获取GC(垃圾回收器)的STW(暂停)时间?
About getfragmentmanager () and getchildfragmentmanager ()
Cent7 Oracle database installation error
QT timer realizes dynamic display of pictures
Cut off 20% of Imagenet data volume, and the performance of the model will not decline! Meta Stanford et al. Proposed a new method, using knowledge distillation to slim down the data set
Analysis on the wallet system architecture of Baidu trading platform
一种用于干式脑电图的高密度256通道电极帽
Generics, generic defects and application scenarios that 90% of people don't understand
Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes
How to implement complex SQL such as distributed database sub query and join?
Comparison of batch merge between Oracle and MySQL