Skip to content

Commit 423e608

Browse files
author
埃博拉酱
committed
Merge commit 'fa565040b8234085ede5dce8ea33cd1510435c54'
#Conflicts: # Contents.m
2 parents 1df9ab9 + fa56504 commit 423e608

File tree

13 files changed

+96
-2
lines changed

13 files changed

+96
-2
lines changed

+MATLAB/+DataTypes/VarFun.mlx

5.91 KB
Binary file not shown.

+MATLAB/+ElMat/Find.mlx

7.31 KB
Binary file not shown.
4.47 KB
Binary file not shown.
224 Bytes
Binary file not shown.

Contents.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
% 埃博拉酱的MATLAB扩展
2-
% Version 19.7.0 (R2024b) 26-Apr-2025
2+
<<<<<<< HEAD
3+
% Version 19.7.0 (R2024b) 26-Apr-2025
4+
=======
5+
% Version 19.7.0 (R2025a) 22-May-2025
6+
>>>>>>> fa565040b8234085ede5dce8ea33cd1510435c54

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ function Bytes = Serialize(Data,Dimensions)
184184
185185
%内置typecast的升级版,支持多维数组,需指定转换维度
186186
function Y = TypeCast(X,Type,Dimension)
187+
188+
%内置varfun的魔改版,支持多个输入输出
189+
function varargout = VarFun(Function,varargin)
187190
```
188191
## +ElFun
189192
```MATLAB
@@ -198,6 +201,9 @@ function Allocation = IntegerAllocate(Resources,Weights)
198201
%内置cat函数的魔改版,可以给不兼容数组自动剪除尾数
199202
function Array = CutCat(Dimension,varargin)
200203
204+
%内置find的魔改版,支持在多维数组上的任意维度查找非零值所在的位置,在其它维度上独立执行。
205+
function [Index,NonZeros] = Find(Array,NumToFind,Dimensions,Last)
206+
201207
%内置flip函数的升级版,支持同时翻转多个维度
202208
function A = Flip(A,Dimensions)
203209
@@ -282,8 +288,11 @@ function Patches=MultiShadowedLines(Y,ShadowHeights,FaceAlpha,options)
282288
%创建带有可自定义文本的嵌套饼状图
283289
function fig = NestedPie(C, options)
284290
291+
%根据输入的图形对象,返回一个尽可能不遮挡图形的图例位置
292+
function Location=OptimizedLegendLocation(GObjects)
293+
285294
%统一各坐标区的XYZC轴范围
286-
function UnifyAxesLims(Axes,varargin)
295+
function varargout=UnifyAxesLims(Axes,varargin)
287296
288297
%列出内置作图函数允许使用的Marker字符
289298
function VMC = ValidMarkerChars(Index)

resources/functionSignatures.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,21 @@
15031503
}
15041504
]
15051505
},
1506+
"MATLAB.DataTypes.VarFun": {
1507+
"inputs": [
1508+
{
1509+
"name": "Function",
1510+
"kind": "required",
1511+
"purpose": "可调用对象"
1512+
},
1513+
{
1514+
"name": "InTable",
1515+
"kind": "required",
1516+
"repeating": true,
1517+
"purpose": "包含输入参数的表"
1518+
}
1519+
]
1520+
},
15061521
"MATLAB.ElFun.AngleND": {
15071522
"inputs": [
15081523
{
@@ -1595,6 +1610,39 @@
15951610
}
15961611
]
15971612
},
1613+
"MATLAB.ElMat.Find": {
1614+
"inputs": [
1615+
{
1616+
"name": "Array",
1617+
"kind": "required",
1618+
"purpose": "任意维度数组"
1619+
},
1620+
{
1621+
"name": "NumToFind",
1622+
"kind": "required",
1623+
"type": "positive",
1624+
"purpose": "最多要找出的个数"
1625+
},
1626+
{
1627+
"name": "Dimensions",
1628+
"kind": "required",
1629+
"type": [
1630+
"real",
1631+
"vector"
1632+
],
1633+
"purpose": "要查找的维度"
1634+
},
1635+
{
1636+
"name": "Last",
1637+
"kind": "ordered",
1638+
"type": [
1639+
"logical",
1640+
"scalar"
1641+
],
1642+
"purpose": "是否从后向前查找"
1643+
}
1644+
]
1645+
},
15981646
"MATLAB.ElMat.Flip": {
15991647
"inputs": [
16001648
{
@@ -2709,6 +2757,15 @@
27092757
}
27102758
]
27112759
},
2760+
"MATLAB.Graphics.OptimizedLegendLocation": {
2761+
"inputs": [
2762+
{
2763+
"name": "GObjects",
2764+
"kind": "required",
2765+
"purpose": "作图函数返回的图形对象"
2766+
}
2767+
]
2768+
},
27122769
"MATLAB.Graphics.UnifyAxesLims": {
27132770
"inputs": [
27142771
{
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design"/>
5+
</Category>
6+
</Info>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="Find.mlx" type="File"/>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design"/>
5+
</Category>
6+
</Info>

0 commit comments

Comments
 (0)