tsdev / spinw

SpinW Matlab library for spin wave calculation
www.psi.ch/spinw
GNU General Public License v3.0
30 stars 35 forks source link

Symbolic calculation isn't working #60

Closed Fellow-baka closed 5 years ago

Fellow-baka commented 6 years ago

It seems like tutorial for symbolic calculations Tutorial_17 is obsolete now.

There is a minor error in plotting:

Error using sprintf
Function is not defined for 'sym' inputs.

Error in swplot.tooltipstring (line 125)
                string = [string 'Heisenberg exchange' newline 'Value:' newline sprintf('%7.3f ',M(1,1)) ' ' unitE];

Error in swplot.tooltipcallback (line 43)
            string = swplot.tooltipstring(sObject,swobj);

Error in swplot.tooltip>@(obj,hit)swplot.tooltipcallback(obj,hit,hFigure,h) (line 113)
            set(unique([obj(:).handle]),'ButtonDownFcn',@(obj,hit)swplot.tooltipcallback(obj,hit,hFigure,h));

Error while evaluating Patch ButtonDownFcn

And I wasn't able to go further than generating magnetic structure:

Error using spinw/genmagstr (line 357)
Wrong number of input spins!

I'm using the latest SpinW version:

>> sw_version()
This version of SpinW is not released yet!
MATLAB version: 8.4.0.150421 (R2014b), Symbolic Math Toolbox installed