MATLAB: Two variables need to be connected to one struct variable.

structures

two variable need to be connected to one structure. ie… Results.Name= lastname{target}, firstname{target}
THey come from two different sheets. I just cannot seem to write it in correctly for the code to run.

Best Answer

What about something like this:
Results.First_Name = first_name{target};
Results.Last_Name = last_name{target}: