关于matlab plot画图的问题首先说明一下,这个程序能够通过运行,但是,画不出图像 clearclcD=[50 40 32];a=[0.7 0.665 0.63175];% after transforming from Hz to Hw,we got%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 04:57:51
关于matlab plot画图的问题首先说明一下,这个程序能够通过运行,但是,画不出图像 clearclcD=[50 40 32];a=[0.7 0.665 0.63175];% after transforming from Hz to Hw,we got%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))

关于matlab plot画图的问题首先说明一下,这个程序能够通过运行,但是,画不出图像 clearclcD=[50 40 32];a=[0.7 0.665 0.63175];% after transforming from Hz to Hw,we got%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))
关于matlab plot画图的问题
首先说明一下,这个程序能够通过运行,但是,画不出图像
clear
clc
D=[50 40 32];
a=[0.7 0.665 0.63175];
% after transforming from Hz to Hw,we got
%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))
%imaginary part is:(1/a-a)*(-a*sin(w*D)/(a^2+1-2*a*cos(w*D)))
w=-2*pi:0.1:2*pi;
Hw=(atan(( -a(1)*sin(w*D(1))/(a(1)^2+1-2*a(1)*cos(w*D(1))))/(-1/a(1)+(1/a(1)-a(1))*(1-a(1)*cos(w*D(1))/(a(1)^2+1-2*a(1)*cos(w*D(1))))))+atan(( -a(2)*sin(w*D(2))/(a(2)^2+1-2*a(2)*cos(w*D(2))))/(-1/a(2)+(1/a(2)-a(2))*(1-a(2)*cos(w*D(2))/(a(2)^2+1-2*a(2)*cos(w*D(2))))))+atan(( -a(3)*sin(w*D(3))/(a(3)^2+1-2*a(3)*cos(w*D(3))))/(-1/a(3)+(1/a(3)-a(3))*(1-a(3)*cos(w*D(3))/(a(3)^2+1-2*a(3)*cos(w*D(3)))))));
plot(w,Hw)
但是用这个就可以
%Mini Project 5.80---question b
clear
clc
D=[50 40 32];
a=[0.7 0.665 0.63175];
% after transforming from Hz to Hw,we got
%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))
%imaginary part is:(1/a-a)*(-a*sin(w*D)/(a^2+1-2*a*cos(w*D)))
syms w;
Hw=(atan(( -a(1)*sin(w*D(1))/(a(1)^2+1-2*a(1)*cos(w*D(1))))/(-1/a(1)+(1/a(1)-a(1))*(1-a(1)*cos(w*D(1))/(a(1)^2+1-2*a(1)*cos(w*D(1))))))+atan(( -a(2)*sin(w*D(2))/(a(2)^2+1-2*a(2)*cos(w*D(2))))/(-1/a(2)+(1/a(2)-a(2))*(1-a(2)*cos(w*D(2))/(a(2)^2+1-2*a(2)*cos(w*D(2))))))+atan(( -a(3)*sin(w*D(3))/(a(3)^2+1-2*a(3)*cos(w*D(3))))/(-1/a(3)+(1/a(3)-a(3))*(1-a(3)*cos(w*D(3))/(a(3)^2+1-2*a(3)*cos(w*D(3)))))));
w=-2*pi:0.1:2*pi;
plot(w,subs(Hw))
谁能给我解释一下为什么,关于这个符号变量什么的我查了不明白,我觉得Hw不也是个数组么?最好详细点加个例子.讲的好可以再追加财富最高加100!,

关于matlab plot画图的问题首先说明一下,这个程序能够通过运行,但是,画不出图像 clearclcD=[50 40 32];a=[0.7 0.665 0.63175];% after transforming from Hz to Hw,we got%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D))
上面的Hw算出来只有一个点啦,所以plot不行.不报错是因为,其实有画线,只不过y都取同一个值了.给你改了一下,你运行下,是不是你要的图.把下面这行代替你原来的那行求Hw
Hw=(atan(( -a(1)*sin(w*D(1))./(a(1)^2+1-2*a(1)*cos(w*D(1))))./(-1/a(1)+(1/a(1)-a(1))*(1-a(1)*cos(w*D(1))./(a(1)^2+1-2*a(1)*cos(w*D(1))))))+atan(( -a(2)*sin(w*D(2))./(a(2)^2+1-2*a(2)*cos(w*D(2))))./(-1/a(2)+(1/a(2)-a(2))*(1-a(2)*cos(w*D(2))./(a(2)^2+1-2*a(2)*cos(w*D(2))))))+atan(( -a(3)*sin(w*D(3))./(a(3)^2+1-2*a(3)*cos(w*D(3))))./(-1/a(3)+(1/a(3)-a(3))*(1-a(3)*cos(w*D(3))./(a(3)^2+1-2*a(3)*cos(w*D(3)))))));

matlab 画图的问题, 关于matlab plot画图的问题首先说明一下,这个程序能够通过运行,但是,画不出图像 clearclcD=[50 40 32];a=[0.7 0.665 0.63175];% after transforming from Hz to Hw,we got%real part is:-1/a+(1/a-a)*(1-a*cos(w*D)/(a^2+1-2*a*cos(w*D)) [转载]用matlab的plot画图的几种用法 matlab下用plot画图怎么加粗 matlab plot 画图问题我要画出一组随机数 随机数可以通过下面代码得出 global NN=320;%====定义产生‘1’的概率为 pglobal pp=0.5;%%首先产生随机二进制序列source=randsrc(1,N,[1,0;p,1-p]);如何画出如图视的P 用MATLAB的plot画图,但是坐标刻度太大,怎么调节刻度?但是我在标题输入框的右边没找着tick 按钮,是版本的问题麽? matlab画图问题,bar 图注释matlab画条形图时,怎么给条形添加注释,就想plot画图里面的 legend 一样,用来说明每个条形代表的意义. matlab程序中plot(x(:,我知道plot是画图的意思,可是我不知道括号里面的“x(:, matlab的问题x=8:1:22;y=100.*pow(0.3,10*x)/x;plot(x,y);grid on;怎么无法画图啊 请教matlab函数plot画点的问题 请教matlab函数plot画点的问题 关于MATLAB用plot函数画图的相关问题?有一矩阵s =0.5415 -0.2415 0.2000 0-1.2244 1.3829 1.3415 0.50000.8951 -2.2902 0.8951 2.0000画图时要用到S中的一行值,如函数y=s(1,1)x*x*x+s(1,2)x*x+s(1,3)x+s(1,4).问题是怎么画出它 matlab中,假如2个m*n的矩阵使用plot(x,y)..matlab是怎么样分配坐标画图的. matlab 求如何对符号积分用plot画图? 关于matlab画图的问题有a=[1 2 8 0 0 2 8 1112 3 87 2 0 4 32 9 0 0 0 2 3 2 88 0 2];plot(a),要求为0的值不画出来. matlab曲线上画点使用PLOT函数画图,想要在得到的曲线上的某个点做圆点标注该怎么做? MATLAB中画图函数,plot(x,f)语句为什么一直报错?f是x的函数,求大神指导, matlab求和函数的画图表示想实现t=10:100;plot(t,y);应该怎么写呢?