Matlab - Datalookup and linear interpolation
Ältere Kommentare anzeigen
I need to make a linear interpolation between the two strings which is closest to a given string. Therefore i first need to do some kind of data lookup where some part of the string need to be exactly the same while other parts of the strings shouldn't.
I have a loaded csv file with the lookupstrings (20 string-items lookup + 10,000 string-data to interpolate)
And another csv file with the lookup string (20 items)
e.g. this string: 8.0 6.0 2.5 1.3 1.0 2.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0
Should give the first string and the second and interpolate (data01) and (data02) if the 4th and 6th string-item not should be exactly equal each other, if so the response should be an error message
8.0 6.0 2.5 1.25 1.0 3.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0 (data01) 8.0 6.0 2.5 1.5 1.0 1.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0 (data02) 5.0 6.0 2.5 1.75 1.0 2.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0 (data03) 8.0 6.0 3.5 2.0 1.0 1.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0 (data04) 3.0 6.0 3.5 2.25 1.0 1.0 0.0 0.3 0.05 0.05 0.7 0.2 0.7 0.7 0.7 0.0 0.0 0.0 0.0 0.0 (data05) ...
Later I would like to do some kind of datafitting with all 20 parameteres...
Antworten (0)
Kategorien
Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!