datatip showing incorrect value

11 visualizaciones (últimos 30 días)
ARKADEEP SETT
ARKADEEP SETT el 16 de Jul. de 2020
Respondida: ARKADEEP SETT el 16 de Jul. de 2020
Hi,
This is my simple program. But in the plot data tips is showing incorrect value. The last value of input is 65535 and output is 60335, but the data tips showing 5 less!!!
input = [511:512:65535];
output = input - 5200;
output(output<0) = 0;
plot(input,output,'+-');
grid on;

Respuesta aceptada

ARKADEEP SETT
ARKADEEP SETT el 16 de Jul. de 2020
Thanks a lot!!! It worked. Hope MATLAB pathes it.

Más respuestas (1)

Sugar Daddy
Sugar Daddy el 16 de Jul. de 2020
Editada: Sugar Daddy el 16 de Jul. de 2020

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by