To equate one value to another?

1 次查看(过去 30 天)
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 个评论
Andrei Bobrov
Andrei Bobrov 2019-7-10
Please show your small example.
Lev Mihailov
Lev Mihailov 2019-7-10
signal=[816 810 892 ... ];
detph=[37 35 34 ....];
signalplus10=(signal(1)*depth(1)+10./depth(1)

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by