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

边栏推荐
- Jupiter notebook shortcut key
- 揭秘百度智能测试在测试自动执行领域实践
- 解决Navicat激活、注册时候出现No All Pattern Found的问题
- H. 265 introduction to coding principles
- First understanding of structure
- The essence of persuasion is to remove obstacles
- 从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
- QT timer realizes dynamic display of pictures
- Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
- [C language] the use of dynamic memory development "malloc"
猜你喜欢

RMS TO EAP通过MQTT简单实现

单片机原理与接口技术(ESP8266/ESP32)机器人类草稿

(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software

tongweb设置gzip

H. 265 introduction to coding principles

写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用

硬核,你见过机器人玩“密室逃脱”吗?(附代码)

The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution

7 月 2 日邀你来TD Hero 线上发布会

Node red series (29): use slider and chart nodes to realize double broken line time series diagram
随机推荐
First understanding of structure
Tutorial on building a framework for middle office business system
如何获取GC(垃圾回收器)的STW(暂停)时间?
观测云与 TDengine 达成深度合作,优化企业上云体验
Comment obtenir le temps STW du GC (collecteur d'ordures)?
Tdengine connector goes online Google Data Studio app store
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
Cross process communication Aidl
How to get the STW (pause) time of GC (garbage collector)?
天龙八部TLBB系列 - 关于包裹掉落的物品
Mysql80 service does not start
E-commerce apps are becoming more and more popular. What are the advantages of being an app?
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
oracle 多行数据合并成一行数据
What should we pay attention to when developing B2C websites?
TDengine 连接器上线 Google Data Studio 应用商店
QT timer realizes dynamic display of pictures
Officially launched! Tdengine plug-in enters the official website of grafana
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)