run m-File script with a pushbutton, then use the read elements with another button
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi folks!
I want to make a gui which on the push of one button reads the data from the script of my check2.m (it contains xlsreads an such) file.
Another button should then be able to use the read data and just write a message box with the information contained.
Here my code:
*function pushbutton1_Callback(hObject, eventdata, handles)
evalin('base', 'check2')*
it reads the script and writes the data to the workspace just fine. further the element i should be written to a msgbox.
function pushbutton2_Callback(hObject, eventdata, handles)
msgbox(i);
This however doesn't work at all, providing me with a huge error message.
Help please and hi from Munich
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!