Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
iplot
when we plot data, typically we use a fixed interval in the x-direction. as a result, if you try to use markers, in regions of your function where y is changing rapidly, the markers will be very spread out, and in regions where y barely changes, your markers will overlap. the result is a clumsy looking plot. you can try to get around this by plotting a subset of your function (i.e., plot(x(1:N:end),y(1:N:end)) but the result is also clumsy and you have to try and play around with N. this function solves this problem by guaranteeing that the distance between neighboring markers remains constant along the function you are plotting, regardless of its derivative direction. the user can specify the number of markers they want, N, spread evenly along the length of the plotted line. because the axis units does not always correspond to their displayed size in a plot, the user must also specify the x and y axis ranges they ultimately wish to display the plot at in xr=[xmin xmax] and yr=[ymin ymax].
example
x=linspace(-pi,pi,361)
y=sin(x);
figure(1)
iplot(x,y,[-pi pi],[-1 1],40,'k-s','LineWidth',0.75,'MarkerFaceColor','w','MarkerSize',5.0)
Citar como
Adam Glaser (2026). iplot (https://es.mathworks.com/matlabcentral/fileexchange/43229-iplot), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.0.0.0 (1,82 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
