From: Thuan Le on
Hi,
I have a 2D model of a heat pipe and a 3D model i developed by my self. I now wanting to graphs the temperature profile of the 2D and the 3D model onto the same plot so that i can compare the two models.
I can always export the temperature profile of both model to excel and graphs it in excel, but i really want to do it in matlab.
how should i approach this problem, do i have to run the 2D model, save the 2D temperature profile to a file. Run the 3D, save temperature profile to a file, and then have matlab some how read from the files...Im not sure how
can someone help?

Thank you
From: Jody Klymak on
"Thuan Le" <thuan_le10(a)hotmail.com> wrote in message <hi3asb$js$1(a)fred.mathworks.com>...
> Hi,
> I have a 2D model of a heat pipe and a 3D model i developed by my self. I now wanting to graphs the temperature profile of the 2D and the 3D model onto the same plot so that i can compare the two models.
> I can always export the temperature profile of both model to excel and graphs it in excel, but i really want to do it in matlab.
> how should i approach this problem, do i have to run the 2D model, save the 2D temperature profile to a file. Run the 3D, save temperature profile to a file, and then have matlab some how read from the files...Im not sure how
> can someone help?
>
> Thank you

I'm not sure I understand, but does

% your code to make 2D and 3 D model fields
[x1,T1]=get2D;
[x2,T2]=get3D;
% plot the data...
plot(x1,T1,x2,T2);

Not do what you want?
From: Thuan Le on
"Jody Klymak" <jklymak(a)gmail.com> wrote in message <hi3boh$q7c$1(a)fred.mathworks.com>...
> "Thuan Le" <thuan_le10(a)hotmail.com> wrote in message <hi3asb$js$1(a)fred.mathworks.com>...
> > Hi,
> > I have a 2D model of a heat pipe and a 3D model i developed by my self. I now wanting to graphs the temperature profile of the 2D and the 3D model onto the same plot so that i can compare the two models.
> > I can always export the temperature profile of both model to excel and graphs it in excel, but i really want to do it in matlab.
> > how should i approach this problem, do i have to run the 2D model, save the 2D temperature profile to a file. Run the 3D, save temperature profile to a file, and then have matlab some how read from the files...Im not sure how
> > can someone help?
> >
> > Thank you
>
> I'm not sure I understand, but does
>
> % your code to make 2D and 3 D model fields
> [x1,T1]=get2D;
> [x2,T2]=get3D;
> % plot the data...
> plot(x1,T1,x2,T2);
>
> Not do what you want?

i guess that make sense but im not sure how to work with it. my 2D and 3D model is call "model2d.m" and "model3d.m" when i run the .m files i obtain a a temperature profile as the result.