I am trying to write a variable into a structure and read it from another existing structure:
struct1.vector = struct2.matrix(:,1);
when I run this line in my script it will create a double variable struct1. Thats why I will get the error:
Unable to perform assignment because dot indexing is not supported for variables of this type.
When I just run the same line in my Command Window it will create a struct variable struct1 just as I want to. Also there are multiple lines, where I try to write into struct1 and some times the first 4 lines work and the 5th doesn't. I don't understand why the script is creating a double, can anybody help me with this?
Help is much appreciated, thank you.