Two variables need to be connected to one struct variable.

7 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by