qwt:绘制一维数组?
绘制一维数组的最简单方法是什么?
double ad_data[64];
int i;
for(i=0; i<64; i++)
{
ad_data[i] = sin( 1.0/16 * i * 3.1415 );
}
在 qwt 中
What is the most simple way to plot a 1-dimensional array like that:
double ad_data[64];
int i;
for(i=0; i<64; i++)
{
ad_data[i] = sin( 1.0/16 * i * 3.1415 );
}
in qwt?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是通用且最简单(也许是唯一)的方法。困难在于更改数组的元素,难度取决于程序的作用。所以你不能让这件事比那更容易。
That's THE universal and easiest (and maybe the only) way to do it. The difficulty is in changing the elements of the array and the difficulty depends on that what does the program does. So you can't make this any easier than that.