Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
generating a 4d data

Subject: generating a 4d data

From: mizzue

Date: 17 Apr, 2012 13:58:07

Message: 1 of 5

hi,

I would like to generate a 4-D data for simulation for my programming to test whether it works or not.

the data should be in X x Y x V x t

this would be a data simulation for blood flow..

i know i should use meshgrid. But it would be nice if someone could guide me through on how to generate a simple 4-D image that could be used as a simulator..


thanks!

Subject: generating a 4d data

From: Sargondjani

Date: 17 Apr, 2012 18:26:08

Message: 2 of 5

pls be more specific.

what exactly don't you understand? did you try anything??? where does the data come from??

the most simple way to construct a 4d array it to have 4 loops and just fill the array point for point, but my guess is that you don't want that...

Subject: generating a 4d data

From: mizzue

Date: 18 Apr, 2012 17:36:09

Message: 3 of 5

"Sargondjani" wrote in message <jmkck0$u1$1@newscl01ah.mathworks.com>...
> pls be more specific.
>
> what exactly don't you understand? did you try anything??? where does the data come from??
>
> the most simple way to construct a 4d array it to have 4 loops and just fill the array point for point, but my guess is that you don't want that...


i would prefer to not use for loop since it take a lot of time.

I would want to create a 4d array, or simply put 3d x t

i would want to use it to try and simulate my program to see whether it works or not. the 4d array was meant to be a simulation data of brain mri image.

thank you

Subject: generating a 4d data

From: Matt J

Date: 18 Apr, 2012 17:46:09

Message: 4 of 5

"mizzue" wrote in message <jmmu29$5l9$1@newscl01ah.mathworks.com>...
>
> i would want to use it to try and simulate my program to see whether it works or not. the 4d array was meant to be a simulation data of brain mri image.
==============

Perhaps this is, or a similar tool on the File Exchange, is what you need

http://www.mathworks.com/matlabcentral/fileexchange/36125-generate-synthetic-fmri-data

If you don't find it on the File Exchange, you probably need to search more MR specialized sites.

Subject: generating a 4d data

From: mizzue

Date: 26 Apr, 2012 20:00:13

Message: 5 of 5

"Matt J" wrote in message <jmmul1$85a$1@newscl01ah.mathworks.com>...
> "mizzue" wrote in message <jmmu29$5l9$1@newscl01ah.mathworks.com>...
> >
> > i would want to use it to try and simulate my program to see whether it works or not. the 4d array was meant to be a simulation data of brain mri image.
> ==============
>
> Perhaps this is, or a similar tool on the File Exchange, is what you need
>
> http://www.mathworks.com/matlabcentral/fileexchange/36125-generate-synthetic-fmri-data
>
> If you don't find it on the File Exchange, you probably need to search more MR specialized sites.

Thank you so much for the link. however I did not intend to build up a brain image. This should be a simulation of blood vessels in the brain hence the 4D image.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us