フィルターのクリア

Plot correlation values corresponding to a transformed meshgrided (X,Y) coordinates

2 ビュー (過去 30 日間)
Amine Bohi
Amine Bohi 2018 年 10 月 5 日
編集済み: Amine Bohi 2018 年 10 月 5 日
Hello Everyone, I have a matrix 3x121 that contains (x,y, correlation value), First, I do a meshgrid of (x,y), then a transformation of (x,y) meshgrided into new coordinates (x',y') with x'=y/x and y'=1/x^2*y.
I have to plot the correlation according to the new coordinates (x',y') showed in the attached screen shot.
Here is the code that I used:
load('correlation_xy_0.mat');
x = double(corr_xy(1,:,:));
y = double(corr_xy(2,:,:));
correlation = double(corr_xy(3,:,:));
[X,Y] = meshgrid(x,y);
Xp = Y./X;
Yp = 1./(X.^2 .*Y);
plot(Xp,Yp,'Color',correlation)
Thank you

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by