muhammad usman
Followers: 0 Following: 0
Feeds
提问
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...
4 years 前 | 2 个回答 | 0
2
个回答提问
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...
4 years 前 | 5 个回答 | 1
5
个回答提问
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)- ...
4 years 前 | 0 个回答 | 0
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...
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...
4 years 前 | 0