找回密码
 注册
Simdroid-非首页
查看: 77|回复: 1

surf函数的问题

[复制链接]
发表于 2010-5-29 22:15:15 | 显示全部楼层 |阅读模式 来自 湖北武汉
matlab描点三维画图
程序如下:
clc;clear;clf;
close all;
load shiyan.txt                                    
load shiyan1.txt
load shiyan2.txt
A=shiyan;                                          
x=A';                                                                                    
B=shiyan1;
y=B';                                       
C=shiyan2;
z=C';                                      
surf(x,y,z)
出现问题:Warning: Matrix dimensions must agree, not rendering mesh.
Warning: Matrix dimensions must agree, not rendering mesh.
Warning: Matrix dimensions must agree, not rendering mesh.该怎么办
发表于 2010-5-30 13:30:12 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
是不是把x,y,z大小设为一样了,surf函数的z可以理解为平面上点(x,y)对应的函数值,显然x是1X10,y是1x10矩阵,在应该是10X10矩阵。
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-20 00:41 , Processed in 0.037630 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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