diff --git a/+MATLAB/+ElMat/UniformSize.mlx b/+MATLAB/+ElMat/UniformSize.mlx
new file mode 100644
index 0000000..e658e16
Binary files /dev/null and b/+MATLAB/+ElMat/UniformSize.mlx differ
diff --git a/+MATLAB/+Ops/LogicalAssign.mlx b/+MATLAB/+Ops/LogicalAssign.mlx
new file mode 100644
index 0000000..21423ea
Binary files /dev/null and b/+MATLAB/+Ops/LogicalAssign.mlx differ
diff --git a/+MATLAB/MatlabException.m b/+MATLAB/MatlabException.m
index 11581f3..80cdd83 100644
--- a/+MATLAB/MatlabException.m
+++ b/+MATLAB/MatlabException.m
@@ -13,6 +13,7 @@
Failed_to_get_Zip_file_name(10)
Failed_to_get_the_stat_of_the_Zip_file(11)
Zip_doesnt_log_file_size(12)
+ Unable_to_uniform_size(13)
Missing_matching_key(251)
Fields_not_found_in_tables(252)
diff --git a/+MATLAB/Version.m b/+MATLAB/Version.m
index c403aac..bb5a68e 100644
--- a/+MATLAB/Version.m
+++ b/+MATLAB/Version.m
@@ -1,3 +1,3 @@
function V = Version
-V.Me='9.5.0';
+V.Me='9.6.0';
V.MATLAB='R2022a';
\ No newline at end of file
diff --git a/README.md b/README.md
index d73efc0..de6bb93 100644
--- a/README.md
+++ b/README.md
@@ -215,6 +215,8 @@ function Array = PadCat(Dimension,Padder,varargin)
function A = Rot90(A,varargin)
%内置transpose函数的升级版,支持转置任意两个维度
function A = Transpose(A,DimPair)
+%通过重复维度来统一数组的尺寸
+function varargout = UniformSize(varargin)
```
## +General
```MATLAB
@@ -303,6 +305,8 @@ function X = Input(varargin)
```MATLAB
%内置ismember的升级版,支持任意数组类型,并可以指定拆分维度,missing类值视为相等的有效数据
function [Is,Location] = IsMemberN(Member,Set,Dimension)
+%维度化的逻辑赋值
+function Array = LogicalAssign(Array,Logical,Value)
%内置setdiff的升级版,支持任意数组类型,并可以指定拆分维度,missing类值视为相等的有效数据
function [Diff,IA] = SetDiffN(SetA,SetB,Dimension)
%内置union的升级版,支持任意数组类型,并可以指定拆分维度,missing类值视为相等的有效数据,还能同时合并多个集合
diff --git a/resources/functionSignatures.json b/resources/functionSignatures.json
index 926ca33..3a94634 100644
--- a/resources/functionSignatures.json
+++ b/resources/functionSignatures.json
@@ -863,6 +863,16 @@
}
]
},
+ "MATLAB.ElMat.UniformSize":{
+ "inputs":[
+ {
+ "name":"Array",
+ "kind":"required",
+ "repeating":true,
+ "purpose":"要统一的数组"
+ }
+ ]
+ },
"MATLAB.General.CD": {
"inputs": [
{
@@ -1574,6 +1584,26 @@
}
]
},
+ "MATLAB.Ops.LogicalAssign":{
+ "inputs":[
+ {
+ "name":"Array",
+ "kind":"required",
+ "purpose":"要赋值的目标数组"
+ },
+ {
+ "name":"Logical",
+ "kind":"required",
+ "type":"logical",
+ "purpose":"多维逻辑遮罩"
+ },
+ {
+ "name":"Value",
+ "kind":"required",
+ "purpose":"用于赋值的源数组"
+ }
+ ]
+ },
"MATLAB.Ops.SetDiffN": {
"inputs": [
{
diff --git a/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0d.xml b/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0d.xml
new file mode 100644
index 0000000..7a6326b
--- /dev/null
+++ b/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0d.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0p.xml b/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0p.xml
new file mode 100644
index 0000000..a35a8eb
--- /dev/null
+++ b/resources/project/Dh39fyjyPvwuEWUj-9Uph7KUAhg/s7Cgi51PhfEv3UIzVPVpNwDWnF0p.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0d.xml b/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0d.xml
new file mode 100644
index 0000000..7a6326b
--- /dev/null
+++ b/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0d.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0p.xml b/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0p.xml
new file mode 100644
index 0000000..c79a2c6
--- /dev/null
+++ b/resources/project/IqGltvfQctmQxpb3WMlJys7yxWQ/koIYqYlSwUSnpSJK64sieW-buc0p.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git "a/\345\237\203\345\215\232\346\213\211\351\205\261 \347\232\204 MATLAB \346\211\251\345\261\225 Extension.prj" "b/\345\237\203\345\215\232\346\213\211\351\205\261 \347\232\204 MATLAB \346\211\251\345\261\225 Extension.prj"
index b2ccf15..01e8d6a 100644
--- "a/\345\237\203\345\215\232\346\213\211\351\205\261 \347\232\204 MATLAB \346\211\251\345\261\225 Extension.prj"
+++ "b/\345\237\203\345\215\232\346\213\211\351\205\261 \347\232\204 MATLAB \346\211\251\345\261\225 Extension.prj"
@@ -4,7 +4,7 @@
埃博拉酱
vhtmfu@outlook.com
一致行动党
- 埃博拉酱的MATLAB扩展工具包,提供一系列MATLAB内置函数所欠缺,但却常用的增强功能(部分功能仅支持Windows系统)。例如,发送喵提醒,从工作区复杂变量搜索指定名称,ZIP档案读入器,可枚举异常基类,各种容器类,许多内置函数的功能强化升级版……
+ 埃博拉酱的MATLAB扩展工具包,提供一系列MATLAB内置函数所欠缺,但却常用的增强功能(部分功能仅支持Windows系统)。例如,维度化逻辑赋值,统一数组尺寸,发送喵提醒,从工作区复杂变量搜索指定名称,ZIP档案读入器,可枚举异常基类,许多内置函数的功能强化升级版……
本包中所有函数均在MATLAB命名空间下,使用前需import。使用命名空间是一个好习惯,可以有效防止命名冲突,避免编码时不必要的代码提示干扰。
+MATLAB
@@ -22,7 +22,7 @@
+UITools
每个代码文件内部都有详细文档,可以用doc命令查看。
${PROJECT_ROOT}\图标.png
- 9.5.0
+ 9.6.0
${PROJECT_ROOT}\埃博拉酱 的 MATLAB 扩展 Extension.mltbx