ALL TIME DOWNLOADS
NUMBER OF BADGES
0 Public Channels
AVERAGE NO. OF LIKES
Write a function called draw_constellations that takes no input arguments and returns no output arguments. Instead, it obtains its input via the function ginput.
Write a function called draw_constellations that takes no input arguments and returns no output arguments. Instead, it obtains i...
3 years ago | 2 answers | 0
Caesar's cypher is the simplest encryption algorithm. It adds a fixed value to the ASCII (unicode) value of each character of a text. In other words, it shifts the characters. Decrypting a text is simply shifting it back by the same amount, that is,
function coded = caesar(a,b) coded = char(a+b); c = length(coded); for ii = 1:c if coded(ii) > 126; d = coded(i...
3 years ago | 5 answers | 1
What is wrong with my code ?
function coded = caesar(a,b); x = length(a); y = double(a); for i = 1:x y(i) = y(i) + b; if y(i) > 126; j = y(i)- ...
3 years ago | 0 answers | 0
Write a function called holiday that takes two input arguments called month and day; both are scalar integers representing a month (1-12) and a day (1-31). You do not need to check that the input is valid. The function returns a logical true if the s
function H = holiday(month,day); if (month == 1 && day == 1) || (month == 7 && day ==4) || (month == 12 && day == 25) || (month...
3 years ago | 0