Scilab 3D plot, somebody can help me? I'm just a starter.

Status
Not open for further replies.

Jason Hou

Newbie level 6
Joined
Sep 26, 2012
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Singapore
Activity points
1,369
Okay, everybody, I try my best to make it short, my supervisor told me to make a 3D plot by using scilab, I'm not clear about his command, here is the original text:

Each elementary cube is located at coordinates i,j,k.

The other number (let's say "l") is the fourth dimension of the matrix.

Each combination of i,j,k,l refers to a real number which is:


-The density of spins in the elementary cube LOCATED AT i,j,k if l=1
-The value in Tesla for the z-component of magnetic field LOCATED AT i,j,k if l=2
-...etc...

this is a personal way of describing the physical problem. I just invented it because I tought it was the best way to do it with regard to what I'm a willing to do in the simulation code.

Don't forget that coordinates i,j,k will be later tranlated into physical position ( in millimeter, each cube having a 5mmx5mmx5mm total volume). Which means that elementary cube located at i=2,j=3,k=2 is just 5mm away than elementary cube located at i=2,j=4,k=2 (for example).

In scilab there is a possibily of displaying graphics. It might be a good training if you take it as an objective to write a Scilab function that could display on the screen (for example) one the cubes' characteristics (say static field, l=2) in any 3D plane.

This function could be called display_physical_problem(*,*,2,4) and could subsequently display on a 3D graphic the value of the fourth parameter for each cube having a z coordinate equal to 4.

Another Example: Display on a 3D graphic the value of the spin density (l=2) for each cube belonging to the plane y=5. That could be then "display_physical_problem(*,5,*,1)"

You have got to find a way to write this function.

Can anybody help me? I'm really appreciated for that.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…