HELP WITH 3-D SURF PLOT !!!!
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!