To save the values of test.id
in a new structure in MATLAB, you can follow these steps:
main.m31 chars2 lines
test.id
to the ids
field of the new structure:main.m25 chars2 lines
save
function:main.m36 chars2 lines
This will save the new structure, including the values of test.id
, to a file named newStruct.mat
.
Note: Make sure test.id
contains the desired values before saving them in the new structure.
Tags: matlab, data structure, save
gistlibby LogSnag