Creating a weighted function array/vector
이전 댓글 표시
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
Dyuman Joshi
2024년 2월 8일
How would that vector be generated? Are the values random? Or is there a logic followed to obtain them?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Design Condition Indicators Interactively에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
