Creating a weighted function array/vector
Show older comments
Hi,
I am trying to compute a time-dependent operation. for example no. of people taking the train in a day. I have a row vector with values that represent no. of. people taking the train each second of the day. The problem is the end result is a not very realistic because it doesn't factor in the working hours & peak transport hours.
So, I am trying to create a vector that would serve as a weighted function that assigns weights to certain each second of the day, say peak/non-peak hours.
I couldn't figure out a way to create this vector. Is someone aware of a way to generate such a vector or is there a built-in function to generate one?
Thanks in advance!
1 Comment
Dyuman Joshi
on 8 Feb 2024
How would that vector be generated? Are the values random? Or is there a logic followed to obtain them?
Accepted Answer
More Answers (0)
Categories
Find more on Design Condition Indicators Interactively in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!