|
On Dec 23, 11:18 am, "mona " <iee2...@yahoo.com> wrote:
> I need to plot contour using existing x,y,z data.
> Only thing I have is following x,y,z data as a text file.
>
> 0 , 0 , 0.0752
> 0 , 0.0100 , 0.0751
> 0 , 0.0200 , 0.0752
> 0 , 0.0300, 0.0749
> 0.0100 , 0 , 0.0744
> 0.0100 , 0.0100 , 0.0741
> 0.0200 , 0 , 0.0741
> 0.0200 , 0.0200 , 0.0748
> 0.0300 , 0 , 0.0747
> 0.0300 ,0.0300, 0.0743
> 0.0410 , 0 , 0.0736
> 0.0410 , 0.0300 , 0.0738
> 0.0500 , 0 , 0.0732
> 0.0600 , 0 , 0.0728
> 0 , 0.1130 , 0
> 0.0410 , 0.0410 , 0
> 0.0650 , 0 , 0
> 0.0700 , 0 ,-0.0302
> 0.0800 , 0 , -0.0304
> 0.0900 , 0 , -0.0306
> 0.0410 , 0.0500 , -0.0330
> 0.0410 , 0.0600 , -0.0330
> 0.0500 , 0.0500 , -0.0331
> 0.0500 , 0.0600 , -0.0331
> 0.0500 , 0.0500 , -0.0332
>
> From help menu, I found that there is a command called contour to perform this task.
> But I cannot understand how to do it from my existing data.
> Can anyone tell me the required steps to do that.
>
> mona
Assume A is your matrix containing the given data.
contour(A) %contour map of A
contourf(A) %filled contour map of A
Is that what you want?
-Nathan
|