Please use proper code formatting.
Not our team I fear, sorry. No idea about matlab syntax. Though this looks fishy to me:
options = weboptions(‘CharacterEncoding’,‘utf-8’,‘RequestMethod’,‘POST’,… ‘HeaderFields’,hf,‘ArrayFormat’,‘json’,‘MediaType’,‘application/json’,‘ContentType’,‘json’);
How does Matlab know which header key belongs to which header value? Or are these function arguments and that’s just the order it expects?
Probably your question is better suited in a matlab forum as it’s a basic programming mistake, not a problem with openelevationservice.