Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
This is really a small hack that I wanted to share just to inspire more people to make interactive Matlab graphics. Use it as is or use the code as a template to do more advanced stuff.
Here is how it works (for a 2-D patch):
% First make the patch ...
t = 0:2*pi/20:2*pi;
X = 3 + sin(t); Y = 2 + cos(t); Z = X*0;
h = patch(X,Y,Z,'g')
axis([-10 10 -10 10]);
% Then make it movable
moveit2(h);
It also works for e.g. pcolor and plot:
% Adjust data to fit hypothesis using the mouse ... :-)
a = plot(rand(10,10));
moveit2(a);
Cita come
Anders Brun (2026). Moveit2 - Move a graphical object with the mouse. (https://it.mathworks.com/matlabcentral/fileexchange/23304-moveit2-move-a-graphical-object-with-the-mouse), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato: Move a 3D object with mouse in a traditional 4-view window, 3D CT/MRI images interactive sliding viewer
Informazioni generali
- Versione 1.0.0.0 (1,67 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.0.0.0 |
