Viscircles. Example doesn't work

I try to understand function Viscircles. But i can't do it. I can't to launch the example Clear Axes Before Plotting Circles. Where i can wrong?
figure
colors = {'b','r','g','y','k'};
for k = 1:5
% Create 5 random circles to display,
X = rand(5,1);
Y = rand(5,1);
centers = [X Y];
radii = 0.1*rand(5,1);
% Clear the axes.
cla
% Fix the axis limits.
xlim([-0.1 1.1])
ylim([-0.1 1.1])
% Set the axis aspect ratio to 1:1.
axis square
% Set a title.
title(['k = ' num2str(k)])
% Display the circles.
viscircles(centers,radii,'Color',colors{k});
%% Error using viscircles>parseInputs (line 175) Unknown input string: Color.
%% Error in viscircles (line 67) [ax, centers, radii, options] = parseInputs(varargin{:});
% Pause for 1 second.
pause(1)
end

 Respuesta aceptada

Steven Lord
Steven Lord el 3 de Abr. de 2019

0 votos

Which release are you using? Does the documentation page for viscircles included in your installation list 'Color' as one of the options viscircles accepts? The online documentation is for the most recent release and may describe functionality not available to you if you're using an older release.

Más respuestas (1)

Jonas
Jonas el 25 de En. de 2025

0 votos

viscircles() is a function included in the Image Processing Toolbox.
Did you install the Add-On? Version 24.2 works just fine for me.
Just in case someone else has the same Problem of an uninstalled App look for it in :
APPS ->Get More Apps

Etiquetas

Preguntada:

el 3 de Abr. de 2019

Respondida:

el 25 de En. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by