- #1
Jelfish
- 144
- 5
Hi
I've been trying to figure this out for a bit and thought one of you might know the answer off the top of your head.
I have an if-statement in my MATLAB program that error checks a matrix and vector size. I want the program to print an error message and then end the program (like a ctrl-c) if the error condition is satisfied. Something like this:
where ? is the function the would end the program. Does such a function exist, and if so, what is it?
Thanks in advance.
I've been trying to figure this out for a bit and thought one of you might know the answer off the top of your head.
I have an if-statement in my MATLAB program that error checks a matrix and vector size. I want the program to print an error message and then end the program (like a ctrl-c) if the error condition is satisfied. Something like this:
Code:
if a~=b
fprintf('STFU N00B');
??
end
% other stuff
where ? is the function the would end the program. Does such a function exist, and if so, what is it?
Thanks in advance.
Last edited: