while using of two functions, MATLAB hangs

1 view (last 30 days)
mohammad
mohammad on 1 Sep 2011
i use these 2 codes:
i use these functions together, inside another function( that it's name is comp.m) but after running main m-file when arrive to comp.m, first do some commands then arrive to waitinput.m, until here there is no problem, but after arrive to cprint.m, matlab hangs.in other words under cases happen:
1-main m-file runs
2-arrive the line that comp.m function there is and goes inside comp.m
3-in comp.m arrives to waitinput.m without problem then:
4-in comp.m arrives to waitinput.m and matlab hangs
what's problem?
  1 Comment
Paulo Silva
Paulo Silva on 1 Sep 2011
how can we tell you what's the problem if you are using functions not included on MATLAB that might contain bugs and you don't show your code so we can test it? ok maybe Walter might have another lucky guess ;)

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 2 Sep 2011
Yair's documentation for cprintf() says specifically,
Warning:
This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7+, but use at your own risk!
Around here, we have an expression: "If you play around with fire, you'll get burned."

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!