跳轉至內容

Julia for MATLAB Users/Core Language/Advanced Software Development

來自 Wikibooks,為開放世界提供開放書籍

高階軟體開發

[編輯 | 編輯原始碼]

建立類

[編輯 | 編輯原始碼]

類語法指南

[編輯 | 編輯原始碼]

class 確定物件類

[編輯 | 編輯原始碼]

在 Julia 中,typeof() 本質上是等效的。

isobject 確定輸入是否是 MATLAB 物件

[編輯 | 編輯原始碼]

enumeration 類列舉成員和名稱

[編輯 | 編輯原始碼]

events 事件名稱

[編輯 | 編輯原始碼]

methods 類方法名稱

[編輯 | 編輯原始碼]

properties 類屬性名稱

[編輯 | 編輯原始碼]

示例類實現

[編輯 | 編輯原始碼]

classdef 類定義關鍵字

[編輯 | 編輯原始碼]

類定義

[編輯 | 編輯原始碼]

類檔案組織

[編輯 | 編輯原始碼]
classdef 類定義關鍵字
[編輯 | 編輯原始碼]
import 將包或類新增到當前匯入列表
[編輯 | 編輯原始碼]
properties 類屬性名稱
[編輯 | 編輯原始碼]
isprop 確定物件是否具有屬性
[編輯 | 編輯原始碼]
mustBeFinite 驗證值是否為有限值或發出錯誤
[編輯 | 編輯原始碼]
mustBeGreaterThan 驗證值是否大於另一個值或發出錯誤
[編輯 | 編輯原始碼]
mustBeGreaterThanOrEqual 驗證值是否大於或等於另一個值或發出錯誤
[編輯 | 編輯原始碼]
mustBeInteger 驗證值是否為整數或發出錯誤
[編輯 | 編輯原始碼]
mustBeLessThan 驗證值是否小於另一個值或發出錯誤
[編輯 | 編輯原始碼]
mustBeLessThanOrEqual 驗證值是否小於或等於另一個值或發出錯誤
[編輯 | 編輯原始碼]
mustBeMember 驗證值是否為指定集合的成員
[編輯 | 編輯原始碼]
mustBeNegative 驗證值是否為負數或發出錯誤
[編輯 | 編輯原始碼]
mustBeNonempty 驗證值是否非空或發出錯誤
[編輯 | 編輯原始碼]
mustBeNonNan 驗證值是否為非 NaN
[編輯 | 編輯原始碼]
mustBeNonnegative 驗證值是否為非負數或發出錯誤
[編輯 | 編輯原始碼]
mustBeNonpositive 驗證值是否為非正數或發出錯誤
[編輯 | 編輯原始碼]
mustBeNonsparse 驗證值是否為非稀疏矩陣或發出錯誤
[編輯 | 編輯原始碼]
mustBeNonzero 驗證值是否為非零或發出錯誤
[編輯 | 編輯原始碼]
mustBeNumeric 驗證值是否為數值型別或發出錯誤
[編輯 | 編輯原始碼]
mustBeNumericOrLogical 驗證值是否為數值型別或邏輯型別或發出錯誤
[編輯 | 編輯原始碼]
mustBePositive 驗證值是否為正數或發出錯誤
[編輯 | 編輯原始碼]
mustBeReal 驗證值是否為實數或發出錯誤
[編輯 | 編輯原始碼]
dynamicprops 支援動態屬性的類的超類
[編輯 | 編輯原始碼]
meta.DynamicProperty 描述 MATLAB 物件的動態屬性
[編輯 | 編輯原始碼]
event.DynamicPropertyEvent 動態屬性事件的事件資料
[編輯 | 編輯原始碼]
meta.property 描述 MATLAB 類的屬性
[編輯 | 編輯原始碼]
meta.Validation 描述屬性驗證
[編輯 | 編輯原始碼]
meta.FixedDimension 屬性大小規範中的固定維度
[編輯 | 編輯原始碼]
meta.UnrestrictedDimension 屬性大小規範中的無限制維度
[編輯 | 編輯原始碼]
meta.ArrayDimension 屬性驗證的大小資訊
[編輯 | 編輯原始碼]
matlab.lang.OnOffSwitchState 使用邏輯值表示開和關狀態
[編輯 | 編輯原始碼]
methods 類方法名稱
[編輯 | 編輯原始碼]
ismethod 確定是否為物件的方法
[編輯 | 編輯原始碼]
meta.method 描述 MATLAB 類的的方法
[編輯 | 編輯原始碼]

控制代碼類

[編輯 | 編輯原始碼]
isequal 確定陣列相等
[編輯 | 編輯原始碼]
eq 確定相等
[編輯 | 編輯原始碼]
handle 所有控制代碼類的超類
[編輯 | 編輯原始碼]
matlab.mixin.SetGet 為控制代碼類提供 set 和 get 方法
[編輯 | 編輯原始碼]
matlab.mixin.SetGetExactNames 要求 set 和 get 方法的精確名稱匹配
[編輯 | 編輯原始碼]
dynamicprops 支援動態屬性的類的超類
[編輯 | 編輯原始碼]
matlab.mixin.Copyable 為控制代碼物件提供複製功能的超類
[編輯 | 編輯原始碼]
events 事件名稱
[編輯 | 編輯原始碼]
handle.notify 通知監聽器事件正在發生
[編輯 | 編輯原始碼]
handle.addlistener 建立繫結到事件源的事件監聽器
[編輯 | 編輯原始碼]
handle.listener 建立不繫結到事件源的事件監聽器
[編輯 | 編輯原始碼]
event.hasListener 確定事件是否存在監聽器
[編輯 | 編輯原始碼]
event.EventData 事件資料的基類
[編輯 | 編輯原始碼]
event.listener 定義監聽器物件的類
[編輯 | 編輯原始碼]
event.PropertyEvent 屬性事件的資料
[編輯 | 編輯原始碼]
event.proplistener 定義屬性事件的監聽器物件
[編輯 | 編輯原始碼]

