Help creating Z from X and Y for a contour plot
Mostra commenti meno recenti
So I have values for X and Y in vector form (13 x 1) I need to generate matrix Z using those values to get a 13 x 13 matrix for my contour plot. So I want matlab to go calculate Z for every value of Y given a single value of X and so on.
figure(3)
force_amplitude=[1:13]'
force_time=[0:0.05:0.6]'
energy_consumption=20.093*12.5*((1.27/(force_amplitude*force_time))+force_time);
C=(1.27./(force_amplitude.*force_time))-force_time;
contour(force_amplitude,force_time,energy_consumption)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Contour Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!