matlab绘图求助 提示错误Conversion to double from sym is not possible.想绘如下的图syms t rh=0.000013118/r*(cosh(9.8^((1/2)*t))-1)[t,r]=meshgrid(0:1:100,0.01:0.0001:0.001)plot3(t,r,h)但是提示:? Error using ==> plot3Conversion to dou

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 01:04:44

matlab绘图求助 提示错误Conversion to double from sym is not possible.想绘如下的图syms t rh=0.000013118/r*(cosh(9.8^((1/2)*t))-1)[t,r]=meshgrid(0:1:100,0.01:0.0001:0.001)plot3(t,r,h)但是提示:? Error using ==> plot3Conversion to dou
matlab绘图求助 提示错误Conversion to double from sym is not possible.
想绘如下的图
syms t r
h=0.000013118/r*(cosh(9.8^((1/2)*t))-1)
[t,r]=meshgrid(0:1:100,0.01:0.0001:0.001)
plot3(t,r,h)
但是提示:
? Error using ==> plot3
Conversion to double from sym is not possible.
我是新手
实在不懂怎么弄

matlab绘图求助 提示错误Conversion to double from sym is not possible.想绘如下的图syms t rh=0.000013118/r*(cosh(9.8^((1/2)*t))-1)[t,r]=meshgrid(0:1:100,0.01:0.0001:0.001)plot3(t,r,h)但是提示:? Error using ==> plot3Conversion to dou
clear;clc;
A=[...
1 15 15 18.4
2 550 15 16.8
3 1085 15 17.4
4 145 170 16.8
5 415 170 18.2
6 685 170 18.2
7 955 170 16.2
8 280 330 19.3
9 820 330 17.4
10 145 490 16.8
11 415 490 19.4
12 685 490 18.9
13 955 490 16.3
14 15 650 17.5
15 550 650 19.3
16 1085 650 17.0
17 145 810 16.7
18 415 810 19.2
19 685 810 19.3
20 955 810 17.0
21 280 970 17.4
22 820 970 19.0
23 145 1130 15.9
24 415 1130 18.2
25 685 1130 17.8
26 955 1130 16.5
27 15 1285 17.5
28 550 1285 16.8
29 1085 1285 17.3];
x=A(:,2);y=A(:,3);z=A(:,4);
xi=min(x):20:max(x);yi=min(y):20:max(y);
[X,Y]=meshgrid(xi,yi);
Z=griddata(x,y,z,X,Y,'cubic');
mesh(X,Y,Z);
xlabel('x'),ylabel('y'),zlabel('RS')
图形见:
另一组数据大同小异:
clear;clc;
A=[...
15 15 27.49
15 330 27.49
15 650 27.28
15 970 27.39
15 1285 27.52
145 1130 27.46
145 810 27.29
145 490 27.46
145 170 27.44
280 15 27.36
280 330 27.50
280 650 27.30
280 970 27.31
280 1285 27.52
415 1130 27.35
415 810 27.27
415 490 27.44
415 170 27.27
550 15 27.25
550 330 27.33
550 650 27.25
550 970 27.36
550 1285 27.41
685 1130 27.38
685 810 27.30
685 490 27.25
685 170 27.25
820 15 27.46
820 330 27.32
820 650 27.39
820 970 27.32
820 1285 27.61
955 1130 27.42
955 810 27.34
955 490 27.30
955 170 27.35
1085 15 27.46
1085 330 27.28
1085 650 27.41
1085 970 27.47
1085 1285 27.72 ];
x=A(:,1);y=A(:,2);z=A(:,3);
xi=min(x):20:max(x);yi=min(y):20:max(y);
[X,Y]=meshgrid(xi,yi);
Z=griddata(x,y,z,X,Y,'cubic');
mesh(X,Y,Z);
xlabel('x'),ylabel('y'),zlabel('RS')

matlab绘图求助 提示错误Conversion to double from sym is not possible.想绘如下的图syms t rh=0.000013118/r*(cosh(9.8^((1/2)*t))-1)[t,r]=meshgrid(0:1:100,0.01:0.0001:0.001)plot3(t,r,h)但是提示:? Error using ==> plot3Conversion to dou matlab中老是提示函数定义错误, MATLAB中如何用矩阵变量绘制图形?在使用矩阵的变量元素作为方程变量进行绘图时MATLAB总是提示错误:Error using plotConversion to double from sym is not possible.比如简单的绘图问题:syms t;a=[1,2*t ,3; 4,5,6 Matlab绘图,1.2. matlab常用的绘图函数 Matlab求助 matlab如何删除错误命令行matlab中,输入命令错误后会有红色错误提示.如何只删除错误的命令行和提示行,保留前面的正确命令? matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量例如我这有写的话:x1=2000:5:3600;x2=2000:5:3600;f=70*x1+120*x2;surfc(x1,x2,f);提示错误:Error using ==> surfc at 42The surface Z must contain more than one row or matlab绘图无错误提示 却显示空白图>> st=linspace(0,0.01,1);>> lam=1;>> w=((2*(3*lam-(2-st)*(1-st))^2+(3*lam-2*(2-st)*(1-st))^2)+lam*(9*lam-2*(2-st)^2))/(9*lam-2*(2-st)^2)^2;>> plot(st,w,'r') matlab 解方程,绘图,程序如下:S1=solve('sin(x)-a*cos(x)=0.8','x');a=0.1:0.1:1;s01=eval(s1);y=tan(s01);plot(a,y)程序功能可以实现,就是出现一个warning,提示错误使用 plot 因为y里面有 ‘复数’,怎么解决这个问题, matlab三维曲线绘图和曲面绘图的区别,举例说明 求助怎么用matlab计算这个积分?提示:用∑Xi△X 计算. matlab (cos(x))^2函数绘图 求助Matlab高手详细讲解一下下面两种错误的原因 proe 不能相交两带特征的零件proe绘图时提示错误:不能相交两带特征的零件时什么意思啊 英语翻译该问题是在Matlab 使用中提示出现的错误 matlab矩阵相乘问题,到底哪里出错了?如下图,左边错误提示,右边源代码. matlab绘图无错误提示 却显示空白图N=100;n=0:N-1;b=1;a=[1 -1 0.9];x1=Heaviside(n);y1=filter(b,a,x1); x2=n.*(Heaviside(n)-Heaviside(n-30));y2=filter(b,a,x2);x3=exp(n*j*pi/4).*Heaviside(n);y3=filter(b,a,x3);subplot(2,2,1);stem(n,y1,'.');axis