I have defined a structured array, meas, which is indexed by number of occurrences of a phenomena. Thus, for example, I have: meas(n).ti = 65.32; meas(n).Rt = 200; meas(n).Vt = 10; etc., etc. I want to define a vector of, for example, the times of occurrences (the "ti" values). The pseudo-code would look like: 'TI = meas(1:end).ti' I obviously could do this in a loop: for n=1:nocc; TI(n) = meas(n).ti; end; (where nocc is the # of occurrences.) Is there a way to do this without using a loop?
MATLAB: Is there a way to extract a set of values from a structured array
MATLABstructured array values
Related Question
- Automatically creating and editing Fields of struct with for Loop
- How to extract and organize data in a structure
- How to add element to a cell array struct without loop
- Does MATLAB have functions for multi-dimensional numeric integration
- How to call a struct name from variables stored in a cell array in a loop
- Is it possible to allow the Symbolic Math Toolbox to properly handle multi-dimensional matrices.
- Average of a structure
- Vertical concatenation of structure fields (compact form)
Best Answer