About 4,110,000 results
Open links in new tab
  1. Extract data from a structure - MATLAB Answers - MATLAB Central …

    Apr 21, 2018 · B = A; B.data = B.data(:, [1 2 3 6]); % delete columns of data [~, ind] = sort(B.data(:,1)); % get sorted indexes for column 1 B.data = B.data(ind, :); % now sort all …

  2. Elegant way to extract part of a structure as an array

    May 10, 2011 · Learn more about extracting part of a structure, structure, array, curly braces, cell2mat Hi, I would like to be able to extract part of a structure as an array. For example, …

  3. how to extract all variables from a struct - MATLAB Answers

    Jul 30, 2019 · Hi, I wanted to extract all the variables from the struct without having to manually type the headers. In short I want to dissolve the entire struct to differnt variables with their …

  4. How do I extract subset of all fields from structure?

    Jun 16, 2018 · I have my data stored in a structure. Every field is a 11300x1 array of doubles. I want to extract all (also some would be interesting) data that meet a certain condition to a new …

  5. extractfield - Field values from structure array - MATLAB

    Extract the X field from the structure and examine the format of the returned values. All values have the same numeric data type ( double ), so the result is returned in a vector. uniformType …

  6. how to extract data from struct? - MATLAB Answers - MathWorks

    Sep 2, 2021 · The best solution by far is to refer to the data in the structure, and not inefficiently create lots of variables.

  7. getfield - Field of structure array - MATLAB - MathWorks

    Get the value of a field from an element of a structure array returned by the dir function. dir returns a structure array whose elements each contain information about a file in the specified folder. …

  8. Is it possible to extract all fields from a structure automatically?

    Aug 10, 2016 · I have data in the form: mydata.x = 100; mydata.s = 'abc'; mydata.Y = [1 2 3]; And I want variables x = 100; s = 'abc'; Y = [1 2 3]; How to extract variables automatically? …

  9. Extract data from struct array - MATLAB Answers - MathWorks

    Jun 1, 2023 · I have a struct array that each element contains substructures with data that I would like to extract into a numeric array or timeseries. The data structure is set up similar to the …

  10. Access Data in Nested Structures - MATLAB & Simulink

    This example shows how to index into a structure that is nested within another structure. The general syntax for accessing data in a particular field is …

  11. Some results have been removed
Refresh