You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
795 B
Matlab
18 lines
795 B
Matlab
function writetofileang(angfile, outpath, pfstring)
|
|
fid = fopen([outpath '\' pfstring '.ANG'],'w');
|
|
fprintf(fid,'C> *******************************************************\r\n');
|
|
fprintf(fid,'C> * SBEACH wave input file: %s.ANG *\r\n',pfstring);
|
|
fprintf(fid,'C> *******************************************************\r\n');
|
|
fprintf(fid,'C>\r\n');
|
|
fprintf(fid,'C>\r\n');
|
|
fprintf(fid,'C> DIRECTION (DEGREES)\r\n');
|
|
fprintf(fid,'E>----------------------------------------------------------------\r\n');
|
|
for ii = 1:length(angfile)
|
|
if ii == length(angfile)
|
|
fprintf(fid,'%.3f\r\n', angfile(ii));
|
|
else
|
|
fprintf(fid,'%.3f\r\n', angfile(ii));
|
|
end
|
|
end
|
|
fclose(fid);
|
|
end |