MATLAB練習(xí)例子二

返回

》 profile on -detail builtin -history 》 [t,y] = ode23('lotka',[0 2],[20,20]); 》 profile report lotkaprof 》 stats = profile('info') stats = FunctionTable: [28x1 struct] FunctionHistory: [2x774 double] ClockPrecision: 0.0160 》 stats.FunctionTable ans = 28x1 struct array with fields: FunctionName MfileName Type NumCalls TotalTime TotalRecursiveTime Children Parents ExecutedLines 》 stats.FunctionTable(2) ans = FunctionName: 'ode23' MfileName: 'C:\MATLAB\toolbox\matlab\funfun\ode23.m' Type: 'M-function' NumCalls: 1 TotalTime: 0.0310 TotalRecursiveTime: 0.0310 Children: [21x1 struct] Parents: [0x1 struct] ExecutedLines: [159x3 double] 》 save profstats 》 load profstats 》 profreport(stats) ----------------------------------------------------------------- 》 t=0:pi/4:2*pi; 》 y=sin(t); 》 y y = Columns 1 through 7 0 0.7071 1.0000 0.7071 0.0000 -0.7071 -1.0000 Columns 8 through 9 -0.7071 -0.0000 》 》 A = magic(3) A = 8 1 6 3 5 7 4 9 2 》 who Your variables are: A 》 whos Name Size Bytes Class A 3x3 72 double array Grand total is 9 elements using 72 bytes 》 保存workspace test.mat 讀取workspace load('test') File Type Extension Figure file fig M-file m MAT-file mat Model mdl P-file p
返回
汶上县| 赞皇县| 曲松县| 凤山县| 长白| 岳池县| 华蓥市| 广州市| 大石桥市| 灵寿县| 玉环县| 新昌县| 武安市| 宣汉县| 讷河市| 宜宾市| 中宁县| 穆棱市| 卢氏县| 勐海县| 凌源市| 诸暨市| 鄂尔多斯市| 漳平市| 白银市| 正定县| 天长市| 张掖市| 扎兰屯市| 壶关县| 仁化县| 仁布县| 潞西市| 叙永县| 巴楚县| 饶阳县| 育儿| 乌恰县| 蒲江县| 株洲县| 东源县|