So I wrote the following in a script coding window:
function [n] = n(x)
however I named the file QuantumInteger.m
When i type n(7) into the command window it says that the function is not defined.. but when i type QuantumInteger(7) it does work.
I would prefer the file name to be QuantumInteger.m but to be able to call the function just by typing n(5)
How do I do this? Thanks