Write function to expand array and average adjacent entries.
Mostrar comentarios más antiguos
Write a function twice.m: function y = twice(x) ... end which expands the input signal by inserting the average of the adjacent entries. For example, >> twice([1 5 2 4]) ans = 1 3 5 3.5 2 3 4 You are not allowed to use for-loop in this problem.
1 comentario
Matt Kindig
el 16 de Oct. de 2012
Sounds good. Go for it.
Respuesta aceptada
Más respuestas (2)
Please show what you have done so far for your homework problem....
The more effort you show, the more help you will likely get.
Sean de Wolski
el 16 de Oct. de 2012
0 votos
I answered this here:
Categorías
Más información sobre Array Geometries and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!