Community Profile

photo

Sean


Drexel University

2013 年からアクティブ

Followers: 0   Following: 0

連絡

Professional Interests: Biomedical Engineering

統計

  • Thankful Level 1

バッジを表示

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年弱 前 | 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年 前 | 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年 前 | 2 件の回答 | 0

2

回答