Skip to content

Commit

Permalink
v9.6.0
Browse files Browse the repository at this point in the history
ElMat.UniformSize
Ops.LogicalAssign
  • Loading branch information
埃博拉酱 committed Oct 1, 2022
1 parent 2a0c44e commit 68b6a76
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 3 deletions.
Binary file added +MATLAB/+ElMat/UniformSize.mlx
Binary file not shown.
Binary file added +MATLAB/+Ops/LogicalAssign.mlx
Binary file not shown.
1 change: 1 addition & 0 deletions +MATLAB/MatlabException.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion +MATLAB/Version.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function V = Version
V.Me='9.5.0';
V.Me='9.6.0';
V.MATLAB='R2022a';
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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类值视为相等的有效数据,还能同时合并多个集合
Expand Down
30 changes: 30 additions & 0 deletions resources/functionSignatures.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,16 @@
}
]
},
"MATLAB.ElMat.UniformSize":{
"inputs":[
{
"name":"Array",
"kind":"required",
"repeating":true,
"purpose":"要统一的数组"
}
]
},
"MATLAB.General.CD": {
"inputs": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="UniformSize.mlx" type="File"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="LogicalAssign.mlx" type="File"/>
4 changes: 2 additions & 2 deletions 埃博拉酱 的 MATLAB 扩展 Extension.prj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<param.authnamewatermark>埃博拉酱</param.authnamewatermark>
<param.email>[email protected]</param.email>
<param.company>一致行动党</param.company>
<param.summary>埃博拉酱的MATLAB扩展工具包,提供一系列MATLAB内置函数所欠缺,但却常用的增强功能(部分功能仅支持Windows系统)。例如,发送喵提醒,从工作区复杂变量搜索指定名称,ZIP档案读入器,可枚举异常基类,各种容器类,许多内置函数的功能强化升级版……</param.summary>
<param.summary>埃博拉酱的MATLAB扩展工具包,提供一系列MATLAB内置函数所欠缺,但却常用的增强功能(部分功能仅支持Windows系统)。例如,维度化逻辑赋值,统一数组尺寸,发送喵提醒,从工作区复杂变量搜索指定名称,ZIP档案读入器,可枚举异常基类,许多内置函数的功能强化升级版……</param.summary>
<param.description>本包中所有函数均在MATLAB命名空间下,使用前需import。使用命名空间是一个好习惯,可以有效防止命名冲突,避免编码时不必要的代码提示干扰。

+MATLAB
Expand All @@ -22,7 +22,7 @@
+UITools
每个代码文件内部都有详细文档,可以用doc命令查看。</param.description>
<param.screenshot>${PROJECT_ROOT}\图标.png</param.screenshot>
<param.version>9.5.0</param.version>
<param.version>9.6.0</param.version>
<param.output>${PROJECT_ROOT}\埃博拉酱 的 MATLAB 扩展 Extension.mltbx</param.output>
<param.products.name />
<param.products.id />
Expand Down

0 comments on commit 68b6a76

Please sign in to comment.