bar function not working
Mostrar comentarios más antiguos
Im new to MatLab and am using pre-existing code to perform a simple task of making a bar chart. Im getting an error message that says, "Must supply Y data or X and Y data as first argument(s)."
My code:
figure
[sort,I]=sortrows('lastoil',-1);
bar(sort);
My variables are defined in this picture below. What am I doing wrong?

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!