Command Alarm
Using MATLab M-file how do i run it in the Command Window and out put the corrisponding value?
I’m running a simulation on MATLab and can’t remember the sequence to receive the corresponding value. I think it is:
>>Temp_Alarm(20)
That should output the voltage at 20 degrees. The m-file runs and i have used the method with this m-file in the past but keep receiving a error:
“??? Attempt to execute SCRIPT Temp_Lab_Code as a function:C:Temp_Alarm.m” as the output.
My guess it that Temp_Alarm is a script not a function. A script just has a list of instructions but a function has a line like this at the start
function returnValue = Temp_Alarm(someinput)
Since you are calling it like Temp_Alarm(20) it should be defined as a function. But I’m guessing if you take a look at the code you’ll find there is only a list of instructions and no function definition.
2nd Alarm Belleville 119 Washington Ave