Problem with segy display using SeisLab_10.0301
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Narvik
on 22 Dec 2023
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_cplot’ seems to be fixed in the latest version.
You can get the latest version from the link below:
Hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!