필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
Gabriel Luca Pugliese Borges
Gabriel Luca Pugliese Borges 2020년 5월 21일
댓글: Tommy 2020년 5월 21일
***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
Tommy
Tommy 2020년 5월 21일
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);

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by