MATLAB介紹

Similar documents
移民資料

個人教室 / 網路硬碟

台南縣全民學區數位學習課程進階班—PhotoImpact 10

untitled

1

untitled

中華民國第45屆中小學科學展覽會

untitled

PowerPoint 簡報

untitled

untitled

untitled

untitled

隱形眼鏡的世界

untitled

台灣經濟新報資料庫

健康與食品安全的問卷訪問

電腦組裝訓練

untitled

untitled

龍華科技大學

了 立 連 立 量 領 來 例 蘭 便 不 數 不 論 更 更 更 力 更 參 例 來 例 見 量 度 量 量 參 論 量 行 量 量 瑩 理 來 錄 量 量 不 力 省 力 立 力 量 量 量 了 量 便 錄 錄 錄 料 說 省 6

untitled

untitled

行政院國科會九十一年度專題研究

公立學校教職員成績考核辦法修正草案總說明

untitled

untitled

吃寒天真的能減肥嗎

Slide 1

untitled

untitled

untitled

untitled

untitled

untitled

依據教育部八十九年 月 日臺(八九)技(二)字第 號函

降禰遘禤

untitled

untitled

中華人民共和國殘疾人保障法(2008年修訂)

專 題 論 述

臺灣地區的警察教育現況與展望

untitled

國立中山大學學位論文典藏.PDF

untitled

untitled

廢證相關作業

4-04 論文封面(樣式)

「行政院及所屬各機關出國報告綜合處理要點」

untitled

untitled

微處理機實習期末專題

如何去除食物的農藥

四湖鄉志纂修

untitled

untitled

untitled

見 例 年 例 利 不 料 林 不 立 理 不 念 類 理 利 了 路 來 行 來 行 立 見不 立 亂 不 理 立 來 2

國立自然科學博物館館訊第288期

untitled

untitled

人身保險業務員資格測驗方案

2011台灣高中職專題暨小論文競賽

篇名

個人提供土地與建設公司合建分屋並出售合建分得之房屋,核屬營業稅法規定應課徵營業稅之範圍,自本函發布日起,經建築主管機關核發建造執照之合建分屋案件,附符合說明二之規定者外,均應辦理營業登記,課徵營業稅及營利事業所得稅

untitled

untitled

地方公共服務績效比較評量之探討—標竿學習策略的觀點

untitled

untitled

國立陽明大學輻射防護計畫書

untitled

《摘要》

untitled

untitled

untitled

WTO/TBT重要通知

untitled

第五章 鄉鎮圖書館閱讀推廣活動之分析

untitled

untitled

untitled

untitled

untitled

國立政治大學新研所碩士在職專班

untitled

untitled

第五章 實例個案

untitled

大陸黨報集團化發展之研究

untitled

untitled


untitled

第一章 導論

untitled

九降風

untitled

SanPin

Transcription:

MATLAB 2008a GUIDE

GUIDE GUIDE Graphic User Interface Design Environment Graphical User Interface GUI GUIDE 令 拉 見 GUIDE 不 GUI GUI 行 率

GUIDE MATLAB 7.x GUIDE 令 guide GUIDE

GUIDE Create New GUI Blank GUI (Default) GUI with Uicontrols UI UI Controls GUI with Axes and Menu 拉 Modal Question Dialog GUI Open Existing GUI 來

GUIDE 了 說 Create New GUI Blank GUI (Default) 來

GUIDE UI 滑 來 UI GUIDE 更 File/Preference Show names in component palette 說 Ruler 拉 Tools/Grid and Rulers Show rulers

GUIDE GUIDE

GUIDE ( 來 ) 兩 拉 Slider 欄 Edit Text

滑 來 UI Inspect Properties 拉 例 滑 Inspect Properties Property Inspector

來 令 令 GUI 列 拉 拉 0 1 欄 欄 拉 GUIDE 令 來 _Callback

滑 拉 View Callbacks/Callback MATLAB 令 拉 Tag myslider myslider_callback() 兩列 position = num2str(get(handles.myslider, 'Value')); set(handles.mytext, 'String', position); 列 拉 數 列 數 欄

GUIDE

欄 令 mytext_callback() 兩列 value = str2double(get(handles.mytext, 'String')); set(handles.myslider, 'Value', value); 列 欄 數 列 拉 數

GUIDE

GUIDE 列 GUI 若不 MATLAB 路

GUI 拉 欄 欄 來 拉

令 不 UI 料 UI 令 來 行 GUIDE 了 數 handles 便 料 列兩 handles 來 料 handles 來 UI

例 若 數 A 列 handles.mydata = A; % 數 A handles mydata 欄 guidata(hobject, handles) % handles GUI 裡 數 A 列 A = handles.mydata;

handles 了 GUI handles.myslider 拉 handles.mytext 欄 GUI mygui handles.mygui GUI 若 列 delete(handles.mygui)

例 不 數 錄 數 GUIDE 拉 File/Save As mygui02 GUIDE mygui02.m mygui02_openingfcn() 列 handles.errorcount = 0; guidata(hobject, handles); handles 留

欄 令 value = str2double(get(handles.mytext, 'String')); % 0 1 量數 if isnumeric(value) & length(value)==1 &... value >= get(handles.myslider, 'Min') &... value <= get(handles.myslider, 'Max') set(handles.myslider, 'Value', value); else % 若不 數 handles.errorcount = handles.errorcount + 1; guidata(hobject, handles); % handles errmsg = [' 不 : ', num2str(handles.errorcount), ' ']; set(handles.mytext, 'String', errmsg); end

行 不 數

例 拉 來 不 來 UI

滑 來 UI Inspect Properties String: chirp handle laughter Tag: soundfile String: Load File String: Close Tag: closebutton String: Play Sound Tag: playbutton

UI 令 MatLab UI 令 滑 Close View Callbacks/Callback 令 例 Close Tag closebutton 令 數 closebutton_callback

令 close(gcbf) GUIDE

gcbf 令 close(gcbf) GUI gcbf 令 類 令 理 gcf: get current figure gca: get current axes gco: get current object gcbf: get callback figure 令 gcbo: get callback object 令

拉 soundfile_callback() value=get(hobject, 'value'); % UI switch value % 來 case 1 load chirp.mat case 2 load handel.mat case 3 load laughter.mat end plot((1:length(y))/fs, y); % handles.y=y; % 錄 handles.fs=fs; % 錄 率 guidata(hobject, handles); % handles

令 說 hobject 拉 value = get(hobject, value ) 不 來 不 chirp.mat handel.mat laughter.mat 料 y 料 Fs 率 兩 數 UI 令 兩 數 handles.y handles.fs 數 handles 不 料 料 handles guidata(hoject, handles) 來更 GUI handles 數

Play Sound playbutton_callback() if isfield(handles, 'y') y=handles.y; Fs=handles.Fs; sound(y, Fs); end isfield(handles, 'y') 來 y 不 handles 若 料 handles 數 y Fs sound(y, Fs) 來

MATLAB GUIDE 列 GUI

若 拉 handel Play Sound 喇

例 拉

View/View Callback/CreateFcn MATLAB *_OpeningFcn() 列 令 peaks; 令 peaks 度 來

Tools/Menu Editor

Label

若 若 行

View MATLAB 令 Shading/faceted Shading/interp Shading/flat Colormap/Gray Colormap/Cool Colormap/Summer 令 shading faceted shading interp shading flat colormap gray colormap cool colormap summer

行 拉 GUI

GUIDE 狀 Object Browsers GUIDE View/Object Browser 來 Object Browsers

若 GUIDE Tools/Align Objects 來 來 行