Borrar filtros
Borrar filtros

How to compile a simulink model for 3d surface plot, which can find z for user defined (x,y)

2 visualizaciones (últimos 30 días)
I have a 3-d table, lets assume x=first row, y = first column and z is matrix for x and y. I could use curve fit in matlab to get the surface plot and linear polynomial equation. But i want to compile a simulink model which has to find the z value for a given x,y looking up the table or through the equation.

Respuesta aceptada

Naty S
Naty S el 4 de Feb. de 2016
  3 comentarios
Naty S
Naty S el 7 de Feb. de 2016
If I understand correctly you have got a 2D matrice with data points (Z). you've also got 2 1D vectors (X,Y). you want a function that looks somthin' like z_val=f(x,y) which is taken from the Z 2D matrice.
So.. set table dimensions to 2. Table Data should be Z (2D matrice) and the 2 breakpoints should be your X and Y row vectors.
This should give you 2 inputs, one for x and one for y that will yield the appropriate Z value
RANJITH REDDY KALLURI
RANJITH REDDY KALLURI el 18 de Feb. de 2016
@Naty S Here all X , Y elements are being passed into lookup table, what if i want to restrict one value of x, y into lookup table for every time step i wanna run.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by