错误使用 sprintf 无法将 'matlab.ui.Figure' 值转换为 'int64'

28 views (last 30 days)
wei nie
wei nie on 6 Oct 2019
Answered: 埃博拉酱 on 24 Apr 2022
  3 Comments
埃博拉酱
埃博拉酱 on 23 Apr 2022
你把图当作数值输出怎么可能成功

Sign in to comment.

Answers (1)

埃博拉酱
埃博拉酱 on 24 Apr 2022
gcf是当前图窗Figure对象,又不是一个数值,怎么可能用sprintf当作数值输出呢?你要输出图像编号的话就得手动指定一个数值编号

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!