Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
5 views (last 30 days)
Shanmukha Voggu on 29 Nov 2021
The Workaround for the above error can be using the cell array
First, initialize the NWS just before for loop
Later, update the NWS as below inside for loop
Finally, use the NWS as below inside the plot statement
Refer this for more information.