How do I save the bathymetric data to xyz ASCII file?

1 view (last 30 days)
I totally read this PDF document ( https://www.rsmas.miami.edu/users/prynne/Tidal_Inlet_files/How%20To%20Delft.pdf) and tried to do so according to what it directs.All is ok untill step.19 (save bathymetry.out xyz -ASCII). What's wrong with it? The code is provided as followed that I got from the website ( http://www.rsmas.miami.edu/personal/miskandarani/MatlabScripts/M_map/m_ll2xy.m).
  1 Comment
Star Strider
Star Strider on 26 Mar 2017
What did you do and what did not work?
What was the error? (Copy all the red error text from your Command Window and paste it here.)
That software was written in 1997 and last updated in 2000.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 26 Mar 2017
Nothing in that PDF said that you should modify the m_ll2xy.m source code.
You should be calling m_ll2xy as a function, assigning the X, Y, and I return values to output variables, such as
[X, Y, I] = m_ll2xy(... some appropriate parameters)
Then you should somehow use the X, Y, and I information to construct an matrix named "xyz". After that you would execute the "save" command.
I do not know the relationship between I and Z so I do not know how you would construct xyz. Maybe
xyz = [X(:), Y(:), I(:)];
but I do not know.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!