select and plot

This script plot a variable that selected in editor, quickly. select the part you want to plot from the editor modify this as per your use.

이 제출물을 팔로우합니다

Process:
  1. Paste the following script into Matlab's command window, ignoring the error for now.
  2. Select the section of 'same script' from the command history.
  3. Choose 'Create Favorite'
  4. On the pop-up window, select your desired name
  5. Now a 'Favorite botton' should apear on top right hand side of matlab interface.
  6. to check the code : select a vaiable from the editor
  7. click on 'Favorite botton'
  8. Plot should appear if your variable exist, reasonable
  9. 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
%%%%%%%%%%%%%%%%%%%%

인용 양식

Abhishek Shahi (2026). select and plot (https://kr.mathworks.com/matlabcentral/fileexchange/120188-select-and-plot), MATLAB Central File Exchange. 검색 날짜: .

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.1

same script as a code

1.0.0