Create chart analysis using matlab and warning notification using MQTT for Wireless AC Monitor

I am trying to create the spike analyser using Matlab, For hardware, I am using wireless AC monitoring which is easy to use locally in the mesh network for the longer range as well as time through a battery,

I am looking for sample advice which helps me to use Matlab to create the chart analysis and create the MQTT protocol to send the warning notification.