while using of two functions, MATLAB hangs

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

Paulo Silva
Paulo Silva 2011년 9월 1일
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 ;)

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 2일

1 개 추천

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."

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2011년 9월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by