Two variables need to be connected to one struct variable.

1 次查看(过去 30 天)
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.

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by