MATLAB: How to create a pictogram in MATLAB barimageimreadMATLABpictogram Is it possible to create a pictogram in MATLAB? I want to have a bar chart and for the height of the bar have 1 image. Best Answer You can use "imread" and "image" in a a for-loop to create a pictogram.>> x = [1 2 3 4];>> y = [2 4 3 2];>> im = imread('peppers.png');>> figure>> hold on>> xPos = [1 0.1];>> yPos = [1 0.1];>> for i = 1:numel(x)>> xPos = xPos + 1;>> for j = 1:y(i)>> image(xPos, yPos, im)>> yPos = yPos + 1;>> end>> yPos = [1 0.1];>> end Related SolutionsMATLAB: How do you order table columns based on a vector with their names This can be done by indexing into the table with the "order" cell.Note: Table columns cannot repeat names so "Age" will only appear once, and all subsequent ones will have the value "Age_1", "Age_2"... >> patients2 = patients(:,order) MATLAB: How to change the axis limit when I have 2 axes in the figure You can use the "yyaxis" and "ylim" commands to set the y-limit for both axes:>> figure>> yyaxis left>> plot(1:10);>> yyaxis right>> plot(2:2:20);>>>> f = gcf;>> yyaxis left>> ylim(f.Children, [0 5]);>> yyaxis right>> ylim(f.Children, [5 10]); Related QuestionHow do you find and replace rows in two tables with some variables in commonIs implementing the “fft” formula in documentation giving me opposite sign for imaginary partDisplaying names of multiple variables in a plotHow to use custom date labels for the x-axis in MATLAB plotsDo “datenum” and “datestr” not give the same date after conversionHow to add error bars to scatter plotsHow to programmatically replace a referenced model with a Subsystem in SimulinkCan I change the properties of the confusion matrix plot like axes labels and tick labels
Best Answer