MATLAB: How to double the data in x axis plot MATLAB Hello Please I have following plot on x axis : 1000, 2000, 3000, 4000, 5000, 6000 I want to double it so that it appears on graph; 2000, 4000, 6000, 8000, 10000, 120000 How do i do that? Thank in advance Regards Best Answer x = [1000 2000 3000 4000 5000 6000];plot(x*2,y_name); % y_name is variable name of your y-axis data Related SolutionsMATLAB: Making one matrices dimension same as other [rows1 colm1]=size(h);[rows2 colm2]=size(k);% You can change the way depending on sizes of h and k% Also which direction you want to pad zerosk_revise=[k;zeros(rows1-rows2,colm1)]; 5.1000 3.8000 1.9000 0.4000 6.4000 2.9000 4.3000 1.3000 4.3000 3.0000 1.1000 0.1000 5.4000 3.0000 4.5000 1.5000 0 0 0 0 0 0 0 0There are more smart way to do the same, please follow padarray MATLAB: Customised x data in matlab plot The XTick property requires a vector with numeric data, but the XTickLabel property requires a cell array.labels = [0 2000 4000 6000 8000 10000 12000];disp(plot(X));set(gca, 'XTick', 1:numel(labels));%this puts the labels at x=1,2,3,4,5,6,7set(gca, 'XTickLabel', cellfun(@num2str,num2cell(labels)); Related QuestionBelow is the probabilistic neural network for classification, but it is not working fine. Can someone help to improve it? especially how to recalculate training, validation and test performance.How to compare the elements of a matrix and fill another matrix with the elements of a vectorAdding labels to a matrix numberAdd column to a matrixAccessing var content in column, not locationHow to make a permanent change to a matrix using sortrows
Best Answer