retime: apply different method for different columns
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
alpedhuez
el 7 de Jul. de 2020
Respondida: Sai Sri Pathuri
el 10 de Jul. de 2020
I have a timetable with column 2 temperature and column 3 rainfall. I want to apply mean for column 2 and variance for column 3. Can one this be done with one retime function application?
2 comentarios
Respuesta aceptada
Sai Sri Pathuri
el 10 de Jul. de 2020
It is not currently possible to apply different methods for different columns using a single retime function. You may try this:
outputTable = [retime(inputTable(:,2),'hourly','mean'), retime(inputTable(:,3),'hourly', @(x) var(x))];
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!