Chebishev polynomials, don't know how to use "chebpoly"
Ältere Kommentare anzeigen
I wrote the following code to approximate a 2 variables function:
clear
clc
close all
FlowMeasurements = chebpts(5,[-0.2,0.8]); % mass flow Chebyshev
SpeedMeasurements = chebpts(5,[25000, 55000]); %Rotational speed Chebyshev
CompressorMapMatrix =[
1.5805 1.2092 1.1402 1.0234 1.0095
1.6553 1.2840 1.2564 1.0565 1.0287
1.9070 1.5357 1.7124 1.2518 1.1505
2.2873 1.9160 2.4317 1.7374 1.4732
2.4935 2.1222 2.8189 2.0728 1.7064]; % I put the points Chebishev will ask
FlowVector = -0.2:0.01:0.8;
approximationResult = chebfun2(CompressorMapMatrix,[ -0.2 0.8 25000 55000]);
a = chebcoeffs2(approximationResult); %a_ij Matrix
for i=1:length(SpeedMeasurements)
figure(2)
plot(approximationResult(FlowVector, SpeedMeasurements(i)));
hold on
grid on
end
Now I have to write this equation:

I have the a_ij Matrix, but I don't know how to get the:

I know for sure I have to use chebpoly but I don't know how.
This maybe could help:
https://www.chebfun.org/docs/guide/guide04.html
Antworten (2)
Paul Rogers
am 14 Mai 2020
0 Stimmen
Paul Rogers
am 17 Mai 2020
0 Stimmen
Kategorien
Mehr zu Polynomials finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!