Help with flipping GPR lines
古いコメントを表示
Hi,
I need some help with a GPR code. I'm an anthropology student and not super tech savvy. I have a GPR line going S>N and I want it to go N>S. I am trying to use fliplr and running into some issues.
This is the code I was provided with
clear all
clear all
load('DAT_0006_A1.1.2.mat') % load in your GPR line
IPD=fliplr(IPD) %flip your line from left to right
save DAT_0006_A1.1.2f.mat
I'm not getting any error codes but whenever I create an image to make sure it flipped correct, it looks the same. Any help would be appreciated. Thank you!
回答 (2 件)
Walter Roberson
2023 年 4 月 1 日
移動済み: Image Analyst
2023 年 4 月 2 日
Perhaps instead of doing that, use
set(gca, 'XDir', 'reverse')
?
John D'Errico
2023 年 4 月 1 日
移動済み: Image Analyst
2023 年 4 月 2 日
0 投票
Or, perhaps since fliplr will flip an array from left to right, you wanted to use flipud?
1 件のコメント
Image Analyst
2023 年 4 月 2 日
Two good possibilities. @Madison Rice if you have any more questions, then attach your data (so people don't have to guess) and code to read it in with the paperclip icon after you read this:
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!