polarG(start_complex,end_complex,arrow_length,arrow_angle,colour_code,line_width)
Draws two dimensional vectors on Matlab figures. Uses complex numbers. Example provided. Should be used in conjunction with 'export_fig' for high quality output. For each vector, start point, end point, arrow head length, arrow tip angle, colour, & line width are specified. If pol2rec(magnitude, angle) also downloaded, can take vector start/end point in polar form.
How it works: arrow head is 250 carefully placed lines at right angle to vector, finishing at end point of vector.
Citar como
Scott Williams (2024). polarG(start_complex,end_complex,arrow_length,arrow_angle,colour_code,line_width) (https://www.mathworks.com/matlabcentral/fileexchange/53261-polarg-start_complex-end_complex-arrow_length-arrow_angle-colour_code-line_width), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > 2-D and 3-D Plots > Polar Plots >
Etiquetas
Agradecimientos
Inspirado por: export_fig
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
6.0.0.0 | Previous version drew arrow for vector as horizontal or vertical lines. Now, arrow consists of series of lines at right angles to the vector. Additional argument required, angle of arrow (deg). Error handling arrow length > vector length
|
||
1.0.0.0 | Added screenshot with output using export_fig. Other function here, pol2rec() is good to use in conjunction with this. In this way, polar form (magnitude and phase) of vector can be entered. |