How to compile a simulink model for 3d surface plot, which can find z for user defined (x,y)
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Naty S
2016년 2월 4일
Naty
댓글 수: 3
Naty S
2016년 2월 7일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!