類層次結構

[編輯 | 編輯原始碼]
子類定義
[編輯 | 編輯原始碼]
superclasses 超類的名稱
[編輯 | 編輯原始碼]
matlab.mixin.Heterogeneous 用於異構陣列形成的超類
[編輯 | 編輯原始碼]
enumeration 類列舉成員和名稱
[編輯 | 編輯原始碼]
isenum 判斷變數是否為列舉
[編輯 | 編輯原始碼]
meta.EnumeratedValue 描述 MATLAB 類的列舉成員
[編輯 | 編輯原始碼]

類定製

[編輯 | 編輯原始碼]

物件索引

[編輯 | 編輯原始碼]
numArgumentsFromSubscript 自定義索引方法的引數數量
[編輯 | 編輯原始碼]
subsref 重新定義物件的帶下標引用
[編輯 | 編輯原始碼]
subsasgn 重新定義帶下標的賦值
[編輯 | 編輯原始碼]
subsindex 將物件轉換為陣列索引
[編輯 | 編輯原始碼]
substruct 為 subsasgn 或 subsref 建立結構引數
[編輯 | 編輯原始碼]
builtin 從過載方法執行內建函式
[編輯 | 編輯原始碼]

物件陣列

[編輯 | 編輯原始碼]
empty 建立空陣列
[編輯 | 編輯原始碼]
matlab.mixin.Heterogeneous 用於異構陣列形成的超類
[編輯 | 編輯原始碼]

自定義類的物件顯示

[編輯 | 編輯原始碼]
display 用於內部命令視窗顯示
[編輯 | 編輯原始碼]
details 顯示陣列詳細資訊
[編輯 | 編輯原始碼]
matlab.mixin.CustomDisplay 用於自定義物件顯示的介面
[編輯 | 編輯原始碼]
matlab.mixin.util.PropertyGroup 用於物件顯示的自定義屬性列表
[編輯 | 編輯原始碼]

物件儲存和載入

[編輯 | 編輯原始碼]
saveobj 修改物件的儲存過程
[編輯 | 編輯原始碼]
loadobj 自定義物件的載入過程
[編輯 | 編輯原始碼]

類編輯

[編輯 | 編輯原始碼]

edit 編輯或建立檔案

[編輯 | 編輯原始碼]

類內省和元資料

[編輯 | 編輯原始碼]

metaclass 獲取 meta.class 物件

[編輯 | 編輯原始碼]

meta.abstractDetails 查詢抽象方法和屬性

[編輯 | 編輯原始碼]

meta.class.fromName 返回與命名類關聯的 meta.class 物件

[編輯 | 編輯原始碼]

meta.package.fromName 返回指定包的 meta.package 物件

[編輯 | 編輯原始碼]

meta.package.getAllPackages 獲取所有頂級包

[編輯 | 編輯原始碼]

properties 類屬性名稱

[編輯 | 編輯原始碼]

methods 類方法名稱

[編輯 | 編輯原始碼]

events 事件名稱

[編輯 | 編輯原始碼]

superclasses 超類的名稱

[編輯 | 編輯原始碼]

meta.class 描述 MATLAB 類

[編輯 | 編輯原始碼]

meta.property 描述 MATLAB 類的屬性

[編輯 | 編輯原始碼]

meta.method 描述 MATLAB 類的的方法

[編輯 | 編輯原始碼]

meta.event 描述 MATLAB 類的事件

[編輯 | 編輯原始碼]

meta.package 描述 MATLAB 包

[編輯 | 編輯原始碼]

meta.DynamicProperty 描述 MATLAB 物件的動態屬性

[編輯 | 編輯原始碼]

meta.EnumeratedValue 描述 MATLAB 類的列舉成員

[編輯 | 編輯原始碼]

meta.MetaData MATLAB 物件元資料的超類

[編輯 | 編輯原始碼]

meta.ArrayDimension 屬性驗證的大小資訊

[編輯 | 編輯原始碼]

meta.Validation 描述屬性驗證

[編輯 | 編輯原始碼]

meta.FixedDimension 屬性大小規範中的固定維度

[編輯 | 編輯原始碼]

meta.UnrestrictedDimension 屬性大小規範中的無限制維度

[編輯 | 編輯原始碼]

系統物件

[編輯 | 編輯原始碼]

使用系統物件

[編輯 | 編輯原始碼]
step 執行系統物件演算法
[編輯 | 編輯原始碼]
clone 建立系統物件的副本
[編輯 | 編輯原始碼]
isLocked 確定系統物件是否正在使用
[編輯 | 編輯原始碼]
nargin 系統物件的輸入引數數量
[編輯 | 編輯原始碼]
nargout 系統物件的輸出引數數量
[編輯 | 編輯原始碼]
reset 重置系統物件的內部狀態
[編輯 | 編輯原始碼]
release 釋放資源並允許更改系統物件的屬性值和輸入特徵
[編輯 | 編輯原始碼]
建立系統物件
[編輯 | 編輯原始碼]

matlab.System 系統物件的基類

[編輯 | 編輯原始碼]

matlab.system.StringSet 一組有效的字元向量值

[編輯 | 編輯原始碼]

