I have a function in Matlab like this:
function func(v1)
v1
end
and I want to call it from cmd. so when I call it in cmd with command like
matlab -nodisplay -r "func("hello");"
I face an error:
Undefined function or variable 'hello'.
but I just want to have string "hello" in my function.
when I try a function which has not any argument, it works properly. but the error occurs when I want to pass argument to the function.
any help will be appreciated.