MATLAB: Dot indexing is not supported for variables of this type.

dot indexing is not supported for variables of this typeMATLAB

I am running this code that i got from Matlab forum and on this line below I am getting error
statuses = d.Body.Data.statuses;
How do i resolve this ?

Best Answer

It would be helpful if you provided more of the code, or pointed us to the forum post you are referring to. Am I correct in assuming it is this one?
It looks like your variable d needs to be a matlab.net.http.ResponseMessage object. It is created using the search function. You will need to have the Datafeed toolbox in order for this to work.
To see more, follow this example from the documentation.