matlab.system.mixin.FiniteSource 有限源混合類

[編輯 | 編輯原始碼]

呼叫外部函式

[編輯 | 編輯原始碼]

呼叫 MEX 檔案函式

[編輯 | 編輯原始碼]

mexext 二進位制 MEX 檔名副檔名

[編輯 | 編輯原始碼]

inmem 記憶體中的函式、MEX 檔案、類名稱

[編輯 | 編輯原始碼]

呼叫 C 共享庫

[編輯 | 編輯原始碼]

loadlibrary 將 C/C++ 共享庫載入到 MATLAB 中

[編輯 | 編輯原始碼]

unloadlibrary 從記憶體中解除安裝共享庫

[編輯 | 編輯原始碼]

libisloaded 確定共享庫是否已載入

[編輯 | 編輯原始碼]

calllib 呼叫共享庫中的函式

[編輯 | 編輯原始碼]

libfunctions 返回共享庫中函式的資訊

[編輯 | 編輯原始碼]

libfunctionsview 在視窗中顯示共享庫函式簽名

[編輯 | 編輯原始碼]

libstruct 將 MATLAB 結構轉換為 C 樣式結構,以供共享庫使用

[編輯 | 編輯原始碼]

libpointer 用於共享庫的指標物件

[編輯 | 編輯原始碼]

lib.pointer 與 C 指標相容的指標物件

[編輯 | 編輯原始碼]

呼叫 Java 庫

[編輯 | 編輯原始碼]

import 將包或類新增到當前匯入列表

[編輯 | 編輯原始碼]

isjava 判斷輸入是否為 Java 物件

[編輯 | 編輯原始碼]

javaaddpath 將條目新增到動態 Java 類路徑

[編輯 | 編輯原始碼]

javaArray 構造 Java 陣列物件

[編輯 | 編輯原始碼]

javachk 基於 Java 功能支援的錯誤資訊

[編輯 | 編輯原始碼]

javaclasspath 返回 Java 類路徑或指定動態路徑

[編輯 | 編輯原始碼]

javaMethod 呼叫 Java 方法

[編輯 | 編輯原始碼]

javaMethodEDT 從事件分發執行緒 (EDT) 呼叫 Java 方法

[編輯 | 編輯原始碼]

javaObject 呼叫 Java 建構函式

[編輯 | 編輯原始碼]

javaObjectEDT 在事件分發執行緒 (EDT) 上呼叫 Java 建構函式

[編輯 | 編輯原始碼]

javarmpath 從動態 Java 類路徑中刪除條目

[編輯 | 編輯原始碼]

usejava 判斷 Java 功能是否可用

[編輯 | 編輯原始碼]

matlab.exception.JavaException 捕獲 Java 異常的錯誤資訊

[編輯 | 編輯原始碼]

呼叫 .NET 庫

[編輯 | 編輯原始碼]

Microsoft .NET 入門

[編輯 | 編輯原始碼]
NET.addAssembly 使 .NET 程式集對 MATLAB 可見
[編輯 | 編輯原始碼]
NET.isNETSupported 檢查支援的 Microsoft .NET Framework
[編輯 | 編輯原始碼]
NET MATLAB .NET 介面中函式的摘要
[編輯 | 編輯原始碼]
enableNETfromNetworkDrive 啟用從網路驅動器訪問 .NET 命令
[編輯 | 編輯原始碼]
NET.Assembly .NET 程式集的成員
[編輯 | 編輯原始碼]
NET.NetException 捕獲 .NET 異常的錯誤資訊
[編輯 | 編輯原始碼]

資料型別

[編輯 | 編輯原始碼]
cell 元胞陣列
[編輯 | 編輯原始碼]
NET.createArray 用於非基本 .NET 型別的陣列
[編輯 | 編輯原始碼]
NET.disableAutoRelease 鎖定代表執行時可呼叫包裝器(COM 包裝器)的 .NET 物件,以使 MATLAB 不釋放 COM 物件
[編輯 | 編輯原始碼]
NET.enableAutoRelease 解鎖代表執行時可呼叫包裝器(COM 包裝器)的 .NET 物件,以使 MATLAB 釋放 COM 物件
[編輯 | 編輯原始碼]
NET.setStaticProperty 靜態屬性或欄位名稱
[編輯 | 編輯原始碼]

事件和委託

[編輯 | 編輯原始碼]
BeginInvoke 啟動非同步 .NET 委託呼叫
[編輯 | 編輯原始碼]
EndInvoke 檢索由 .NET System.Delegate BeginInvoke 方法啟動的非同步呼叫的結果
[編輯 | 編輯原始碼]
Combine 用於靜態 .NET System.Delegate Combine 方法的便捷函式
[編輯 | 編輯原始碼]
Remove 用於靜態 .NET System.Delegate Remove 方法的便捷函式
[編輯 | 編輯原始碼]
RemoveAll 用於靜態 .NET System.Delegate RemoveAll 方法的便捷函式
[編輯 | 編輯原始碼]
bitand 位與
[編輯 | 編輯原始碼]
bitor 位或
[編輯 | 編輯原始碼]
bitxor 位異或
[編輯 | 編輯原始碼]
bitnot .NET 列舉物件的按位非例項方法
[編輯 | 編輯原始碼]

泛型類

[編輯 | 編輯原始碼]
NET.convertArray 將數值 MATLAB 陣列轉換為 .NET 陣列
[編輯 | 編輯原始碼]
NET.createGeneric 建立專門 .NET 泛型型別的例項
[編輯 | 編輯原始碼]
NET.invokeGenericMethod 呼叫物件的通用方法
[編輯 | 編輯原始碼]
NET.GenericClass 代表引數化的通用型別定義
[編輯 | 編輯原始碼]

