photo

Sean


Drexel University

Con actividad desde 2013

Followers: 0   Following: 0

Mensaje

Professional Interests: Biomedical Engineering

Estadística

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


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 ...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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) ...

más de 11 años hace | 5 respuestas | 0

5

respuestas

Pregunta


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...

más de 11 años hace | 2 respuestas | 0

2

respuestas