gaobo 发表于 2022-4-30 20:24:49

MAE 磁晶各向异性异性能画图

老师:您好,根据vaspkit,62-621,算出了MAE.dat文件,但是想做三维图,用算例里给的matlab代码一直运行报错,拿算例中的MAE.dat文件同样也会报错。下图是报错信息和我想要得到的图。再次感谢,谢谢!这是我想得到的图:

这是报错信息:

MATLAB is selecting SOFTWARE OPENGL rendering.

                            < M A T L A B (R) >
                  Copyright 1984-2021 The MathWorks, Inc.
                  R2021a (9.10.0.1602886) 64-bit (glnxa64)
                           February 17, 2021


To get started, type doc.
For product information, visit www.mathworks.com.

>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> [Warning: MATLAB has disabled some advanced graphics rendering features by
switching to software OpenGL. For more information, click <a
href="matlab:opengl('problems')">here</a>.]
>> >> >> >> >> >>
h =

ColorBar with properties:

    Location: 'manual'
      Limits:
    FontSize: 9
    Position:
       Units: 'normalized'

Use GET to show all properties

>> >> >> >> >> >> >> >> >> >> >> >> {Undefined function 'mArrow3' for input arguments of type 'double'.
}
>> {Unrecognized function or variable 'mArrow3'.
}
>> {Unrecognized function or variable 'mArrow3'.
}
>> >> >> >> >> >>function h = mArrow3(p1,p2,varargin)
|
{Error: Function definition are not supported in this context. Functions can
only be created as local or nested functions in code files.
}
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> {Error using nargin
You can only call nargin/nargout from within a MATLAB function.
}
>> >> >> >> >> >> >> >> >> >> >> {Unrecognized function or variable 'p1'.
}
>> {Unrecognized function or variable 'p2'.
}
>> >> >> {Unrecognized function or variable 'p2'.
}
>> {Error using cross (line 47)
A and B must be same size.
}
>> >> >> {Error using cross (line 53)
A and B must have at least one dimension of length 3.
}
>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> {Unrecognized function or variable 'p2'.
}
>> >> >> >> {Unrecognized function or variable 'v'.
}
>> >> >>end
|
{Error: Illegal use of reserved keyword "end".
}
>> >>


期待 发表于 2022-5-15 20:55:31

老哥,问题解决了吗?怎么画的,能教我一下不?方便加你问一下吗?

wkq 发表于 2023-3-4 09:39:37

本帖最后由 wkq 于 2023-3-4 11:43 编辑

我的可以画啊,没有什么报错,直接运行。
页: [1]
查看完整版本: MAE 磁晶各向异性异性能画图