呼叫 COM 物件

[編輯 | 編輯原始碼]
actxserver 建立 COM 伺服器
[編輯 | 編輯原始碼]
actxcontrol 在圖形視窗中建立 Microsoft ActiveX 控制元件
[編輯 | 編輯原始碼]
actxcontrollist 列出當前安裝的 Microsoft ActiveX 控制元件
[編輯 | 編輯原始碼]
actxcontrolselect 從 UI 建立 Microsoft ActiveX 控制元件
[編輯 | 編輯原始碼]
eventlisteners 列出與 COM 物件事件關聯的事件處理函式
[編輯 | 編輯原始碼]
methodsview 檢視類方法
[編輯 | 編輯原始碼]
registerevent 在執行時將事件處理程式與 COM 物件事件關聯
[編輯 | 編輯原始碼]
unregisterallevents 取消註冊與 COM 物件事件關聯的所有事件處理程式
[編輯 | 編輯原始碼]
unregisterevent 在執行時取消註冊與 COM 物件事件關聯的事件處理程式
[編輯 | 編輯原始碼]
iscom 確定輸入是否為 COM 或 ActiveX 物件
[編輯 | 編輯原始碼]
isevent 確定輸入是否為 COM 物件事件
[編輯 | 編輯原始碼]
isinterface 確定輸入是否為 COM 介面
[編輯 | 編輯原始碼]
COM 從 MATLAB 訪問 COM 元件和 ActiveX 控制元件
[編輯 | 編輯原始碼]

呼叫 Python 庫

[編輯 | 編輯原始碼]
pyversion 更改 Python 直譯器的預設版本
[編輯 | 編輯原始碼]
pyargs 為 Python 函式建立關鍵字引數
[編輯 | 編輯原始碼]
matlab.exception.PyException 捕獲 Python 異常的錯誤資訊
[編輯 | 編輯原始碼]
資料型別
[編輯 | 編輯原始碼]
pyargs 為 Python 函式建立關鍵字引數
[編輯 | 編輯原始碼]
pyargs 為 Python 函式建立關鍵字引數
[編輯 | 編輯原始碼]

呼叫 Web 服務

[編輯 | 編輯原始碼]

HTTP 介面

