"Is there anyway around assigning data to the variables, and still use the transfer function?"
NO. tf() will never support symbolic parameters.
See https://www.mathworks.com/matlabcentral/answers/305339-how-to-create-a-transfer-function-with-gain-k#answer_236890 for a semi-detailed discussion of what is available.