From: roya olyazadeh on
I created a function in matlab. Input for this function is a text file .
Does anyone know how can I call a text file in GUI ??
like this
filename=input('Input the filename :','s');

for example I want to click in a push button and then It asked me to write filename and directory and then I call my function.

And after running function , my results are displayed in axes and edit text that I drew in GUI.