How to plot absorption of sound waves in seawater and boric acid?
조회 수: 1 (최근 30일)
이전 댓글 표시
Please provide a Matlab code for the figure below.
![a.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241322/a.png)
댓글 수: 0
채택된 답변
Stephan
2019년 10월 6일
% Produce some data
x = logspace(-1,2);
y1 = exp(x);
y2 = (exp(x)./exp(y1));
% Plot lo double log-scale
loglog(x,y1,'--k','LineWidth',2)
hold on
loglog(x,y2,'-k','LineWidth',2)
hold off
% Change look
a = gca;
grid on
xlabel('Frquency - kHz')
ylabel('Attenuation - dB/km')
legend({'Saltwater', 'MgSO_{4}'}, 'Interpreter', 'tex', 'Location', 'southeast')
a.GridLineStyle = '--';
a.MinorGridLineStyle = '--';
a.GridColor = 'k';
a.MinorGridColor = 'k';
a.GridAlpha = 1;
a.MinorGridAlpha = 1;
댓글 수: 6
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Continuous Waveforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!