MATLAB: N-D grid from excel columns-2-D grid 2_d grid Hello everyone I have a file excel with two columns x,y and 2110 rows. I plot all the couples xi,yi on a graph and now I would like to make a 2-D grid. If then I have N columns how can I extend it to an N-grid Can someone help me Best Answer First, read the whole file:A = xlsread('myfile.xlsx','A1:N2110'); % replace N2110 with the last point in your fileIf all the column from 2 to N are function of the first column and you want them on the same plot:figurehold onfor i = 2:size(A,2) plot(A(:,1),A(:,i))endor on separate plots:for i = 2:size(A,2) figure plot(A(:,1),A(:,i))end Related SolutionsMATLAB: Grid I may be oversimplifying it, but perhaps issue ahold offat the end of the code and see if this gives you behavior you desire.grid minor is a toggle, so that if you issue it and then have a hold on, then when it is issued again, it will toggle off. MATLAB: 3D Plot from xls clc,clearA = xlsread('Prova.xlsx');t = A(2:end,1);x = A(1,2:end);Z = A(2:end,2:end);surf(x,t,Z) Related QuestionN-D matrix accumarrayAccessing data from 1st row to nth row from two columns and plotting themPlot gridRotating N-D matricesExtracting data from excel file; Adding a new column; plotting the first and the newly added column
Best Answer