当前位置:网站首页>【小技巧】获取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中提取的数据。
边栏推荐
- Six simple cases of QT
- On July 2, I invite you to TD Hero online press conference
- Flutter development: use safearea
- Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
- 基于单片机步进电机控制器设计(正转反转指示灯挡位)
- [NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
- ThreadLocal source code learning
- [listening for an attribute in the array]
- Kotlin compose and native nesting
- Wechat applet - simple diet recommendation (4)
猜你喜欢
[200 opencv routines] 219 Add digital watermark (blind watermark)
Idea debugs com intellij. rt.debugger. agent. Captureagent, which makes debugging impossible
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
How do enterprises choose the appropriate three-level distribution system?
TDengine 已经支持工业英特尔 边缘洞见软件包
Tdengine can read and write through dataX, a data synchronization tool
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
QT realizes signal transmission and reception between two windows
Single chip microcomputer principle and Interface Technology (esp8266/esp32) machine human draft
Solve the problem of no all pattern found during Navicat activation and registration
随机推荐
天龙八部TLBB系列 - 关于包裹掉落的物品
移动端异构运算技术-GPU OpenCL编程(进阶篇)
基于单片机步进电机控制器设计(正转反转指示灯挡位)
Kotlin Compose 多个条目滚动
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
Kotlin compose multiple item scrolling
观测云与 TDengine 达成深度合作,优化企业上云体验
Jupiter notebook shortcut key
oracle和mysql批量Merge对比
Community group buying has triggered heated discussion. How does this model work?
Evolution of Baidu intelligent applet patrol scheduling scheme
Officially launched! Tdengine plug-in enters the official website of grafana
mysql80服务不启动
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
MySQL数字类型学习笔记
Fluent development: setting method of left and right alignment of child controls in row
搞数据库是不是越老越吃香?
Tdengine already supports the industrial Intel edge insight package
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
Openes version query