Two variables need to be connected to one struct variable.

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by