Sean
Drexel University
2013년부터 활동
Followers: 0 Following: 0
Feeds
질문
Write a function getatriangle(R,f,b) that takes the number of rows R and returns a character matrix that has the shape of a triangle filled with the character 'f' on a background filled with the character 'b'.
Assume that R is a positive integer and that f and b are single characters. If b is not given, use '.' . If f is not given, use ...
12년 초과 전 | 답변 수: 1 | 0
1
답변질문
What is a function that takes the diagonal of a matrix (N) and converts the diagonal to all zeros.
Ex. >> m=[1 2 3; 4 5 6;1 2 3] m = 1 2 3 4 5 6 1 2 3 >> m=diagzero (m) ...
12년 초과 전 | 답변 수: 5 | 0
5
답변질문
How do I create a function that takes a character array (s) as an input and returns a new character array with each letter shifted forward once in the alphabet?
Assume that the input s will never contain the letter 'z'. Example: >> shiftletters('apple') ans = bqqmf So far t...
12년 초과 전 | 답변 수: 2 | 0
