본문 바로가기

MATLAB/ㄴ 앱 디자이너

(19)
Switch 토글 버튼을 이용해서 Graph를 Switching하기 % Value changed function: Switch function SwitchValueChanged(app, event) value = app.Switch.Value; if ~isvalid(app.UIAxes) app.UIAxes = uiaxes(app.GraphPanel); xlabel(app.UIAxes, 'Wavelength (nm)') app.UIAxes.XTick = [0 0.25 0.5 0.75 1]; app.UIAxes.XTickLabel = {'200'; '400'; '600'; '800'; '1000'}; app.UIAxes.FontSize = 24; app.UIAxes.Position = [1 0 852 538]; end switch value case 'Generated' t..
여러 개의 좌표축을 사용하여 이미지 분석의 결과를 표시하는 앱 만들기 https://kr.mathworks.com/help/matlab/creating_guis/image-histogram-gui-in-app-designer.html 여러 개의 좌표축을 사용하여 이미지 분석의 결과를 표시하는 앱 만들기 - MATLAB & Simulink - MathWorks 이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까? kr.mathworks.com 핵심코드 1) methods (Access = Private) 1-1) function updateImage(app,imagefile) % For corn.tif, read the second image in the file if strcmp(imagefile,'corn.tif') im = imr..
숫자형 입력값을 기반으로 데이터를 계산하고 플로팅하는 앱 만들기 https://kr.mathworks.com/help/matlab/creating_guis/mortgage-app-or-gui-in-app-designer.html#d126e5803 숫자형 입력값을 기반으로 데이터를 계산하고 플로팅하는 앱 - MATLAB & Simulink - MathWorks 한국 이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까? kr.mathworks.com 핵심코드 'Monthly Payment' 버튼에 Push 시 이벤트가 발생하는 콜백함수를 삽입함. % Button pushed function: MonthlyPaymentButton // MonthlyPayment 버튼을 클릭 시 발생하는 이벤트 함수 function MonthlyPay..