Documentos de Académico
Documentos de Profesional
Documentos de Cultura
####################################################################################
Tengo los siguientes datos: Medida de ida Ic [A] Va [V] 0,133 197,4 0,144 210,8 0,154 222,9 0,167 239,5 0,184 259,5 0,242 316 0,28 344 0,344 389 0,409 424 Medida de vuelta Ic [A] Va [V] 0,409 424 0,352 400,5 0,297 371,9 0,25 342 0,212 312 0,193 296 0,176 279,8 0,158 262,2 0,142 244,2 0,131 231,2
Cambio los puntos por comas y separo con comas usando Notepad++ con Ctrl+H (trabajo todo en Excel) Medida de ida Ic [A] Va [V] 0.133, 197.4, 0.144, 210.8, 0.154, 222.9, 0.167, 239.5, 0.184, 259.5, 0.242, 316 0.28, 344 0.344, 389 0.409 424 X1 Y1 Medida de vuelta Ic [A] Va [V] 0.409, 424 0.352, 400.5, 0.297, 371.9, 0.25, 342 0.212, 312 0.193, 296 0.176, 279.8, 0.158, 262.2, 0.142, 244.2, 0.131 231.2 X2 Y2
Ingreso mi vector de datos X1 como: X1=[0.133, 0.144, 0.154, 0.167, 0.184, 0.242, 0.28, 0.344, 0.409 ] Luego sigo la siguiente sucesin de instrucciones (detalladas mas adelante) plot(X1,Y1,'k-',X1,Y1,'o',X2,Y2,'k--',X2,Y2,'*','Color','red','linewidth',2) axis([0.131,0.41,195,425]) xlabel('Corriente de Campo Ic [A]', 'FontSize',18) ylabel('Voltaje (fem) generada en la armadura E [V]', 'FontSize',17) title('Fem generada en Armadura en funcin de Corriente de Excitacin (w=1545[rpm])','FontSize',14) grid on legend(' ','Medicin aumentando sucesivamente Ic',' ','Medicin disminuyendo sucesivamente Ic') Lo obtienes como imagen en Export, en formato JPEG Y obtengo mi imagen:
#################################################################################### Ideas variadas sueltas: Ingreso mi vector de datos del eje x como: X=[1.243, 22, 300, 4000, 55000 ,670000] Ingreso mi vector de datos del eje y como Y=[1.23, 4.34, 5.67, 6, 30, 250] Luego para graficar ambos datos hago: plot(X,Y)
semilogx(X,Ydb)
semilogx(X,Ydb,'k-','linewidth',3) plot(X,Y,'k-','linewidth',2) 2 graficas juntas con distintos estilos pero igual eje X: plot(X,Y,'k--',X,YA,'k-','Color','red','linewidth',2) loglog(X,Y,'k-','linewidth',3) activar grilla grid on Estilos de graficar lneas y colores
y m c r g yellow magenta cyan red green . o x + point circle x-mark plus solid
b w k
* : -.
Colores lnea:
Aumento el grosor del trazo del grafico con: set(findobj(gca,'Type','line','Color',[1 1 1]),'Color',[0,0,0],'LineWidth',100) Color del fondo:
whitebg('w') whitebg('white') whitebg([1 1 1]);
legend('sin(x)','sin(x-.25)','sin(x-.5)')
For example, these statements plot three related functions of x, with each curve in a separate distinguishing color:
The legend command provides an easy way to identify the individual plots:
http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/f3-27853.html
axis([-pi pi -1 1]) xlabel('-\pi \leq {\itt} \leq \pi') ylabel('sin(t)') title('Graph of the sine function') text(1,-1/3,'{\itNote the odd symmetry.}')
http://www.engin.umich.edu/group/ctm/extras/plot.html Graficar con lnea negra semilogx(X,Ydb,'k-') Con lnea punteada semilogx(X,Ydb,'k--')