当前位置:网站首页>【小技巧】獲取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中提取的數據。

边栏推荐
- 卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
- Is it really reliable for AI to make complex decisions for enterprises? Participate in the live broadcast, Dr. Stanford to share his choice | qubit · viewpoint
- How to correctly evaluate video image quality
- 一文读懂TDengine的窗口查询功能
- Flutter development: use safearea
- Cross process communication Aidl
- 宝塔面板MySQL无法启动
- QT timer realizes dynamic display of pictures
- Getting started with Apache dolphin scheduler (one article is enough)
- Kotlin compose and native nesting
猜你喜欢

一种用于干式脑电图的高密度256通道电极帽

Node red series (29): use slider and chart nodes to realize double broken line time series diagram

TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries

What are the advantages of the live teaching system to improve learning quickly?

Design and exploration of Baidu comment Center

.Net之延迟队列

【OpenCV 例程200篇】219. 添加数字水印(盲水印)

Hard core, have you ever seen robots play "escape from the secret room"? (code attached)

View Slide

一文读懂TDengine的窗口查询功能
随机推荐
Baidu app's continuous integration practice based on pipeline as code
Online chain offline integrated chain store e-commerce solution
[200 opencv routines] 219 Add digital watermark (blind watermark)
Kotlin compose multiple item scrolling
TDengine 离线升级流程
About getfragmentmanager () and getchildfragmentmanager ()
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
Apache DolphinScheduler 入门(一篇就够了)
【OpenCV 例程200篇】219. 添加数字水印(盲水印)
Node の MongoDB Driver
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
Theme. AppCompat. Light. Darkactionbar not found
Evolution of Baidu intelligent applet patrol scheduling scheme
揭秘百度智能测试在测试自动执行领域实践
Jupiter notebook shortcut key
QT event filter simple case
How to improve the operation efficiency of intra city distribution
Tdengine can read and write through dataX, a data synchronization tool
硬核,你见过机器人玩“密室逃脱”吗?(附代码)
What about wechat mall? 5 tips to clear your mind