Add Lab work No1

This commit is contained in:
Imants Pulkstenis
2020-03-24 20:23:39 +02:00
parent 8ee46486e8
commit 27e63599f4
4 changed files with 89 additions and 9 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
function Kcmp = kcmpnd(Ain,Str)
% Kompresora pastiprinajuma koeficients
Kcmp = zeros (size(Ain));
Kcmp(Ain>0)=log10(Str*Ain(Ain>0)+1)./...
Kcmp=zeros(size(Ain));
Kcmp(Ain>0)=log10(Str*Ain(Ain>0)+1)./ ...
Ain(Ain>0)/log10(Str+1);
Kcmp(Ain<=0)=Str/log(Str+1);
Kcmp(Ain<=0) = Str/log(Str+1);