datatip showing incorrect value

14 Ansichten (letzte 30 Tage)
ARKADEEP SETT
ARKADEEP SETT am 16 Jul. 2020
Beantwortet: ARKADEEP SETT am 16 Jul. 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;

Akzeptierte Antwort

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

Weitere Antworten (1)

Sugar Daddy
Sugar Daddy am 16 Jul. 2020
Bearbeitet: Sugar Daddy am 16 Jul. 2020

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by