Como calcular a diferença entre máximas e mínimas?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
***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?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/296073/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/296073/image.jpeg)
1 Kommentar
Tommy
am 21 Mai 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);
Antworten (0)
Siehe auch
Kategorien
Mehr zu Conversion Between Symbolic and Numeric finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!