How do I find y coordinate for a x,y,z sourfece given x and z

I'm working on simulik, I have a Data table (z values) with 41 rows (x values) and 7 columns (y values). A priori, I know the value of X and Z and I want to know Y coordinate
for example:
x= [1 2 3 4]
y=[1 2 3]
z=[ 4 8 12
3 7 11
2 6 10
1 5 9 ]
If I know that x=2 and z=7, I can tell that y=2. If x=2 and z=4, I know that, given the x value and interpolating from z=3 and z=7, the Y coordinate lies between 1<Y<2.
My question is, is there any block in simulink that can do this operation? and if ther isn't, how can I manage to perform this?

Answers (0)

Categories

Find more on View and Analyze Simulation Results in Help Center and File Exchange

Products

Asked:

on 18 Nov 2014

Edited:

on 18 Nov 2014

Community Treasure Hunt

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

Start Hunting!