How do I fix the following code?

1 visualización (últimos 30 días)
Anuradha Bhattacharya
Anuradha Bhattacharya el 13 de Feb. de 2015
Comentada: Anuradha Bhattacharya el 13 de Feb. de 2015
>> filename = load('proctrial_1.lvm'); >> timedata = filename(:,1); >> xvoltage = filename(:,2); >> plot(timedata,xvoltage) >> histplot = histogram(timedata, xvoltage); which gives an error, Undefined function 'histogram' for input arguments of type 'double'.

Respuesta aceptada

Michael Haderlein
Michael Haderlein el 13 de Feb. de 2015
The function's name is "hist" for plotting and "histc" for only getting the values.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by