实时MATLAB绘图我要分享

Real-time MATLAB graphics

matlab 绘图 实时

关注次数: 341

下载次数: 0

文件大小: 60.96 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:应用背景MATLAB提供了多个选项,像按钮,GUI界面的绘制,拨动开关,滑块,等。在那里,我们将绘制传感器数据来自微控制器通过串行端口。要遵循的步骤是创建MATLAB GUI的情节选项,编辑其属性根据X和Y的样本值。在脚本中运行循环,以从串行端口定期获得传感器值。这意味着从控制器要求传感器的值1,它将发送回MATLAB。保存所有数组,绘制数组。关键技术绘制实时传感器值从传感器或Matlab中的微控制器是容易的。但策划它在MATLAB GUI很容易超过图的绘制方法。而且看起来盛大用户。我们可以在图形界面上有按钮。通过对脚本中的图形用户界面项目进行适当的回调函数完成。


English Description:

Application background Matlab gives GUI interface for multiple options like bush button, plotting, toggle switch, slider, etc... There we are going to plot sensor data coming from micro controller via the serial port. Steps to follow is create MATLAB GUI with plot option, edit its properties according to X and Y sample values. Run the loop in script to get the sensor value periodically from the serial port. It means asking sensor value 1 from the controller , it will send back to the MATLAB. Save all in array, plot the array. Key Technology Plotting real-time sensor value from the sensor or micro controller in matlab figure is easy. But plotting it in Matlab GUI is so much easy than figure plotting method. And also looks grandly to the user. We can have button on the GUI also. Its is done by making appropriate call back functions for GUI items in the s


代码预览