Rotating pcolor plot and plotting a cross-section
显示 更早的评论
I am taking an image of USAF bar targets with x-y single-pixel values. I want to plot a cross-section of the bar targets to analyze the contrast. The cross-section line must be normal to the bars on the target. You can see below that my target is not aligned perfectly. I would appreciate any help!
The main part of my code that is relevant is:
...
[X,Y] = meshgrid(x,y); % Creates a meshgrid given horizontal and vertical length increments, x and y.
A = reshape(Value,N,M); % Where N and M are the number of columns and rows respectively.
pcolor(X,Y,A);
...
This produces the following image:

Thank you in advance!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Object Containers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!