Problem with segy display using SeisLab_10.0301

3 ビュー (過去 30 日間)
Sandeep
Sandeep 2023 年 12 月 5 日
回答済み: Narvik 2023 年 12 月 22 日
I imported the attached segy file using the following code from SeisLab_10.0301
Data = read_segy_file('C:\Users\sshar\Downloads\SeisLab_10.0301\190613.line10.sgy');
Now, I am trying to display the 2D section using,
s_cplot(Data);
but it shows the following error
Error using num2str
Input to num2str must be numeric.
Error in myimagemenu (line 24)
handle=findobj(figure_handle,'Tag',['image_menu',num2str(figure_handle)]);
Error in s_cplot (line 265)
myimagemenu % Create menu button to interactively change colors, etc.
Error in TestSegy (line 4)
Could you please help me correct this?
Thanks.

回答 (1 件)

Narvik
Narvik 2023 年 12 月 22 日
Hi,
As per my understanding, you are facing an issue while trying to use the function ‘s_cplot’ from SeisLab v3.0.1. The error seems to be due to passing a non-numeric input to num2str function.
You can try converting the variable being passed to num2str to a number in myimagemenu.m file. But I suggest you use the latest version of SeisLab, i.e, v3.0.2. The function s_cplotseems to be fixed in the latest version.
You can get the latest version from the link below:
Hope this helps!

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by