I have a 2D array where each element is a fixed length vector. I'm using Java and need to visualize the 2D array in the form of a color matrix (as in Matlab). I want to visualize how the vectors in the 2D array change with time (example:visualized in a loop 0...100).
I need help on the following.
What about int [ ] [ ] matrix = new int [ 100 ] [ 100 ] To visualize it you can simply print it:
for (int i=0; i<rows; i++) {
for (int j=0;j<cols;j++) {
System.out.println( matrix[i][j]+" ");
}
System.out.println();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.