What does the MATLAB error “scalar structure required for this assignment” refer to in this statement?
You are creating a 1×5 struct array. To quote the struct documentation: If value is a cell array, then s is a structure array with the same dimensions as value. Each element of s contains the corresponding element of value. Since the second argument in the expression struct( ‘Ps’, cell( 1, length(Ps) ) ) is … Read more