필터 지우기
필터 지우기

Get error for fit function (surface) in matlab2021

조회 수: 2 (최근 30일)
Torkan
Torkan 2022년 4월 7일
댓글: Torkan 2022년 4월 7일
Hello
I have some data I want to use my code but in matlab2021 it does not work. any idea? It could read data but fit does not wok.
clear all
K=readtable('TEMPLDFC.xlsx');
x = K.(1) ;
y = K.(2) ;
z = K.(3);
f = fit([x y],z,"poly23");
Check for incorrect argument data type or missing argument in call to function 'fit'.
  댓글 수: 3
Torkan
Torkan 2022년 4월 7일
편집: Torkan 2022년 4월 7일
Thanks. Attached
surface fit
consider x y z as a double
x= [1;2;3;4;5]
y=[2;3;4;6;7];
z=[2;6;8;10;34];
These are arbitrary I have my excel file where I read my data

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 4월 7일
I suspect that you do not have the Curve Fitting Toolbox installed.
  댓글 수: 1
Torkan
Torkan 2022년 4월 7일
Hmm. Ok so no problem with the code right? Can I install myself? could you pelase let me know how?

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by