- In the cftool, perform the necessary curve fitting and obtain the desired results.
- Click on the “Export” button in the cftool toolbar.
- Choose “Export to Workspace” to export the results.
- In Simulink you can directly access the data present in the workspace.
Collecting data from cftool
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I collect a certain value from the cftool. For example, after curve fitting, I get the value of m (y=m*x+c) from the curve fitting. Now I need to use the value of m in the simulink. But I can not do it manually. I will need that to be done all by the matlab. How can I do that?
댓글 수: 0
답변 (1개)
Aditya
2023년 10월 18일
Hi Ananta,
I understand that you want to get the data from cftool and use it in the Simulink.
To achieve this you can follow these steps:
Alternately, you can generate MATLAB code for the curve fitting process. For more detailed information on generating code and exporting fits to the workspace, please refer to the MATLAB documentation provided below:
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!