[編輯 | 編輯原始碼]
matlab.net.http.RequestMessage HTTP 請求訊息
[編輯 | 編輯原始碼]
matlab.net.http.ResponseMessage HTTP 響應訊息
[編輯 | 編輯原始碼]
matlab.net.http.Message HTTP 請求或響應訊息
[編輯 | 編輯原始碼]
matlab.net.http.MessageType HTTP 訊息型別
[編輯 | 編輯原始碼]
matlab.net.http.MessageBody HTTP 訊息主體
[編輯 | 編輯原始碼]
matlab.net.http.ProtocolVersion HTTP 協議版本
[編輯 | 編輯原始碼]
matlab.net.http.RequestLine HTTP 請求訊息的第一行
[編輯 | 編輯原始碼]
matlab.net.http.RequestMethod HTTP 請求方法
[編輯 | 編輯原始碼]
matlab.net.http.StartLine HTTP 訊息的第一行
[編輯 | 編輯原始碼]
matlab.net.http.StatusClass HTTP 響應的狀態類別
[編輯 | 編輯原始碼]
matlab.net.http.StatusCode HTTP 響應中的狀態程式碼
[編輯 | 編輯原始碼]
matlab.net.http.StatusLine HTTP 響應訊息的第一行
[編輯 | 編輯原始碼]
matlab.net.http.HeaderField HTTP 訊息的報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.AcceptField HTTP Accept 報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.AuthenticateField HTTP WWW-Authenticate 或 Proxy-Authenticate 報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.AuthenticationInfoField HTTP 響應訊息中的 Authentication-Info 報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.AuthorizationField HTTP Authorization 或 Proxy-Authorization 報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.ContentDispositionField HTTP Content-Disposition 報頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.ContentLengthField HTTP Content-Length 欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.ContentLengthField HTTP 內容長度標頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.ContentTypeField HTTP 內容型別標頭欄位
[編輯 | 編輯原始碼]
[編輯 | 編輯原始碼]
matlab.net.http.field.DateField HTTP 日期標頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.GenericField HTTP 標頭欄位,帶有任何名稱和值
[編輯 | 編輯原始碼]
matlab.net.http.field.GenericParameterizedField GenericField 用於支援引數化語法
[編輯 | 編輯原始碼]
matlab.net.http.field.HTTPDateField HTTP 標頭欄位,包含日期
[編輯 | 編輯原始碼]
matlab.net.http.field.IntegerField HTTP 標頭欄位的基類,包含非負整數
[編輯 | 編輯原始碼]
matlab.net.http.field.LocationField HTTP 位置標頭欄位
[編輯 | 編輯原始碼]
matlab.net.http.field.MediaRangeField HTTP 內容型別和接受標頭欄位的基類
[編輯 | 編輯原始碼]
[編輯 | 編輯原始碼]
matlab.net.http.field.URIReferenceField HTTP 標頭欄位的基類,包含 URI 元件
[編輯 | 編輯原始碼]
matlab.net.http.io.ContentConsumer HTTP 訊息有效負載的消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.FileConsumer HTTP 訊息中檔案的消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.StringConsumer HTTP 有效負載的字串消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.JSONConsumer 內容消費者,將 JSON 輸入轉換為 MATLAB 資料
[編輯 | 編輯原始碼]
matlab.net.http.io.ImageConsumer HTTP 有效負載中影像資料的消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.MultipartConsumer HTTP 訊息中多部分內容型別的幫助程式
[編輯 | 編輯原始碼]
matlab.net.http.io.BinaryConsumer HTTP 訊息中二進位制資料的消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.GenericConsumer HTTP 訊息中多種內容型別的消費者
[編輯 | 編輯原始碼]
matlab.net.http.io.ContentProvider HTTP 訊息有效負載的 ContentProvider
[編輯 | 編輯原始碼]
matlab.net.http.io.FileProvider ContentProvider 用於傳送檔案
[編輯 | 編輯原始碼]
matlab.net.http.io.FormProvider ContentProvider 用於傳送表單資料
[編輯 | 編輯原始碼]
matlab.net.http.io.MultipartFormProvider ContentProvider 用於傳送 multipart/form-data 訊息
[編輯 | 編輯原始碼]
matlab.net.http.io.StringProvider ContentProvider 用於傳送 MATLAB 字串
[編輯 | 編輯原始碼]
matlab.net.http.io.JSONProvider ContentProvider 用於將 MATLAB 資料作為 JSON 字串傳送
[編輯 | 編輯原始碼]
matlab.net.http.io.ImageProvider ContentProvider 用於傳送 MATLAB 影像資料
[編輯 | 編輯原始碼]
matlab.net.http.io.MultipartProvider ContentProvider 用於傳送 multipart/mixed HTTP 訊息
[編輯 | 編輯原始碼]
matlab.net.http.io.GenericProvider 用於 HTTP 負載的通用 ContentProvider
[編輯 | 編輯原始碼]
matlab.net.http.AuthenticationScheme HTTP 身份驗證方案
[編輯 | 編輯原始碼]
matlab.net.http.AuthInfo HTTP 訊息中的身份驗證或授權資訊
[編輯 | 編輯原始碼]
[編輯 | 編輯原始碼]
[編輯 | 編輯原始碼]
matlab.net.http.Credentials 用於驗證 HTTP 請求的憑據
[編輯 | 編輯原始碼]
matlab.net.http.Disposition HTTP 日誌記錄中的結果
[編輯 | 編輯原始碼]
matlab.net.http.HTTPException 由 HTTP 服務丟擲的異常
[編輯 | 編輯原始碼]
matlab.net.http.HTTPOptions 控制 HTTP 訊息交換的選項
[編輯 | 編輯原始碼]
matlab.net.http.LogRecord HTTP 歷史日誌記錄
[編輯 | 編輯原始碼]
matlab.net.http.MediaType HTTP 標頭中使用的 Internet 媒體型別
[編輯 | 編輯原始碼]
matlab.net.http.ProgressMonitor HTTP 訊息交換的進度監視器
[編輯 | 編輯原始碼]
matlab.net.URI 統一資源識別符號 (URI)
[編輯 | 編輯原始碼]
matlab.net.ArrayFormat 轉換 HTTP 查詢中的陣列
[編輯 | 編輯原始碼]
matlab.net.QueryParameter 統一資源識別符號 (URI) 查詢部分中的引數
[編輯 | 編輯原始碼]
matlab.net.base64decode 字串的 Base 64 解碼
[編輯 | 編輯原始碼]
matlab.net.base64encode 位元組字串或向量的 Base 64 編碼
[編輯 | 編輯原始碼]

WSDL (Web Services Description Language)

[編輯 | 編輯原始碼]
matlab.wsdl.createWSDLClient 建立與基於 SOAP 的 Web 服務的介面
[編輯 | 編輯原始碼]
matlab.wsdl.setWSDLToolPath WSDL 工具的位置
[編輯 | 編輯原始碼]

工具箱分發

[編輯 | 編輯原始碼]

在 Julia 中,與 MATLAB 工具箱大致等效的是一個

matlab.addons.toolbox.packageToolbox 打包工具箱專案

[編輯 | 編輯原始碼]

matlab.addons.toolbox.toolboxVersion 查詢或修改工具箱的版本

[編輯 | 編輯原始碼]

matlab.addons.toolbox.installToolbox 安裝工具箱檔案

[編輯 | 編輯原始碼]

matlab.addons.toolbox.uninstallToolbox 解除安裝工具箱

[編輯 | 編輯原始碼]

matlab.addons.toolbox.installedToolboxes 返回有關已安裝工具箱的資訊

[編輯 | 編輯原始碼]

builddocsearchdb 構建可搜尋的文件資料庫

[編輯 | 編輯原始碼]

matlab.codetools.requiredFilesAndProducts 列出 MATLAB 程式檔案的依賴項

[編輯 | 編輯原始碼]

異常處理

[編輯 | 編輯原始碼]

try, catch 執行語句並捕獲產生的錯誤

[編輯 | 編輯原始碼]

MException 捕獲錯誤資訊

[編輯 | 編輯原始碼]

addCause 記錄異常的額外原因

[編輯 | 編輯原始碼]

getReport 獲取異常的錯誤訊息

[編輯 | 編輯原始碼]

last 返回最後一次未捕獲的異常

[編輯 | 編輯原始碼]

rethrow 重新丟擲之前捕獲的異常

[edit | edit source]

throw 丟擲異常

[edit | edit source]

throwAsCaller 丟擲異常,就像它發生在呼叫函式中一樣

[edit | edit source]

測試框架

[edit | edit source]

基於指令碼的單元測試

