I have acoustic doppler profiler ADCP data that i want to porduce a mean flow plot. How would i do this?
I have this script so far but i have no idea why it dosent work.
for n=1:45
avU(;,n)=nanmean(residulaU(:,n)); %U velocity data from the ADCP
avV(:,n)=nanmean(residulaV(;,n));
please can you explain how i would produce a figure such as the one below, thank you.
<<www-mathworks-com-matlabcentral-answers-uploaded_files-25470-Untitled-jpg.nend>>

댓글 수: 1

Geoff Hayes
Geoff Hayes 2015년 2월 16일
Luke - what is the code that you are using to plot the data? What are the dimensions of residualU and residualV? What are your depths? Please provide more details.

댓글을 달려면 로그인하십시오.

답변 (1개)

Chad Greene
Chad Greene 2015년 2월 16일

0 개 추천

I see some semicolons where perhaps there should be colons. Should avU(;,n) be avU(:,n), and should nanmean(residulaV(;,n)) be nanmean(residulaV(:,n))? Also, do you need the loop? You may be able to eliminate the loop by specifying a dimension along which to apply nanmean.

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

질문:

2015년 2월 16일

답변:

2015년 2월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by