MATLAB: How to draw special figures like this: MATLABplotting Suppose i have 3(N) boolean array: P1, P2, P3 with total 16 index in each array. If it is 0 then gray or white will be shown, else some colour will be chosen. Best Answer val = [1 1 2 3 2 1 3 1 2 2 3 2 2 2 4 4];col = [1 1 0; 1 0 0; 0 1 0; 0.5 0.5 0.5];axeshold onfor i = 1:numel(val) bar(i, 1, 1, 'FaceColor', col(val(i), :)); endset(gca, 'PlotBoxAspectRatio', [16 4 1])axis offaxis tightUse a different subplot for each pattern. Related SolutionsMATLAB: Fourier transform of this: FT=fft(f);First FFT then plot, requested you to read this documentation MATLAB: How add “. . .” sign between subplot I think one possible solution would be like this: figuresubplot(1,3,1)plot(magic(4))subplot(1,3,2,... 'Visible','off',... 'XLim',[0 1],... 'YLim',[0 1])text(0.2,0.5,'...','FontSize',44)subplot(1,3,3)surf(peaks) Related QuestionSubplot/Figure with parametersHi .. Help me.. can I representation the polynomial matrix like this:Altering axes in subplotBar graph doesn’t show whole data
Best Answer