How do I evaluate interpolated data at unique points provided by two other matrices?
1 view (last 30 days)
Show older comments
I have calculated thermocouple data as [174x1] vectors. I then used
Int_Thermocouple=triscatteredinterp(Engine_Speed,Engine_Torque,Thermocouple)
to make the thermocouple data a linear function of speed and torque.
I have a matrix Torque_Map [25x23] that has unique torque values in each cell, each row is calculated with respect to a different engine speed.
I used Speed_Map = meshgrid(Engine_Speed) and then resized it to [25x23] so that Torque_Map would have a matrix of the same size containing the corresponding engine speeds for each point within Torque_Map.
Now, here's where I'm having the problem.
I want to evaluate the thermocouple data at the unique speed and load points provided by Torque_Map and Speed_Map.
I've tried
output = Int_Thermocouple(Speed_Map,Torque_Map);
but this fails. How can I evaluate the thermocouple data at every point within Torque_Map and Speed_Map?
5 Comments
dpb
on 22 Aug 2013
OK, it's so much easier when can visualize the data to think about it....could you also add a sample of the TC data that can fit--I've not used the triscattered data fitter previously so need an example to play with -- might as well be actual numbers/sample space commensurate w/ your actual problem.
Answers (0)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!