How do I convert a .csv to a .dat using MATLAB (SWAN Modeling)

30 ビュー (過去 30 日間)
Felipe Ruiz
Felipe Ruiz 2019 年 11 月 25 日
回答済み: Dinesh Yadav 2019 年 11 月 28 日
I have an excel sheet (.csv) with four columns, (PNEZ) with input XYZ data points from bathymetric survey for a site. I need to convert that file (recommended using MATLAB) to a .dat file to run a SWAN wave analysis. If anyone could guide me towards a tutorial or a similar code I could use to do so it would be extremely helpful. If you need further information please let me know.
  2 件のコメント
Guillaume
Guillaume 2019 年 11 月 25 日
Many programs use .dat as an extension for their own format so a .dat file could be anything. It could contain text with a particular formatting or some binary data depending on the program.
If you don't have more details about your specific program .dat format, there's not much we can do. For all we know, the only thing you may have to do is just rename the file from .csv to .dat.
per isakson
per isakson 2019 年 11 月 26 日
Google returned thousands of results for "SWAN wave analysis". However, I didn't find the format of SWAN's dat-file.

サインインしてコメントする。

回答 (1 件)

Dinesh Yadav
Dinesh Yadav 2019 年 11 月 28 日
Hi,
Try reading the data from the .csv file into a table in MATLAB and then write that table into a .dat file.
The following links will help.

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by