当前位置:网站首页>【小技巧】獲取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中提取的數據。
边栏推荐
猜你喜欢
Community group buying has triggered heated discussion. How does this model work?
【技术直播】如何用 VSCode 从 0 到 1 改写 TDengine 代码
正式上架!TDengine 插件入驻 Grafana 官网
Design and exploration of Baidu comment Center
基于单片机步进电机控制器设计(正转反转指示灯挡位)
观测云与 TDengine 达成深度合作,优化企业上云体验
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
Coordinate system of view
View Slide
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
随机推荐
解决Navicat激活、注册时候出现No All Pattern Found的问题
Matrix processing practice
Principle and performance analysis of lepton lossless compression
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
The essence of persuasion is to remove obstacles
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
Analysis on the wallet system architecture of Baidu trading platform
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
一文读懂TDengine的窗口查询功能
Online chain offline integrated chain store e-commerce solution
基于模板配置的数据可视化平台
Baidu app's continuous integration practice based on pipeline as code
Tdengine offline upgrade process
天龙八部TLBB系列 - 关于包裹掉落的物品
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
Mysql80 service does not start
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
Oracle combines multiple rows of data into one row of data
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution