freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

matlab編程第三章(文件)

 

【正文】 d a 0 otherwise. isnumeric (a) Returns a 1 if the a is a numeric array and a 0 otherwise. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 26 Quiz Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 27 Branches ?if。)。 else disp (39。The grade is A.39。)。 elseif grade disp (39。The grade is F.39。)。 else if grade disp (39。The grade is D.39。)。 case {2, 4, 6, 8, 10}, disp (39。The value is out of range.39。 En t er s ub s cr i pt o f e l em en t t o di s pl ay : 39。 i nt 2 str ( i nd ex ) 39。 I l l eg al s ub s cr i pt : 39。 This function sets the x and y limits of the plot to the specified values. axis equal This mand sets the axis increments to be equal on both axes. axis square This mand makes the current axis box square. axis normal This mand cancels the effect of axis equal and axis square. axis off This mand turns off all axis labeling, tick marks, and background. axis on This mand turns on all axis labeling, tick marks, and background. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 58 Good Programming Practice MATLAB mands are really implemented by functions, and the MATLAB interpreter is smart enough to substitute the function call whenever it encounters the mand. It is always possible to call the mand directly as a function instead of using the mand syntax. axis on。p l o t ( x , y ) 。 g r i d o nExample Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 61 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 62 l i m i t s = axisl i m i t s = 8 8 1 1 a x i s ([ 0 pi 0 1 ])Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 63 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 64 Plotting Multiple Plots on the Same Axes hold on/off Example x = pi : pi / 20 : pi 。 b 39。 k 39。 si n x 39。Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 65 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 66 Creating Multiple Figures MATLAB can create multiple Figure Window, with different data displayed in each window. Each Figure Window is identified by a figure number, which is a small positive integer. figure (n) : selects current figure. gcf : returns the number of the current figure. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 67 Example figur e ( 1 ) 。figur e ( 2 ) 。s ub pl ot ( 2 , 1 , 1 ) 。title ( 39。x = pi : pi / 20 : pi 。 Su bp lo t 2 title 39。p l o t ( x , y , 39。 , 3 . 0 , 39。 , 39。 , 39。 \pi π \Pi Π \circ 176。 n : the number of molecules of the gas in units of moles (mol). R : the universal gas constant ( L ?Additional information about plots。 T : the absolute temperature in kelvins (K). PV nRT?Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 86 (a) T = 273K, the volume of the gas vary as its pressure varies from 1 to 1000 kPa? Plot using a solid red line, with a width of 2 pixels. (b) T = 373K, Plot again on the same figure using a dashed blue line, with a width of 2 pixels. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 87 Annotating and Saving Plots GUIbased tools Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 88 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 89 Use ―File/Save As‖ menu, *.fig file. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 90 More on Debugging MATLAB Programs symbolic debugger Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 91 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 92 Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 93 Use Breakpoints menu. All breakpoints may be lost when the program is saved. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 94 Summary ?Basic types of MATLAB branches。 r : an array of distances. Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 82 Example — Cardioid Microphone The gain of such a microphone varies as a function of angle according to the equation. g : a constant associated with microphone. θ: the angle from the axis of the microphone to the sound source. 2 (1 c o s )G a in g ???Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 83 Example —Electrical Engineering : Frequency Response of a LowPass Filter RVi CVoChapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 84 R = 16kΩ C = 1μF 112oiVV j fR C?? ?Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 85 Example — Thermodynamics: The Ideal Gas Law P : the pressure of the gas in kilopascals (kPa)。 )Chapter 3 Branching Statements and Program Design 10/23/2022 Hangzhou Dianzi University 74 Chapter 3 Branching State
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1