I have a structure called (level3) and inside it some fields (e.g x0, vx). each field is an array with some values as shown in the screenshot.
I would like to go through these fields values and multply them as follows:
x(1,1)*vx(1,1)
x(2,1)*vx(2,1)
x(3,1)*vx(3,1)
…. and so on.
so I got at the end 10 arrays of results of x
I tried to do it like this but I just got one array with the last value.
fields = fieldnames(level3);for k=1:10 x = [x0. * vx];end
Thanks in advance
Best Answer