how to write xls file
조회 수: 1 (최근 30일)
이전 댓글 표시
I have 3 plots in my graph.i have 3 checkboxes,each plot i have assigned it to check box.now i have created one pushbutton and i want to write xls file for checked button whenever pushbutton is pushed.it should look for checked button and should write xlsfile.can anyone help
댓글 수: 0
채택된 답변
Image Analyst
2013년 3월 1일
Have each button callback call the same function "WriteWorkbooks(handles)". In that function, it checks each checkbox and writes the data if it's checked
function WriteWorkbooks(handles)
checkbox1State = get(handles.checkbox1, 'Value');
checkbox2State = get(handles.checkbox2, 'Value');
checkbox3State = get(handles.checkbox3, 'Value');
if checkbox1State
% Write whatever data you want to for this checkbox.
xlswrite(.......
end
if checkbox2State
% Write whatever data you want to for this checkbox.
end
if checkbox3State
% Write whatever data you want to for this checkbox.
end
댓글 수: 5
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!