Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Matrix

Matrix

Hello   
Svp is what you can give me a small example to construct a matrix that contains some values even and odd under Modelica. 
Of advance I thank you infinitely

Re: Matrix

model test
Real[3, 5] Matrix

equation
Matrix={{1,2,7,5,4.3}, {4, 6, 2.5, 90, 66}, {12, 13.333, 6, 9, 25}};
end test;

And if you want to access one value of the matrix it's for example:
a=Matrix[2, 5]   (=66)


Is this what you wanted? What exactly do you mean by "even and odd"?

There are 0 guests and 0 other users also viewing this topic