Preventing all [x,y] figures appearing when running a plot of a circle
9 次查看（过去 30 天）
When plotting a circle using x=rcos(theta) and y=rsin(theta), I create a linspace to obtain many values for x and y and then plot [x,y]. However, whenever I run the function, all these values appear. How do I prevent this from happening? This is what top line looks like:
function [x,y] = disc_plot
Youssef Khmou 2015-3-30
Adding semi column (;) for all instructions inside the function will prevent the printing of values.