我如何将Matlab集成到vc ++中进行绘图 [英] How can i integrate matlab to vc++ for plotting

查看:123
本文介绍了我如何将Matlab集成到vc ++中进行绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我是matlab的新手,我想为我的项目将matlab集成到VC ++.

这是我的任务
1)如何从vc ++动态地将x-label和y-label分配给matlab图.我的代码如下:

Hello Friends,

I am new to matlab, and I wanted to integrate matlab to VC++ for my project.

Here my tasks are

1) how to assign x-label and y-label dynamically on to matlab graph from vc++. My code looks like this:

   Engine *ep;
ep = engOpen("");
    EngEvalString(ep, "xlabel(''x-axis'');");
    EngEvalString(ep, "ylabel(''y-axis'');");


x轴内部由字符串"Time"组成,y轴内部由字符串"Voltage"组成.用户在VC ++ GUI中输入的每一次选择都会更改字符串电压和时间".

2)如何从文本文件中选择特定的列并在matlab上绘图.

给出一些实现此想法的方法:


感谢任何帮助.


x-axis internally consists of a string "Time" and y-axis internally consists of a string "Voltage". The string Voltage and Time changes for every selection and entered by the user from the VC++ GUI.

2) how to select particular columns from a text file and to plot on matlab.

Give some ideas to implement this:


Any help is appreciated

推荐答案

Matlab是学生的玩具,如果您想使用VC ++进行图形绘制,我建议您使用一个真实的图形库.如果您想使用Matlab,网络上会存在大量的教程.
Matlab is a toy for students, if you want graphing in VC++, I suggest getting a real graphing library. If you want to use matlab, tons of tutorials exist on the web.


这篇关于我如何将Matlab集成到vc ++中进行绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