How to fix the axis in curve fitting tool?

19 ビュー (過去 30 日間)
Edem Boahen
Edem Boahen 2020 年 8 月 7 日
回答済み: Pankhuri Kasliwal 2020 年 8 月 20 日
I'm trying to fit some set of data to a surface using the curve fitting toolbox. I then want to save this surface as png files and use them to create an animation. But the problem is anytime I modify the data point (x and Y components are constant, the axis keep changing. How can I manually fix the axis in the curve fitting toolbox?
Also is there any other way to animate a surface in matlab?

回答 (1 件)

Pankhuri Kasliwal
Pankhuri Kasliwal 2020 年 8 月 20 日
  • To animate the surface, use a for loop to change the data in your plot. To replace the surface data, set the "XData", "YData", and "ZData" properties of the surface to new values. To control the speed of the animation, use "pause" after updating the surface data. For more information on this please see the Link.
  • Have you tried fixing the axes using "Adjust axes limits" on the toolbar ?

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by