Clear Filters
Clear Filters

Change meshgrid axes min/step/max value using a GUI

1 view (last 30 days)
I'm trying to make a program where you can change the limits and steps of each axis on a 3D meshgrid.
[x,y,z] = meshgrid(minX:stepX:maxX,minY:stepY:maxY,minZ:stepZ:maxZ);
I'm trying to use edit text widgets to enter the data. My callback looks like:
function edit_minX_Callback(hObject, eventdata, handles)
minX = str2double(get(handles.edit_minX,'String'));
I've already watched this video: and it looks like that is the way to do it. However, it doesn't quite help with my specific needs. Help?

Answers (1)

Elias Gule
Elias Gule on 13 Jul 2017
Does this help:
assignin('base','minX',eval(minX)); % minX is the text such as '2:3:18'

Community Treasure Hunt

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

Start Hunting!