Prev: structure array
Next: workspace
From: Rajesh Sarkar on 12 Apr 2010 00:28 I want to read the input string from Edit Text Box. Actuallly I want to put an image's name in the Edit Text box (like 'image1.tif'). Then I want to read the image by imread(). But I cant be able to do that. How to get that? Please help me. Rajesh Sarkar Jadavpur University Kaolkata India
From: ImageAnalyst on 12 Apr 2010 06:20 You'd be better off having your user pick the filename from a listbox, like is done here: http://www.mathworks.com/matlabcentral/fileexchange/24224 If you insist on making it harder for the user by having them know and be able to type in the filename exactly into the edit text box, then you can do this (untested) editBoxString = get(handles.edtFilename, 'String'); fullFilename = fullfile(folder, editBoxString); if exist(fullFilename, 'file) imshow(fullFilename); end
|
Pages: 1 Prev: structure array Next: workspace |