bar function doesn't function

4 views (last 30 days)
Demetris Roumis
Demetris Roumis on 13 May 2019
Commented: Walter Roberson on 20 May 2019
>> bar([1 2 3])
Struct contents reference from a non-struct array object.
Error in matlab.graphics.chart.primitive.Bar/createBarVertexData
Error in matlab.graphics.chart.primitive.Bar/doUpdate
Info:
>> which bar -all
/_/_/matlab2015b/toolbox/matlab/specgraph/bar.m

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 13 May 2019
Use: >> clear all
and run again: >> bar([1 2 3])
Nothing happens, then just close MATLAB and restart it. Maybe these steps would resolve some conflicting commands.
Good luck.
  2 Comments
Demetris Roumis
Demetris Roumis on 20 May 2019
Thanks for the response, but unfortunately restarting matlab did not work. This is issue is still open
Walter Roberson
Walter Roberson on 20 May 2019
Unfortunately the code being executed cannot be inspected by users so you would need to open a support case with Mathworks. The release you are using hints that could be a problem as I suspect that you do not have a support contract.
You could experiment with
restoredefaultpath
rehash toolboxcache
savepath

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!