While using the Live Editor, why does no output appear in the command window when I click the Run button?

36 次查看(过去 30 天)
I have entered commands in the live editor but see no output in the command window when I select the Run button?
syms t n
T= 2*pi; % T= Period
w0=1; % Fundamental anguler freg
n=1:10; % n=1 fundamental, n>1 harmonics
v(t) =100+100*cos(t);
a0= (1/T)*int(v(t),t,0,T)
an=(2/T)*int(v(t)*cos(n*w0*t),t,0,T)
bn=(2/T)*int(v(t)*sin(n*w0*t),t,0,T)

回答(1 个)

Areej Varamban Kallan
Hi Gary,
This is an expected behaviour. In live scripts, MATLAB displays output to the right of the code. Each output is displayed with the line that creates it. The live editor captures all the outputs within the file containing the code.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by