[edit | edit source]
assert 如果條件為假,則丟擲錯誤
[edit | edit source]
runtests 執行一組測試
[edit | edit source]
testsuite 建立一組測試
[edit | edit source]
TestResult 執行測試套件的結果
[edit | edit source]

基於函式的單元測試

[edit | edit source]
functiontests 從本地函式的控制代碼建立測試陣列
[edit | edit source]
runtests 執行一組測試
[edit | edit source]
testsuite 建立一組測試
[edit | edit source]
TestSuite.run 使用配置為文字輸出的 TestRunner 物件執行 TestSuite 陣列
[edit | edit source]
Test 單個測試方法的規範
[edit | edit source]
FunctionTestCase 用於基於函式的測試的 TestCase
[edit | edit source]
TestResult 執行測試套件的結果
[edit | edit source]

基於類的單元測試

[edit | edit source]
runtests 執行一組測試
[edit | edit source]
testsuite 建立一組測試
[edit | edit source]
matlab.unittest.TestSuite.run 使用配置為文字輸出的 TestRunner 物件執行 TestSuite 陣列
[edit | edit source]
matlab.unittest.TestRunner.run 執行 TestSuite 陣列中的所有測試
[edit | edit source]
matlab.unittest.TestCase 所有 matlab.unittest 測試類的超類
[edit | edit source]
matlab.unittest.TestSuite 用於對要執行的測試進行分組的類
[edit | edit source]
matlab.unittest.Test 單個測試方法的規範
[edit | edit source]
matlab.unittest.TestRunner 類用於在 matlab.unittest 框架中執行測試。
[編輯 | 編輯原始碼]
matlab.unittest.TestResult 執行測試套件的結果。
[編輯 | 編輯原始碼]

擴充套件單元測試框架

[編輯 | 編輯原始碼]
matlab.unittest.constraints.Constraint 用於比較的基本介面類。
[編輯 | 編輯原始碼]
matlab.unittest.constraints.BooleanConstraint 用於約束的布林組合的介面類。
[編輯 | 編輯原始碼]
matlab.unittest.constraints.Tolerance 用於容差的抽象介面類。
[編輯 | 編輯原始碼]
matlab.unittest.fixtures.Fixture 用於測試夾具的介面類。
[編輯 | 編輯原始碼]
matlab.unittest.diagnostics.Diagnostic 用於 matlab.unittest 診斷的基本介面類。
[編輯 | 編輯原始碼]
matlab.unittest.diagnostics.ConstraintDiagnostic 具有大多數約束共有的欄位的診斷。
[編輯 | 編輯原始碼]
matlab.unittest.plugins.TestRunnerPlugin 用於擴充套件 TestRunner 的外掛介面。
[編輯 | 編輯原始碼]
matlab.unittest.plugins.QualifyingPlugin 用於執行系統範圍資格的外掛介面。
[編輯 | 編輯原始碼]
matlab.unittest.plugins.OutputStream 用於確定將文字輸出傳送到何處的介面。
[編輯 | 編輯原始碼]

應用程式測試框架

[編輯 | 編輯原始碼]
press 對 UI 元件執行按下操作。
[編輯 | 編輯原始碼]
choose 對 UI 元件執行選擇操作。
[編輯 | 編輯原始碼]
drag 對 UI 元件執行拖動操作。
[編輯 | 編輯原始碼]
type 在 UI 元件中輸入。
[編輯 | 編輯原始碼]
matlab.uitest.unlock 解鎖被應用程式測試框架鎖定的圖形。
[編輯 | 編輯原始碼]
matlab.uitest.TestCase.forInteractiveUse 建立用於互動式使用的 TestCase 物件。
[編輯 | 編輯原始碼]
matlab.uitest.TestCase 使用應用程式測試框架編寫測試的 TestCase。
[編輯 | 編輯原始碼]

效能測試框架

[編輯 | 編輯原始碼]
runperf 執行一組用於效能測量的測試。
[編輯 | 編輯原始碼]
testsuite 建立一組測試
[編輯 | 編輯原始碼]
matlab.perftest.TimeExperiment 用於測量測試程式碼執行時間的介面。
[編輯 | 編輯原始碼]
matlab.perftest.FixedTimeExperiment 收集固定數量測量的 TimeExperiment。
[編輯 | 編輯原始碼]
matlab.perftest.FrequentistTimeExperiment 收集可變數量測量的 TimeExperiment
[edit | edit source]
matlab.perftest.TestCase matlab.perftest 效能測試類的超類
[edit | edit source]
matlab.unittest.measurement.MeasurementResult 測試套件測量結果
[edit | edit source]

模擬框架

[edit | edit source]
matlab.mock.TestCase 使用模擬框架編寫測試的 TestCase
[edit | edit source]
matlab.mock.AnyArguments 匹配任意數量的引數
[edit | edit source]
matlab.mock.actions.AssignOutputs 為呼叫的方法或訪問的屬性定義返回值
[edit | edit source]
matlab.mock.actions.ReturnStoredValue 返回儲存的屬性值
[edit | edit source]
matlab.mock.actions.StoreValue 儲存屬性值
[edit | edit source]
matlab.mock.actions.ThrowException 當方法被呼叫或屬性被設定或訪問時丟擲異常
[edit | edit source]
matlab.mock.constraints.WasAccessed 確定屬性獲取訪問的約束
[edit | edit source]
matlab.mock.constraints.WasCalled 確定方法呼叫的約束
[edit | edit source]
matlab.mock.constraints.WasSet 確定屬性設定互動的約束
[edit | edit source]
matlab.mock.MethodCallBehavior 指定模擬物件方法的行為並限定方法呼叫
[edit | edit source]
matlab.mock.PropertyBehavior 指定模擬物件屬性的行為並限定互動
[edit | edit source]
matlab.mock.PropertyGetBehavior 指定模擬屬性獲取行為
[edit | edit source]
matlab.mock.PropertySetBehavior 指定模擬物件設定行為
[edit | edit source]
matlab.mock.TestCase.getMockHistory 返回模擬物件的互動歷史
[edit | edit source]
matlab.mock.InteractionHistory.forMock 返回模擬物件的互動歷史
[edit | edit source]
matlab.mock.InteractionHistory 模擬物件互動歷史的介面
[edit | edit source]
matlab.mock.history 表示模擬物件互動歷史的類的總結
[edit | edit source]

