Clear Filters
Clear Filters

Como calcular a diferença entre máximas e mínimas?

3 views (last 30 days)
***Preciso criar um novo gráfico com o X=Tempo entre uma maré alta e uma maré baixa) e o Y=Diferença de altura entre os circulos azuis(Maré Alta) e os vermelhos(Maré Baixa).
exemplo: Tenho um ponto onde a maré(eixo y) é aproximadamente=3(caracterizando uma maré alta) e um próximo ponto cujo valor é aproximadamente=1,4(caracterizando uma maré baixa). Então, no novo gráfico, esses dois pontos seriam substituídos por um único ponto, que será calculado pela soma 3-(1,4)=1,6
Penso que seja necessário criar algum script. Alguém pode me dar essa ajuda?
  1 Comment
Tommy
Tommy on 21 May 2020
I deleted my old comment because the formatting was messed up and I wasn't sure how to fix it...
But anyway, if you are plotting the tides with this (for example):
plot(t_high, v_high);
hold on;
plot(t_low, v_low);
then I think you could make your new plot with:
plot(t_low - t_high, v_high - v_low);

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!