Post Reply 
plotting time discrete data
06-23-2015, 02:10 PM
Post: #3
RE: plotting time discrete data
I will present some results of my work. Not nearly satisfactional....

I decided to make a polyline(M) function that accepts a 1-dimensional vector as argument. It should use LINE_P() for plotting a polyline. That sounds nice, but I have the Feeling that i am stuck.
For my general understanding: LINE_P accepts a Vector of Points, i.e. vectors with 2 entries for the 2-dimensional Problems and a Vector of indices into the above buffer that define line segments. Similar to a vbo I think?

Help or an example on LINE_P with Point lists would be great!

second problem: when trying to convert my 1-dim vector into a points array I fail.

EXPORT polyline(data)

LOCAL v_data := MAKEMAT(I,length(data),2);
v_data(2):=TRN(data); //How to assign? What should the Points Array look like?

//LOCAL l_data:={{1,2},{2,3},{3,4},{4,5},{5,6}}; //How can I build such a vector in Dependance of length(data)? And row/column? Which format

//Will deal with that later.......

RETURN v_data; //Output for debugging

How can assign a column in v_data? I realize that I am totally confused with row- and column vectos AND I do not know the best way to manipulate either with my prime.

Thanks a lot for your help. It will lead to a working function, hopefully!
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
plotting time discrete data - leprechaun - 06-23-2015, 12:18 PM
RE: plotting time discrete data - leprechaun - 06-23-2015 02:10 PM

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