qwt:绘制一维数组?

发布于 2024-12-27 05:53:09 字数 164 浏览 6 评论 0原文

绘制一维数组的最简单方法是什么?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灼痛 2025-01-03 05:53:09

这是通用且最简单(也许是唯一)的方法。困难在于更改数组的元素,难度取决于程序的作用。所以你不能让这件事比那更容易。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文