fitting code from cftool

조회 수: 2 (최근 30일)
omnia
omnia 2016년 4월 28일
답변: Steven Lord 2016년 4월 28일
I used a cftool to create a code to fit my data. I want to use linewidth of 2 points. when I used
figure( 'Name', 'untitled fit 1' );
h = plot( fitresult2, 'b'); h.LineWidth=2;
I got an error of
Warning: Struct field assignment overwrites a value with class "double". See MATLAB R14SP2 Release Notes, Assigning Nonstructure Variables As Structures Displays Warning, for details.
and the linewidth does not change. I need it for my lab work. any help will be appreciated.

답변 (1개)

Steven Lord
Steven Lord 2016년 4월 28일
What release are you using? If you're using a release prior to release R2014b, you will need to use set to change the properties of the line returned by plot rather than the dot notation that will only work in release R2014b or later.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by