Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一个 matlab 新手,我想在同一个数字上叠加一些 hist fit。我知道函数 histfit,但不幸的是我无法删除 hist 而只能保留曲线。我想一旦我知道该怎么做,我就可以使用“保持”添加几条曲线。
感谢任何答案或建议!
h = histfit(...)返回句柄 h 的向量,其中 h(1) 是直方图的句柄,h(2) 是拟合曲线的句柄。
h = histfit(...)
用于delete(h(1))删除直方图。
delete(h(1))
如果您没有为拟合的 histo 分配句柄,则可以使用h = get(gca,'Children')
h = get(gca,'Children')