Hello! I have signal values ​​(floating values) how do I equate them to the depth of this signal?
signal values ​​800 801 702 and up to 2000 depth is 14 15 11 and so on until 2000 what could I do then as a result 15 -5 and for my signal it will be like 800-264
Help me please!

4 Kommentare

KSSV
KSSV am 10 Jul. 2019
Not clear.......we check equality of floating values using:
abs(x-y)<tolerance
Lev Mihailov
Lev Mihailov am 10 Jul. 2019
I was just told that it is easy to do. The signal data 800 is equal to 15 because their length is the same
Andrei Bobrov
Andrei Bobrov am 10 Jul. 2019
Please show your small example.
Lev Mihailov
Lev Mihailov am 10 Jul. 2019
signal=[816 810 892 ... ];
detph=[37 35 34 ....];
signalplus10=(signal(1)*depth(1)+10./depth(1)

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 10 Jul. 2019

0 Stimmen

May be like this:
Let S - your signal.
m = min(S);
detph = 10/(max(S) - m)*(S - m) + 5;

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by