echo won't turn off

조회 수: 12 (최근 30일)
Emily
Emily 2021년 7월 30일
답변: Emily 2021년 7월 30일
I am running a .m script that calls a function saved as a separate .m file. When I was debugging the script I tried many times to turn "echo" on. I tried
echo on
echo on all
echo myfunction on
echo myfunction.m on
echo myscript.m on
echo myscript on
It seemed that none of these definitively worked the first time I tried it, but eventually echo started working. I'm not sure which of those commands made echo come on, but it is definitely on now, and I can't turn it off! I have tried
echo off
echo off all
echo myfunction off
echo myfunction.m off
echo myscript.m off
echo myscript off
I have run these commands multiple times, but it is still echoing the commands in my script.
Has anybody experienced trouble turning echo on and off? I also tried restarting matlab, but it is still echoing. I looked in startup.m in my home directory, and did not see anything about echo in it.
Thanks for any help people can offer.

채택된 답변

Emily
Emily 2021년 7월 30일
Oh, my bad...computers do what you tell them to do!
I had added
echo on
to the function itself.
I removed it later, but somehow the version with that command removed did not get copied successfully to the machine I'm running on.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by