当前位置:网站首页>【小技巧】獲取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中提取的數據。
边栏推荐
- 基于单片机步进电机控制器设计(正转反转指示灯挡位)
- 百度智能小程序巡檢調度方案演進之路
- Apache dolphin scheduler system architecture design
- Design and exploration of Baidu comment Center
- How to empty uploaded attachments with components encapsulated by El upload
- Comparison of batch merge between Oracle and MySQL
- 【系统设计】指标监控和告警系统
- 观测云与 TDengine 达成深度合作,优化企业上云体验
- Tdengine connector goes online Google Data Studio app store
- Understand the window query function of tdengine in one article
猜你喜欢
Community group buying exploded overnight. How should this new model of e-commerce operate?
How to improve the operation efficiency of intra city distribution
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
【C语言】动态内存开辟的使用『malloc』
Cent7 Oracle database installation error
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
Kotlin compose and native nesting
揭秘百度智能测试在测试自动执行领域实践
随机推荐
Baidu app's continuous integration practice based on pipeline as code
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
TDengine 离线升级流程
How to improve the operation efficiency of intra city distribution
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
idea用debug调试出现com.intellij.rt.debugger.agent.CaptureAgent,导致无法进行调试
Generics, generic defects and application scenarios that 90% of people don't understand
The comparison of every() and some() in JS uses a power storage plan
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
ArcGIS Pro 创建要素
百度评论中台的设计与探索
ThreadLocal source code learning
Cent7 Oracle database installation error
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
Cross process communication Aidl
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
基于模板配置的数据可视化平台
How to empty uploaded attachments with components encapsulated by El upload
Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new