Smitha
Smitha

Reputation: 6134

Represent a matrix in Android - 2*2

How can I represent a 2*2 Matrix in android. I have a MATLAB code and I want it in Android (not call matlab directly in android). How can I achieve this?

e.g.:

My matrix: a = [1 dt; 2 1]; % transition matrix

Thanks

Upvotes: 0

Views: 58

Answers (1)

Thorsten Dittmar
Thorsten Dittmar

Reputation: 56727

Assuming you program your Android app in Java, you'd use a two dimensional array with 2x2 elements. However, I'm not sure what this has to do with Android.

Upvotes: 3

Related Questions