Im trying to create a button that prompts user to select file to load and display.
function loadbutton_Callback(hObject, eventdata, handles) [datafile datadir] = uigetfile('*.csv'); endWhen I run this code on a separate file it works but when I added to my code it gives this error*Function definitions are not permitted in this context.*
Best Answer