필터 지우기
필터 지우기

How would I create an cftool session with some default inputs, then save it as a .sfit file programatically?

조회 수: 2 (최근 30일)
I am wanting to build a script to iterate through a list of surface fitting exercises.
I would like to create a series of '.sfit' files programatically which i can then let the user load and modify as they see fit (pun intended :))
I was looking at the options to interact with the cftool using the following,
h = getappdata( groot, 'SurfaceFittingToolHandle' );
then trying to use the functions associated with the sftool object to save and close the session using the following...
SessionName1 = saveSession(h,'SurfaceSession')
This creates a Session object in the workspace, but i'm unclear on how to save this as a '.sfit' file if that is even possible.
I'd have thought that something like:
save('session.sfit','SessionName1')
might work, but alas it does not appear to as I get the following when I load the file...
Any thoughts you file Matlabers?

채택된 답변

William Renold-Smith
William Renold-Smith 2024년 1월 25일
Looks like a ansawered my own question.....
%Open sftool (with arguments if you so desire
sftool
%Grab the handel of the tool
hand = getappdata( groot );
% Save the tool with a name of your choice
sftoolgui.sfsession(hand.SurfaceFittingToolHandle, 'save', 'Tom.sfit');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by