Oct-10-2019, 03:09 PM
When translating from one language to another, you have to compare the behavior of each. I'm not sure how MatLab slices sequences (e.g. H_ev_wf_vec(1:j)) but it evidently provides something other than a slice of the sequence; from your statements, it seems like MatLab returns a single value. Is that value a sum of all the values? Is it the highest, lowest, first, or last value?
The presents another problem though. If you begin with a sequence and pull a single value out of it, you won't be able to repeat that operation again because integers are not subscriptable.
So, to replicate the operation MatLab is doing, we need to identify its behavior and build up a solution.
The presents another problem though. If you begin with a sequence and pull a single value out of it, you won't be able to repeat that operation again because integers are not subscriptable.
So, to replicate the operation MatLab is doing, we need to identify its behavior and build up a solution.