MATLAB: How to extract data from strcture

array

if i have a structure of 101 nodes, i want to extract the data of the first 99 nodes only in an array

Best Answer

If you have a structure array of more than 100 "elements", then you can extract the first 99 like this:
s99 = s(1:99);
This will extract the first 99 into another variable, s99, and all "fields" of the structure will also be brought along.