Problem 61048. Chrono Matrix: Reconstructing the Time Portal
Your time-travel scanner has captured fragments of a portal matrix scattered across eras. Each fragment contains partial information about the transformation between two time coordinates. You must rebuild the full matrix by averaging corresponding overlapping fragments. The balance of time depends on the symmetry of your reconstruction!
You are given a cell array C of equal-sized numeric matrices (e.g., 3×3 or 4×4).
Each cell represents one temporal fragment. Some entries are NaN, indicating lost information.
Your function should:
- Combine all matrices into a single matrix of the same size.
- For each element position (i,j):
- Ignore NaN values.
- Take the average of all non-NaN entries at that position across matrices.
- If all are NaN → output NaN for that position.
- Round results to 4 decimal places.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers3
Suggested Problems
More from this Author22
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!