Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an issue #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Tips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Tips:
1 绘制图形并保存后,应及时用‘close \handle’命令关闭图片,否则handle会于数组出现冲突。
例如,会在运行至fig5 = Plot(x,y)时出错。因为1,2,3,4同时表示图片句柄

```matlab
x = [1,2,3,4];
y = [0.1,0.2,0.3,0.4];
fig1 = Plot(x,y);
fig2 = Plot(x,y);
fig3 = Plot(x,y);
fig4 = Plot(x,y);
fig5 = Plot(x,y);% error
```

应修改为

```matlab
x = [1,2,3,4];
y = [0.1,0.2,0.3,0.4];
fig1 = Plot(x,y);
close 1
fig2 = Plot(x,y);
close 1
fig3 = Plot(x,y);
close 1
fig4 = Plot(x,y);
close 1
fig5 = Plot(x,y);
close 1
```