声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1990|回复: 3

[编程技巧] 求椭球表面积和椭圆周长

[复制链接]
发表于 2009-12-24 16:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
:@L :@L :@L 用matlab求椭球表面积和椭圆周长,使用了命令s=mfun('ellipsoid', 20, 8, 8);
但系统告诉我“??? Error using ==> error
Too many output arguments.

Error in ==> D:\matlab\toolbox\symbolic\mfun.m
On line 80  ==>    r = eval(r,emsg);”
这是怎么回事?

[ 本帖最后由 ChaChing 于 2009-12-24 23:17 编辑 ]
回复
分享到:

使用道具 举报

发表于 2009-12-24 21:24 | 显示全部楼层

回复 楼主 牧司 的帖子

刚试下2009a! 怎错误讯息不同!
没用过mfun及ellipsoid! 刚查下help, 总觉得输入参数未配合!?

??? Error using ==> sym.double at 29
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use the VPA function instead.

Error in ==> mfun>processResult at 121
r = double(r);

Error in ==> mfun at 48
    y = processResult(r,siz,nans);

[ 本帖最后由 ChaChing 于 2009-12-24 21:28 编辑 ]
发表于 2009-12-30 03:46 | 显示全部楼层
在2008a上试了,没有问题:
clc
clear
mfun('ellipsoid', 20, 8, 8)
~~~~~~~~~~~~~~~~~~~~
ans =

  1.6737e+003

评分

1

查看全部评分

发表于 2009-12-30 23:54 | 显示全部楼层

回复 板凳 friendchj 的帖子

貌似我的maple没启用!?:@L
有空想学在试试!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-22 01:37 , Processed in 0.070546 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表