介紹
MATLAB是MathWorks公司的商業數學軟件,應用于科學計算、可視化以及交互式程序設計等高科技計算環境。Simulink是MATLAB中的一種可視化仿真工具。
Simulink是一個模塊圖環境,用于多域仿真以及基于模型的設計。它支持系統設計、仿真、自動代碼生成以及嵌入式系統的連續測試和驗證。
Simulink提供圖形編輯器、可自定義的模塊庫以及求解器,能夠進行動態系統建模和仿真。
Simulink與MATLAB相集成,能夠在Simulink 中將MATLAB算法融入模型。Simulink應用領域包括汽車、航空、工業自動化、大型建模、復雜邏輯、物理邏輯,信號處理等方面
durerImage=load(which('durer.mat'),'-mat');
figure('Units','Pixels','Position',...
[200 200 size(durerImage.X,2)*.5 ...
size(durerImage.X,1)*.5 ]);
image(durerImage.X);
colormap(durerImage.map);
axis('image');
set(gca,'Xtick',[],'Ytick',[],...
'Units','normal','Position',[0 0 1 1]);
close gcf
基本操作
Matlab基本操作:命令,路徑,變量(字符、字符串),內存區,運算符,常用函數,
標量/向量/數組/胞元數組/矩陣
二/三維曲線及圖形繪制:plot/fplot/plot3/fplot3,subplot
程序流控制:for,while,if/else,switch,try/catch,error,warning
輸入輸出:input,fprintf,文件讀取和寫入
M語言與仿真
基本類型
There are 16 fundamental classes in MATLAB. Each of these classes is in the form of a matrix or array.
嵌入式開發
MBD開發
Lib庫文件.mdl/,slx
m文件,DD文件
模型文件.mdl/,slx