Error using cat Dimensions of arrays being concatenated are not consistent. Error in cell2mat m{n} = cat(1,c{:,n});
I’m trying to make an error bar plot with experimental data. i have used cell2table function to make a table some of the values on the table have [x,x] values like this with corresponding [y,y] and some of them are single values regardless i need to plot all of them against each other along with their error bars. but i keep getting this error on matlab.
% Scatter plot with error bars
figure;
errorbar(cell2mat(dataTable.FrictionAngle), cell2mat(dataTable.Cohesion), cell2mat(dataTable.Cohesion) – cell2mat(dataTable.CohesionMin), cell2mat(dataTable.CohesionMax) – cell2mat(dataTable.Cohesion), cell2mat(dataTable.FrictionAngle) – cell2mat(dataTable.FrictionAngleMin), cell2mat(dataTable.FrictionAngleMax) – cell2mat(dataTable.FrictionAngle), ‘o’);
please helpI’m trying to make an error bar plot with experimental data. i have used cell2table function to make a table some of the values on the table have [x,x] values like this with corresponding [y,y] and some of them are single values regardless i need to plot all of them against each other along with their error bars. but i keep getting this error on matlab.
% Scatter plot with error bars
figure;
errorbar(cell2mat(dataTable.FrictionAngle), cell2mat(dataTable.Cohesion), cell2mat(dataTable.Cohesion) – cell2mat(dataTable.CohesionMin), cell2mat(dataTable.CohesionMax) – cell2mat(dataTable.Cohesion), cell2mat(dataTable.FrictionAngle) – cell2mat(dataTable.FrictionAngleMin), cell2mat(dataTable.FrictionAngleMax) – cell2mat(dataTable.FrictionAngle), ‘o’);
please help I’m trying to make an error bar plot with experimental data. i have used cell2table function to make a table some of the values on the table have [x,x] values like this with corresponding [y,y] and some of them are single values regardless i need to plot all of them against each other along with their error bars. but i keep getting this error on matlab.
% Scatter plot with error bars
figure;
errorbar(cell2mat(dataTable.FrictionAngle), cell2mat(dataTable.Cohesion), cell2mat(dataTable.Cohesion) – cell2mat(dataTable.CohesionMin), cell2mat(dataTable.CohesionMax) – cell2mat(dataTable.Cohesion), cell2mat(dataTable.FrictionAngle) – cell2mat(dataTable.FrictionAngleMin), cell2mat(dataTable.FrictionAngleMax) – cell2mat(dataTable.FrictionAngle), ‘o’);
please help cell2mat, errorbarplot MATLAB Answers — New Questions