Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing all properties #7

Closed
protik77 opened this issue Apr 8, 2015 · 1 comment
Closed

Printing all properties #7

protik77 opened this issue Apr 8, 2015 · 1 comment

Comments

@protik77
Copy link

protik77 commented Apr 8, 2015

I missed a semicolon while plotting something. Due to that it printed all the properties of plt like this:
plotbug

Is there any way to prevent this from your side?

This can be generated with this code:

clear all;
clc;

f = 50;  % frequency
Vm = 10; % peak
phi = 0; % phase

% generate the signal
t = [0:0.0001:3/f];
th = 2*pi*f*t;
v = Vm*sin(th+phi);

figure;
plot(t*1E3, v);

plt = Plot();

plt.XLim = [0, 80];

plt.Legend={'some'}
plt.LegendBox='on';

@masumhabib
Copy link
Owner

I believe, this is a feature of MATLAB. All expressions without a semicolon are printed by MATLAB. I think this is actually a very useful thing for debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants