Code covered by the BSD License  

Highlights from
4 Dimensional visualization

3.66667

3.7 | 9 ratings Rate this file 48 Downloads (last 30 days) File Size: 2.18 MB File ID: #13503
image thumbnail

4 Dimensional visualization

by Divahar Jayaraman

 

28 Dec 2006 (Updated 25 Feb 2010)

This is to visualize the functions of 3 variables: z=f(x,y,t), which becomes 4 dimensional problem

| Watch this File

File Information
Description

This is to visualize the functions of 3 independent variables ( v=f(x,y,z) ), which becomes 4 dimensional problem.

It just uses the MATLAB function "slice", in an effective way, leading to customizable 4 dimensional visualization tool.

Function should first be calculated at the required 3-dimensional grid and stored as ?.mat? file in the folder "\Visual_Data\".

The ".mat" files should contain the following variables,

        X
        Y
        Z
        V

X, Y, Z are the 3 coordinate points and V is the function. All the variables will be 0f l x m x n in size ( three dimensional array with same dimensions)

One example data file is included in the folder.

Many such mat files can be created and kept in the same folder, which can be selected for visualization from the pop-up menu.

A simple m file (2-lines) Create_Volume.m is also included, which may be useful for generating data for simple functions.

Authors Comment:
-- Was written in a hurry for the author?s own requirement and later refined.
-- Will be useful as a quick tool for many scientific investigations for understanding the structure of any 4-dimensional functions.

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements Screen Resolution of 1024 x 768 would be better MATLAB 7.0.1 or later Version
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
29 Dec 2006 John D'Errico

This might be useful, but there is essentially no help included.

Furthermore, it seems foolish to me to force the user to use a specific directory, saving .mat files with specific variable names into that directory as an interface. I think recent versions of matlab have a tool that can be used to get around that problem. Its called a "function". You pass your arguments into the function.

31 Dec 2006 F. Lange

Interesting. Nice effort. You can always rework and resubmit as needed.

08 Feb 2007 Srividhya Jeyaraman

The is really a useful tool when one has many parameters to visualize at once. It produces good graphics and allows storage of the picture as jpg file. It served my requirements very well. This tool should improve in a way that is much more customizable according to the user's needs. All the best and congratulations.

20 Feb 2008 Kevin Mitchell

This is a really cool utility, but it still needs a little work.

It didn't load the example file at first because it was assumed that my directories were delimited by a "\", where they are in fact delimited by "/". I agree, data should be passed as function arguments if only for portability.

It would also be nice not to be constrained to stay in the directory containing Visualization_4d.m to even close the window.

25 May 2008 buza lala  
12 Jan 2009 OIS

Thank you, this is a very nice tool. Simple yes, no help yes, but it does what it is supposed and needed it to do (and it saved me the time to write it myself). One thing though, 2 of my variables were relatively small 1e-11 and 1e-6 and the sliders didn't work for me. So my quick and dirty suggestions is to make sure that you scale your variable in such case.

20 Jan 2009 Joao

Very useful tool! Thank you for sharing!

Minor suggestions:

Making the program more general, in order to plot XYZ with different lengths,

Selectable transparency of planes,

While adjusting x,y,z plane position, the coordinate values should be visible, for reference.

Anyway, this has saved me lots of work ;)

15 Apr 2010 Rina

Fabulous! Thanks. Coordinate values on the sliders would be a great addition.

12 May 2010 Alexandra

Nice Tool, but a bit more documentation would be nice. Also having to put the data in a file in a special folder ist just plain complicated.

Please login to add a comment or rating.
Updates
02 Jan 2007

Just correction of spelling mistakes in the description

07 Feb 2007

"Error with Slider value" problem was rectified. Thanks to Ms.Srividya for her feedback about it.

25 Feb 2010

Updated to make it work in non WINDOWS Operating Systems also by changing the path specification using "/"

Tag Activity for this File
Tag Applied By Date/Time
annotation Divahar Jayaraman 22 Oct 2008 08:54:25
customization Divahar Jayaraman 22 Oct 2008 08:54:25
visualization Divahar Jayaraman 22 Oct 2008 08:54:25
graphics Divahar Jayaraman 22 Oct 2008 08:54:25
multi dimensional Divahar Jayaraman 22 Oct 2008 08:54:25
4 dimension Divahar Jayaraman 22 Oct 2008 08:54:25
4 dimension Laura 16 Jul 2009 16:41:39

Contact us at files@mathworks.com