How can I model and simulate a resonant inductive square spiral coil in MATLAB?
wireless power and Modeling Resonant Coupled was added to Matlab2017. I used it for wireless power transfer model, but you can change the geometry and model, frequency of simulation.

You can change this model:

https://www.mathworks.com/help/antenna/examples/modeling-resonant-coupled-wireless-power-transfer-system.html

Edit:
In function "createSpiral.m" change delta_phi "delta_phi=pi/2;"
The output like this:


For simulation, you should change 
createFeed(spiralobj,...,...); point
base on new feeder configuration