Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Process:
- Paste the following script into Matlab's command window, ignoring the error for now.
- Select the section of 'same script' from the command history.
- Choose 'Create Favorite'
- On the pop-up window, select your desired name
- Now a 'Favorite botton' should apear on top right hand side of matlab interface.
- to check the code : select a vaiable from the editor
- click on 'Favorite botton'
- Plot should appear if your variable exist, reasonable
- feel free to change the code as per your use
%%%%%%%%%%%%%%%%%%%
SSSelection1=matlab.desktop.editor.getActive ;
ddata= eval(SSSelection1.SelectedText) ;
figure; hold on
if isa(ddata,'cell')==1
for iiiii=1:length(ddata)
[rrrow1,cccol1] = size(ddata{iiiii}) ;
if (rrrow1 == 1) | (cccol1 == 1)
nexttile
plot(ddata{iiiii}, '-*')
else
nexttile
imagesc(ddata{iiiii})
axis image
end
end
elseif isa(ddata,'double')==1
[rrrow1,cccol1] = size(ddata) ;
if (rrrow1 == 1) | (cccol1 == 1)
plot(ddata, '-*')
else
imagesc(ddata)
axis image
end
end
clearvars SSSelection1 dddata rrrow1 col1 iiiii
%%%%%%%%%%%%%%%%%%%%
Citation pour cette source
Abhishek Shahi (2026). select and plot (https://fr.mathworks.com/matlabcentral/fileexchange/120188-select-and-plot), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.1 (1,24 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.1 | same script as a code |
||
| 1.0.0 |