效能和記憶體

[edit | edit source]

timeit 測量執行函式所需的時間

[edit | edit source]

tic 啟動秒錶計時器

[edit | edit source]

toc 從秒錶讀取經過時間

[編輯 | 編輯原始碼]

cputime 經過 CPU 時間

[編輯 | 編輯原始碼]

profile 分析函式的執行時間

[編輯 | 編輯原始碼]

bench MATLAB 基準測試

[編輯 | 編輯原始碼]

memory 顯示記憶體資訊

[編輯 | 編輯原始碼]

inmem 記憶體中的函式、MEX 檔案、類名稱

[編輯 | 編輯原始碼]

pack 整合工作區記憶體

[編輯 | 編輯原始碼]

memoize 向函式控制代碼新增記憶語義

[編輯 | 編輯原始碼]

MemoizedFunction 呼叫記憶函式並快取結果

[編輯 | 編輯原始碼]

clearAllMemoizedCaches 清除所有 MemoizedFunction 物件的快取

[編輯 | 編輯原始碼]

系統命令

[編輯 | 編輯原始碼]

clipboard 在系統剪貼簿之間複製和貼上文字

[編輯 | 編輯原始碼]

computer 執行 MATLAB 的計算機資訊

[編輯 | 編輯原始碼]

system 執行作業系統命令並返回輸出

[編輯 | 編輯原始碼]

dos 執行 DOS 命令並返回輸出

[編輯 | 編輯原始碼]

unix 執行 UNIX 命令並返回輸出

[編輯 | 編輯原始碼]

getenv 環境變數

[編輯 | 編輯原始碼]

setenv 設定環境變數

[編輯 | 編輯原始碼]

perl 使用作業系統可執行檔案呼叫 Perl 指令碼

[編輯 | 編輯原始碼]

winqueryreg Windows 登錄檔中的項

[編輯 | 編輯原始碼]

commandhistory 開啟命令歷史記錄視窗,或選擇它(如果已開啟)

[編輯 | 編輯原始碼]

commandwindow 開啟命令視窗,或選擇它(如果已開啟)

[編輯 | 編輯原始碼]

filebrowser 開啟當前資料夾瀏覽器,或選擇它(如果已開啟)

[編輯 | 編輯原始碼]

workspace 開啟工作區瀏覽器以管理工作區

[編輯 | 編輯原始碼]

matlab.io.saveVariablesToScript 將工作區變數儲存到 MATLAB 指令碼

[編輯 | 編輯原始碼]

getpref 獲取自定義首選項值

[編輯 | 編輯原始碼]

setpref 設定自定義首選項值

[編輯 | 編輯原始碼]

addpref 新增自定義首選項

[編輯 | 編輯原始碼]

rmpref 刪除自定義首選項

[編輯 | 編輯原始碼]

ispref 確定自定義首選項是否存在

[編輯 | 編輯原始碼]

matlab.addons.installedAddons 獲取已安裝的附加元件列表

[編輯 | 編輯原始碼]

matlab.addons.isAddonEnabled 確定附加元件是否已啟用

[編輯 | 編輯原始碼]

matlab.addons.enableAddon 啟用已安裝的附加元件

[編輯 | 編輯原始碼]

matlab.addons.disableAddon 停用已安裝的附加元件

[編輯 | 編輯原始碼]

settings 訪問 SettingsGroup 根物件

[編輯 | 編輯原始碼]

Setting 設定物件

[編輯 | 編輯原始碼]

SettingsGroup 設定和子組物件的集合

[編輯 | 編輯原始碼]

clearTemporaryValue 清除設定的臨時值

[編輯 | 編輯原始碼]

clearPersonalValue 清除設定的個人值

[編輯 | 編輯原始碼]

hasTemporaryValue 確定設定是否設定了臨時值

[編輯 | 編輯原始碼]

hasPersonalValue 確定設定是否設定了個人值

[編輯 | 編輯原始碼]

hasFactoryValue 確定設定是否設定了工廠值

[編輯 | 編輯原始碼]

matlab.appdesigner App Designer 設定,包括畫布編輯器和元件瀏覽器設定

[編輯 | 編輯原始碼]

matlab.editor 編輯器設定,包括語言、備份和顯示設定

[編輯 | 編輯原始碼]

matlab.fonts 程式碼字型設定

[編輯 | 編輯原始碼]

matlab.general 通用設定,包括 matfile 設定

[編輯 | 編輯原始碼]

matlab.keyboard 鍵盤設定,包括建議和完成設定

[編輯 | 編輯原始碼]

MATLAB API for Other Languages

[編輯 | 編輯原始碼]

MATLAB API for Java

