user1634014
user1634014

Reputation: 21

Open dialog box for name and file type to be created MATLAB

I try create a .txt file with define name in dialog box when click in button Export Parameters (gui Matlab) but can not. Only can create new file with names already defined, as we see in the following code.

function export_par_Callback(hObject, eventdata, handles)
f=handles.f;
d=handles.d;
gamma=handles.gamma;

dlmwrite('PARAMETERS.txt', [f',gamma',abs(d)',imag(d)'], 'delimiter', '\t','newline','pc')

[f',gamma',abs(d)',imag(d)'] is a simple matrix

I only need the dialog box before saving nem file

Upvotes: 0

Views: 457

Answers (1)

Nick
Nick

Reputation: 3193

please read the documentation of uiputfile

Upvotes: 2

Related Questions