Follow the following code
from tabpy.tabpy_tools.client import Client
client = Client('http://localhost:9004/')
def call_matlab(a):
return(a)
client.deploy('call_matlab', call_matlab, 'Pass data to call_matlab')
and call the name function
script_int("tabpy.query('call_matlab',_arg1)",[COL_TO_SEND])
If you want to learn more about it Tableau, then go through this Tableau Training for more insights.