interpolate (using interp) with a decimal number
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Giorgis
am 2 Mai 2017
Kommentiert: Star Strider
am 4 Mai 2017
Hi
I'm trying to interpolate using a non-integer number as required by interp command. Is there another function that would allow interpolation using a decimal number please?
Thanks
0 Kommentare
Akzeptierte Antwort
Star Strider
am 2 Mai 2017
Bearbeitet: Star Strider
am 2 Mai 2017
I am not certain what you are asking. If you have integers and want to interpolate to the nearest integer, use the 'nearest', 'next', or 'previous' method option in your interp1 call.
You could also use the 'linear' method and the use floor, ceil, fix, or round to produce integer output from interp1.
6 Kommentare
Star Strider
am 4 Mai 2017
Thank you!
My pleasure!
May the Fourth be with you! (Today is ‘Star Wars Day’!)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!