Or the subscript can itself be another vector: v([1 5 6]) % Extract the first, fifth, and sixth elements ans = 16 2 11 The colon notation in MATLAB provides an easy way to extract a range of elements from v: v(3:7) % Extract the third through the seventh
e.g.: if field1 is 'time', field2 is 'temperature' and field3 is 'length' I want to extract all of the triples (time, temperature, length) that have a temperature > 300 K and save them contiguously in a new structure 'data_h
I'm trying to extract an array subset falling into the range from a very large array. The range from Low to High were from user input and the array was loaded from a data file. so the range may not be covered in the data file. the data file is ususall
Post a Comment:
Showing 0 Comments: