Skip to content

Commit

Permalink
更正MATLAB.DataFun.Rescale文档说明错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebola-Chan-bot committed Aug 12, 2021
1 parent 7742e18 commit 09d31b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified +MATLAB/+DataFun/Rescale.mlx
Binary file not shown.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ MATLAB内置rescale函数不能指定维度,只能在整个数组范围内缩
import MATLAB.DataFun.Rescale
%将整个数组缩放到[0,1]范围
Data=rand(4,4,4,4)*10;
%指定拆分维度。拆分维度[2 4]意味着,以4×1×4×1数组为单位,在这1×4×1×4个数组内部分别进行缩放
%指定缩放维度范围。维度范围[2 4]意味着,以1×4×1×4数组为单位,在这4×1×4×1个数组内部分别进行缩放
Rescale(Data,[2 4]);
%指定缩放范围[2,3]
Rescale(Data,2,3);
%同时指定缩放范围和拆分维度
%同时指定缩放范围和维度范围
Rescale(Data*10,2,3,[2 4]);
```
**用法**
Expand All @@ -147,7 +147,7 @@ LowerBound(1,1),缩放下界

UpperBound(1,1),缩放上界

Dimensions(1,:),拆分维度
Dimensions(1,:),维度范围

**返回值**

Expand Down
2 changes: 1 addition & 1 deletion resources/functionSignatures.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"real",
"vector"
],
"purpose": "拆分维度"
"purpose": "维度范围"
}
]
]
Expand Down

0 comments on commit 09d31b4

Please sign in to comment.