HELP WITH 3-D SURF PLOT !!!!
Ältere Kommentare anzeigen
I want to plot Date and time against the power production, every variable has the lenght of 13104.
But if i want to plot this error come up :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error using reshape
To RESHAPE the number of elements must not change.
Error in Bachelorarbeit (line 173)
z=reshape(POutput,length(y),length(x));
%%%%%%%%%%%%%%%%%%%%%%
ttab=table(Date1,t,POutput); % compare everything has the same length
% creating the parameter
x=unique(Date1); %returns the data, but without repetition
y=unique(t); %returns the data, but without repetition
z=reshape(POutput,length(y),length(x));
%creating the matrix z length(x)
%returns the length of the largest array dimension in x and y
% creating a surface plot
surf(x,y,z,'Facecolor','interp') %create a surface plot
colorbar % add a colorbar
colormap(jet) % adjust the colorrange from the surface plot
zlabel('Leistung in MW') %label the z-axis
%print('Usage','-dpng') % if you want to save the plot
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!