I have a matrix 6*2 as following (UNDER THE PLOT), after plotting them i get what you see in the figure. so how can i extract data points in new matrix with fixed increment inYaxis(for example of value 0.1 increment )without change Zvalue for curves

1 回表示 (過去 30 日間)
X=[0 1 2;1 4 2;2 9 2;3 13 2;4 18 2;5 15 2;5 15 4;4 18 4;3 13 4;2 9 4;1 4 4;0 1 4]

採用された回答

Jordan Ross
Jordan Ross 2017 年 1 月 9 日
Hello Faez,
From your description it sounds like you would like to interpolate the value of the line at a point that is not defined in your original matrix. In order to do this you could make use of the "interp2" function. For examples and details on how to use the function refer to the documentation: http://www.mathworks.com/help/matlab/ref/interp2.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by