Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

regarding plotTING DATA in matlab

5 visualizaciones (últimos 30 días)
Udit Narayan
Udit Narayan el 27 de Mayo de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
can you tell me how to display maximum value of y in the top right corner of graph when i have a n*1 size column vector of y and n*1 size column vector for x .And y is independent of x

Respuestas (1)

KSSV
KSSV el 27 de Mayo de 2020
% Random data for demo
n = 100 ;
x = 1:n ;
y = rand(size(x)) ;
% plot
plot(x,y)
lgd = ['ymax = ',num2str(max(y))] ;
legend(lgd)
Alternatively you can also use text. For this you have to specify the location where you want to display the value.

La pregunta está cerrada.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by