Sean
Drexel University
自 2013 起处于活动状态
Followers: 0 Following: 0
Professional Interests: Biomedical Engineering
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 ...
11 years 前 | 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) ...
11 years 前 | 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...
11 years 前 | 2 个回答 | 0