If you are planning to use Simulink Data Inspector and Plot Data [see the below link]:
If you are planning to use MATLAB Workspace and Plot Data:
signals = rand(168, N) + repmat(linspace(0, 1, N), 168, 1);
meanSignal = mean(signals, 1);
title('Mean of 168 Signals');
xlabel('Time or Data Point Index');
ylabel('Mean Signal Value');
assignin('base', 'meanSignal', meanSignal);
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.