Ich habe 4 Vektoren, erste drei sind komplexe Zahlen und 4. ist eine Summation von ihnen.Färbung Köcher Vektoren in Matlab
Ich zeichne sie mit Köcher erfolgreich, aber ich muss 4. als rot färben. Wie kann ich nur den 4. zu rot färben?
% vectors I want to plot as rows (XSTART, YSTART) (XDIR, YDIR)
rays = [
0 0 real(X1) imag(X1) ;
0 0 real(X2) imag(X2) ;
0 0 real(X3) imag(X3) ;
0 0 real(SUM) imag(SUM) ;
] ;
% quiver plot
quiver(rays(:,1), rays(:,2), rays(:,3), rays(:,4));
% set interval
axis([-30 30 -30 30]);
oder soll ich plotv verwenden? https://www.mathworks.com/help/nnet/ref/plotv.html