NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 19, 2017, 08:44:57 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Ask questions. Follow-up questions. ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: how to view the data values assigned into a array that is [5]*[5] for example.  (Read 5591 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: March 30, 2009, 02:58:11 pm »

how to view the data values assigned into a array that is [5]*[5] for example.

how to view the data values assigned into a array that is [5]*[5] for example.

i managed to view array data say d2[3]
by using Field and insert variables d2['0'] d2[1] d2[2] d2[3]

is the way to view a array [5]*[5]

also using Field insert variables d3[0,0] d3[0,1].... and so on?
seems very labor intensive, any suggestions?

TableData seems promising but it is the best way to view values stored in d3[5]*[5] for example?

Thanks!
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: March 30, 2009, 05:54:58 pm » posted from:Taipei,T\'ai-pei,Taiwan

Do you need to know the values for all 2D arrays?
In this case, you might need to print it out as a table or show it in a table.

Do you just want to know how it changes?
In this case, you can use scaleField in 2D or surfacePlot ...etc.

It depends on what is the purpose you want.
Using "loop" might reduce a lot of so called labor intensive work.
Logged
Pages: [1]   Go Up
  Print  
Ask questions. Follow-up questions. ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
how to find the sum of an array
Questions related to EJS
lookang 5 10890 Last post December 19, 2008, 07:51:37 am
by lookang
how to make slider with fixed values for instance 1,2,5,10 50
Questions related to EJS
Fred Chuit 2 7137 Last post January 20, 2009, 09:23:48 am
by lookang
using fiber optics for light path to an image to an area array image sensor
Optics
jackspar 0 5958 Last post February 17, 2009, 04:32:03 pm
by jackspar
histogram how can i dont count values =0 ?
Questions related to EJS
lookang 8 7243 Last post March 22, 2010, 10:59:31 pm
by lookang
how make loop for array for y coordinates?
Questions related to EJS
lookang 14 12234 Last post May 14, 2010, 11:22:41 pm
by Fu-Kwun Hwang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.057 seconds with 23 queries.since 2011/06/15