Can I insert an iterating value in legends of a plot ?

1 visualización (últimos 30 días)
Anshuman S
Anshuman S el 23 de Dic. de 2017
Editada: the cyclist el 23 de Dic. de 2017
The code is as follows ; I want to use the iterating b value in the legends . like b=5, b=8 , b=11 etc.
if true
% code
for b= 5:3:40
f = @(i,o) cotd(o) - cotd(i) - w/c;
fimplicit(f,[0 50 0 50])
legend('beta = ' b );
end
end

Respuesta aceptada

the cyclist
the cyclist el 23 de Dic. de 2017
Editada: the cyclist el 23 de Dic. de 2017
legend(['beta = ',sprintf('%d',b)])

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by