Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一系列与频率相关的点。如何根据波长而不是频率绘制该阵列?请记住,我不想定义函数,只是在这里使用数组。下面是我如何绘制称为 Q 的数组:
f = 100:500; % frequency points Q = f^2; % a "function" of frequency plot(f,Q)
现在我知道我可以简单地定义一个新阵列lambda=c/f,其中 c=光速,但是我可以根据波长重新绘制 Q,而不必将 Q 重新定义为波长的函数吗?
lambda=c/f
当然,只需更改 x 轴:
plot(c./f, Q);