Post Reply 
matrix programming ...
04-18-2020, 06:06 PM
Post: #1
matrix programming ...
It is possible to program or create an empty matrix when i´m trying to request first time data? ... i´m using this commands, but it's necessary to put some initial values (ceros in this case) when i establish number of columns (and rows) in stack view:

EXPORT Destats()
BEGIN
LOCAL mat,var;
var:=Ans(1);
mat:=MAKEMAT(0,var,var);
mat:=EDITMAT(mat);
END;

Best regards ... JT

Jesús Tamez
@jtamezga
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2020, 08:45 PM
Post: #2
RE: matrix programming ...
(04-18-2020 06:06 PM)jtamezga Wrote:  It is possible to program or create an empty matrix when i´m trying to request first time data? ... i´m using this commands, but it's necessary to put some initial values (ceros in this case) when i establish number of columns (and rows) in stack view:

EXPORT Destats()
BEGIN
LOCAL mat,var;
var:=Ans(1);
mat:=MAKEMAT(0,var,var);
mat:=EDITMAT(mat);
END;

Best regards ... JT

Every element of a matrix has to have some value in it. Zero is as good a starting place as any, no?

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




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