How to edit a Surface Plot and transfer the data to a 2-D matrix

Hello All, Is there any method to modify a suface plot (for ex one generated by surf(imagePh), where imagePh is a 2D image array with intensities repesenting the z coordinate) and transfer its contents to a 2-D array with the modified intensities. Plese share your opinions, Thanks, S.Bharath

Answers (1)

If you do manage to modify the plot, then you can get the modified values into an array by get()'ing the ZData property of the surface. If the color information is also to be modified and needs to be retrieved, that is the CData property.
The method for modifying the surface is going to depend upon what kinds of modifications you wish the user to be able to make.

2 Comments

Hi Walter, Thanks for your response, There is a means to alter the elements of an array through the property editor,its similar to entering values into an array in workspace.But as i am working with 80*80 Image array it would be not be practical to make changes by entering data into that many locations to generate many image files.I was wondering if there was a graphical way of doing it,may be like using a hand tool to pull up/down the peaks and valleys of the 3D surface plot. Thanks, S.Bharath
Hi again, I think i found a way to graphically modify the content using a brush in the tools.but now the task is to move the data back to a 2D array. i have saved the files as .fig now iam not sure how to use get() ,it gives out a error if i try to use get('filename.fig') or getget('filename.fig',ZData), can you point out whats wrong with these statements. Thanks, S.Bharath

Sign in to comment.

Tags

Asked:

on 15 Jun 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!