[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to make a 3D surface
From: |
Juan Pablo Carbajal |
Subject: |
Re: how to make a 3D surface |
Date: |
Wed, 27 Mar 2013 15:08:37 +0100 |
On Wed, Mar 27, 2013 at 3:07 PM, Juan Pablo Carbajal
<address@hidden> wrote:
> On Wed, Mar 27, 2013 at 7:50 AM, thrmathe <address@hidden> wrote:
>> I need some help, the question is this, I have generated an output file in C
>> with three components
>>
>> e.g.
>>
>> 0.2114324 0.2222393 0.34434434
>> 0.2114325 0.2222394 0.34767456
>> ............... .............. . .....................
>> ............... ................ ......................
>> .................. .................. ......................
>> Want to make a surface where the first component is X, the second
>> component is Y, and the third component is Z.
>>
>> Who can help me please?
>>
>>
>>
>> --
>> View this message in context:
>> http://octave.1599824.n4.nabble.com/how-to-make-a-3D-surface-tp4651228.html
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>
> You need to answer some questions:
>
> 1. Does the data of Z is evaluated in a grid of X and Y?
>
> If yes: Then you can use the function mesh (or surf) to plot the data
> after you have reshaped it using reshape.
> If no: You can make a traingulation of the X,Y points (unsing
> deluanay) and then plot using the functions in themsh and fpl package.
Oh! If the X,Y dots are not in a grid you can also interpolate them
into a grid using griddata, if I recall correctly.