# HP Forums

Full Version: Plotting a vector
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am playing with the fft command, and would like to plot out a spectrum. The matrix editor, not being an app, has no plot command.

What is the easiest way to get my vector into an app to plot it?
Keith,

I'm interested in the answer to this problem as well. I think you'll want to plot the length of the vector multiplied by the sine of the vector's phase angle.

FYI, there is a program already written for plotting fourier spectra in the HP Prime program forum. Here's the link: http://www.hpmuseum.org/forum/thread-4539.html

I won't pretend to understand how it works.

I was really just looking for the general case of plotting all the elements of a vector. Granted, I can't think of any other reason to do that other than an FFT, but still.
(01-23-2017 05:20 PM)Brad Barton Wrote: [ -> ]Keith,

I'm interested in the answer to this problem as well. I think you'll want to plot the length of the vector multiplied by the sine of the vector's phase angle.

FYI, there is a program already written for plotting fourier spectra in the HP Prime program forum. Here's the link: http://www.hpmuseum.org/forum/thread-4539.html

I won't pretend to understand how it works.

It works by plotting a function at F0.
Spect() to plot the spectra.
eg. SIN(X) at F0 plotted within a range of period T=2*pi.
toshk,

Thanks for the tutorial, but I can make the program work for me, since it is plainly documented in your post. What I was saying is that I once tried to understand how it works internally, but haven't learned enough about programming the Prime to decipher what the program is doing to produce the spectrum.

Kudos for a great little program. I just need to brush up a bit on the in's and out's of the Prime in order to produce something similar.