How to suppress anonymous function handle being created?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, i have written the following anonymous function in a loop. Is there a way to prevent the following from being displayed after each iteration? I already have a semicolon at the end of the line. Thank you
댓글 수: 1
Walter Roberson
2021년 9월 19일
please show the line of code exactly as it is in your program (copy and paste)
답변 (2개)
Image Analyst
2021년 9월 19일
편집: Image Analyst
2021년 9월 19일
You don't need to define it in a loop. You can define it outside the loop and just add the other variables to the input argument list.
Do you have
Fh_intd
by itself, in the loop, with no semicolon and nothing else on that line? If so, that would cause it to say what it was.
댓글 수: 1
Walter Roberson
2021년 9월 19일
The loop might be changing some of the variables rho, g, R, w, h . The function handle might potentially be used for something like integration and so might represent the parameterization with respect to specific values of the variables.
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!