フィルターのクリア

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 Center および File ExchangeConversion 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