Plotting a vector

01232017, 03:49 PM
Post: #1




Plotting a vector
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? 

01232017, 05:20 PM
Post: #2




RE: Plotting a vector
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/thread4539.html I won't pretend to understand how it works. Brad 

01232017, 05:26 PM
Post: #3




RE: Plotting a vector
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.


01242017, 02:26 AM
Post: #4




RE: Plotting a vector
(01232017 05:20 PM)Brad Barton Wrote: Keith,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. 

01242017, 02:48 AM
Post: #5




RE: Plotting a vector
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. Brad 

01242017, 04:55 PM
Post: #6




RE: Plotting a vector
I think a found a good way to plot a vector, and even do some other things to it.
If you go to the Statistics 1 Var App, in the numeric view hit "make" and you can put the matrix into the expression: M1[X]. You then set the start and stop to get all the elements  or just the ones you choose  of the vector. You can then use the line plot to see all the elements and use the stats command to at least see the maximum and minimum values, even if you don't know where they are. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)