Community Profile

photo

Vadim Potorocha


Last seen: 1 year ago Active since 2020

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


How to find the smallest entropy value greater than 88 bits from a given alphabet
function [b, n] = calc_info(msg, alph, alph_p) size_alph = numel(alph); size_alph_p = numel(alph_p); size_msg = num...

1 year ago | 0 answers | 0

0

answers

Question


Is NaN ok here?
%coin txt 5.00000000e-01 5.00000000e-01 %crime txt 1.66000000e-01 6.60000000e-02 1.40000000e-02 3.90000000e-02 1.40000000...

1 year ago | 2 answers | 0

2

answers

Question


Code function without if else switch and loops. Is that possible?
Write a function that takes a rectangular matrix as a parameter, removes rows in it, the first element of which is less than 0.5...

1 year ago | 0 answers | 0

0

answers

Question


How to code a function that calculates the redundancy of a given alphabet
I have a function that calculates the entropy of vector element function h = alph_entropy(P) h = -sum(P .* log2(P)); endfu...

1 year ago | 1 answer | 0

1

answer

Question


In item 7, I need to use short labels for the x, y, z axes. How it is? Thank you
x = -4:0.1:4; y = -4:0.1:4; [X,Y] = meshgrid(x,y) Z = cos(37.6*X).*X.^3-Y.^2; figure('Name','Zadanie 7','NumberTitle...

1 year ago | 0 answers | 0

0

answers

Question


How to optimize this code?
u = (0:1500).*(96*(2*pi)/1500); % spiral with 96 waves r=u./2; % spiral radius x=r.* cos(u); % X y=r.* sin(u); % Y

1 year ago | 1 answer | 0

1

answer

Question


How to write included function into other
Hi, i need to write a function that simulates a coin toss: r = coin_flip (N), where N is the number of tosses, r is a logical ...

1 year ago | 1 answer | 0

1

answer