Two variables need to be connected to one struct variable.

1 visualización (últimos 30 días)
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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by