[編輯 | 編輯原始碼]
matlab.engine.shareEngine 將正在執行的 MATLAB 會話轉換為共享會話
[編輯 | 編輯原始碼]
matlab.engine.engineName 返回共享 MATLAB 會話的名稱
[編輯 | 編輯原始碼]
matlab.engine.isEngineShared 確定 MATLAB 會話是否為共享會話
[編輯 | 編輯原始碼]
com.mathworks.engine.MatlabEngine 使用 MATLAB 作為計算引擎的 Java 類
[編輯 | 編輯原始碼]
com.mathworks.matlab.types.Complex 用於將複數資料傳遞到 MATLAB 和從 MATLAB 傳遞的 Java 類
[編輯 | 編輯原始碼]
com.mathworks.matlab.types.Struct 用於將 MATLAB 結構傳遞到 MATLAB 和從 MATLAB 傳遞的 Java 類
[編輯 | 編輯原始碼]
com.mathworks.matlab.types.CellStr 用於表示 MATLAB 字元向量單元陣列的 Java 類
[編輯 | 編輯原始碼]
com.mathworks.matlab.types.HandleObject 用於表示 MATLAB 控制代碼物件的 Java 類
[編輯 | 編輯原始碼]

MATLAB API for Python

[編輯 | 編輯原始碼]
matlab.engine.start_matlab 啟動 MATLAB Engine for Python
[編輯 | 編輯原始碼]
matlab.engine.find_matlab 查詢要連線到 MATLAB Engine for Python 的共享 MATLAB 會話
[編輯 | 編輯原始碼]
matlab.engine.connect_matlab 將共享 MATLAB 會話連線到 MATLAB Engine for Python
[編輯 | 編輯原始碼]
matlab.engine.shareEngine 將正在執行的 MATLAB 會話轉換為共享會話
[編輯 | 編輯原始碼]
matlab.engine.engineName 返回共享 MATLAB 會話的名稱
[編輯 | 編輯原始碼]
matlab.engine.isEngineShared 確定 MATLAB 會話是否為共享會話
[編輯 | 編輯原始碼]
matlab.engine.MatlabEngine 使用 MATLAB 作為 Python 會話中計算引擎的 Python 物件
[編輯 | 編輯原始碼]
matlab.engine.FutureResult 儲存在 Python 物件中的對 MATLAB 函式的非同步呼叫的結果
[編輯 | 編輯原始碼]

MATLAB API for C

[編輯 | 編輯原始碼]
MATLAB Engine API for C
[編輯 | 編輯原始碼]
mex 從 C/C++ 或 Fortran 原始碼構建 MEX 函式
[編輯 | 編輯原始碼]
C MEX 檔案應用
[編輯 | 編輯原始碼]
可執行的 C MEX 檔案
[編輯 | 編輯原始碼]
mex 從 C/C++ 或 Fortran 原始碼構建 MEX 函式
[編輯 | 編輯原始碼]
共享 MEX 檔案
[編輯 | 編輯原始碼]
ver MathWorks 產品的版本資訊
[編輯 | 編輯原始碼]
computer 執行 MATLAB 的計算機資訊
[編輯 | 編輯原始碼]
mexext 二進位制 MEX 檔名副檔名
[編輯 | 編輯原始碼]
mex.getCompilerConfigurations 獲取用於構建 MEX 檔案的編譯器配置資訊
[編輯 | 編輯原始碼]
對 MEX 檔案進行故障排除
[編輯 | 編輯原始碼]
dbmex 在 UNIX 平臺上啟用 MEX 檔案除錯
[編輯 | 編輯原始碼]
inmem 記憶體中函式、MEX 檔案、類的名稱
[編輯 | 編輯原始碼]

MATLAB API for Fortran

[編輯 | 編輯原始碼]
MATLAB Engine API for Fortran
[編輯 | 編輯原始碼]
mex 從 C/C++ 或 Fortran 原始碼構建 MEX 函式
[編輯 | 編輯原始碼]

MATLAB API for COM Automation Server

[編輯 | 編輯原始碼]
actxGetRunningServer 正在執行的 Automation 伺服器例項的控制代碼
[編輯 | 編輯原始碼]
enableservice 啟用、停用或報告 MATLAB Automation 伺服器的狀態
[編輯 | 編輯原始碼]
Execute 在 Automation 伺服器中執行 MATLAB 命令
[編輯 | 編輯原始碼]
Feval 在 Automation 伺服器中評估 MATLAB 函式
[編輯 | 編輯原始碼]
GetCharArray 來自 Automation 伺服器的字元陣列
[編輯 | 編輯原始碼]
GetCharArray 從自動化伺服器工作區獲取字元陣列
[編輯 | 編輯原始碼]
GetFullMatrix 從自動化伺服器工作區獲取矩陣
[編輯 | 編輯原始碼]
GetVariable 從自動化伺服器工作區獲取變數資料
[編輯 | 編輯原始碼]
GetWorkspaceData 從自動化伺服器工作區獲取資料
[編輯 | 編輯原始碼]
MaximizeCommandWindow 開啟自動化伺服器視窗
[編輯 | 編輯原始碼]
MinimizeCommandWindow 最小化自動化伺服器視窗大小
[編輯 | 編輯原始碼]
PutCharArray 在自動化伺服器中儲存字元陣列
[編輯 | 編輯原始碼]
PutFullMatrix 在自動化伺服器工作區放置矩陣
[編輯 | 編輯原始碼]
PutWorkspaceData 在自動化伺服器工作區放置資料
[編輯 | 編輯原始碼]
Quit 終止 MATLAB 自動化伺服器
[編輯 | 編輯原始碼]
regmatlabserver 註冊當前 MATLAB 作為自動化伺服器
華夏公益教科書