当前位置:网站首页>【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
2022-07-05 09:39: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中提取的数据。
边栏推荐
- Node の MongoDB Driver
- How to get the STW (pause) time of GC (garbage collector)?
- How to implement complex SQL such as distributed database sub query and join?
- Six simple cases of QT
- . Net delay queue
- 卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
- Tdengine can read and write through dataX, a data synchronization tool
- 小程序启动性能优化实践
- How do enterprises choose the appropriate three-level distribution system?
- 移动端异构运算技术-GPU OpenCL编程(进阶篇)
猜你喜欢
如何獲取GC(垃圾回收器)的STW(暫停)時間?
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
[200 opencv routines] 219 Add digital watermark (blind watermark)
宝塔面板MySQL无法启动
百度交易中台之钱包系统架构浅析
Kotlin compose multiple item scrolling
基于模板配置的数据可视化平台
小程序启动性能优化实践
What are the advantages of the live teaching system to improve learning quickly?
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
随机推荐
Tutorial on building a framework for middle office business system
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
TDengine 连接器上线 Google Data Studio 应用商店
Idea debugs com intellij. rt.debugger. agent. Captureagent, which makes debugging impossible
Kotlin compose multiple item scrolling
How to choose the right chain management software?
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
Viewpager pageradapter notifydatasetchanged invalid problem
Understand the window query function of tdengine in one article
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
The essence of persuasion is to remove obstacles
Cross process communication Aidl
Principle and performance analysis of lepton lossless compression
Jupiter notebook shortcut key
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
Community group buying exploded overnight. How should this new model of e-commerce operate?
Design and exploration of Baidu comment Center
如何獲取GC(垃圾回收器)的STW(暫停)時間?
On July 2, I invite you to TD Hero online press conference