Community Profile

photo

Sean


Drexel University

Active since 2013

Followers: 0   Following: 0

Message

Professional Interests: Biomedical Engineering

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 5 answers | 0

5

answers

Question


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 ago | 2 answers | 0

2

answers