get
fit options 구조체 속성 이름과 값 가져오기
설명
예제
get
을 사용하여 fit options 구조체의 속성값 가져오기
fitoptions
구조체를 만들고 get
함수를 호출하여 이 구조체의 속성값을 가져옵니다.
options = fitoptions('fourier1'); methodOptions = get(options,'Method') maxIterOptions = get(options,'MaxIter') set(options,'Maxiter',1e3); maxIterOptions = get(options,'MaxIter')
methodOptions = 'NonlinearLeastSquares' maxIterOptions = 400 maxIterOptions = 1000
점 표기법을 사용하여 속성값을 참조하고 할당할 수도 있습니다. 예를 들어, 다음과 같이 입력합니다.
options.MaxIter
ans = 1000
options.MaxIter = 500; options.MaxIter
ans = 500
입력 인수
options
— fitoptions
객체
fitoptions
(디폴트 값)
속성 이름과 값을 가져오려는 fitoptions
객체로, fitoptions
객체로 지정됩니다.
field
— 속성값
string형 스칼라 | 문자형 벡터 | 문자형 벡터로 구성된 셀형 배열
가져오려는 fitoptions
객체 options
의 속성값으로, string형 스칼라, 문자형 벡터 또는 문자형 벡터로 구성된 셀형 배열로 지정됩니다.
데이터형: char
| string
| cell
출력 인수
s
— fitoptions
객체
fitoptions
fitoptions
객체의 복사본으로, fitoptions
객체로 반환됩니다.
value
— 속성값
스칼라 | 벡터 | 행렬 | 셀
fitoptions
객체 s
의 속성값으로, 스칼라, 벡터, 행렬 또는 셀로 반환됩니다.
버전 내역
R2006a 이전에 개발됨
참고 항목
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)