Clear Filters
Clear Filters

Two variables need to be connected to one struct variable.

1 view (last 30 days)
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.

Accepted Answer

James Tursa
James Tursa on 29 Sep 2020
What about something like this:
Results.First_Name = first_name{target};
Results.Last_Name = last_name{target}:
dotty daniels
dotty daniels on 30 Sep 2020
Yes... That is corerct.I had a code out of order so it wasn't working for me earlier.

Sign in to comment.

More Answers (0)


Find more on Structures in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!