注册 登录
编程论坛 Matlab

[求助]6个不会做的MATLAB题

zhang123wen 发布于 2007-05-24 09:18, 3510 次点击
这是我自学时遇到的难题 我不会做 谢谢大家的帮助
只有本站会员才能查看附件,请 登录


共6题,是MATLAB的一些好题,大家可以下载

另外我这儿有105道附答案的经典入门题(有答案)如果你需要就留言 呵呵
谢谢大家

17 回复
#2
abingchem2007-05-24 22:22
回复:(zhang123wen)[求助]6个不会做的MATLAB题
这个比较好玩,这是第一个题目,试发个图看看
只有本站会员才能查看附件,请 登录

#3
abingchem2007-05-24 23:05
试试这段代码:
clear;
clc;
syms f x y g
f=log(1+x);
% plot f(x)
xspan=[0:0.1:4];
ezplot(f,[xspan(1),xspan(end)]);
% to plot the line between left point and right point, first fine the
% equation of the line
fl=subs(f,x,xspan(1));
fr=subs(f,x,xspan(end));
% to find the slope of the line
slope=(fr-fl)/(xspan(end)-xspan(1));
%plot the line
fline=fl:0.1*slope:fr;
hold on;
plot(xspan,fline,'r');
%find y equation
y=diff(f,x)-slope;
ezplot(y,[xspan(1), xspan(end)]);
% to find the kexi
df=diff(f,x);
kexi=solve(df-slope);
% give the tangent equation y=k(x-x0)+y0
k=subs(df,x,kexi);
y0=subs(f,x,kexi);
y=k*(x-kexi)+y0;
ezplot(y,[xspan(1),xspan(end)]);
#4
abingchem2007-05-24 23:05
存在的问题是怎么设定ezplot的纵坐标范围呢?
#5
abingchem2007-05-25 08:44
回复:(abingchem)存在的问题是怎么设定ezplot的纵坐...
这是第二题,好像更有意思啦,大家发发代码来看看
只有本站会员才能查看附件,请 登录

#6
zhang123wen2007-05-25 22:28
回复:(abingchem)回复:(abingchem)存在的问题是...

可是后面还有几个有关矩阵的题我也不会啊
大家能帮帮我吗

#7
zhang123wen2007-05-26 10:12
回复:(zhang123wen)[求助]6个不会做的MATLAB题
#8
zhangenter2007-05-26 12:10

2 .

z = linspace(0,pi,50);
u = linspace(0,2*pi,100);

h = plot3(nan, nan, nan) ;

set( gcf, 'Doublebuffer', 'on' ) ;
set( gca, 'XLim', [-1, 1], 'YLim', [-1 1], 'ZLim', [0 pi], 'Box', 'on') ;

view(60,5) ;

for n = u
x = sin(z)*cos(n) ;
y = sin(z)*sin(n) ;
set( h, 'XData', x, 'YData', y, 'ZData', z ) ;
drawnow
end

#9
WLLSZ1191102008-11-14 10:06
105道练习
楼上的我需要你的附答案的105练习,请发wllsz119110@  多谢
#10
hitzhang2008-11-14 19:17
你回来了,呵呵!
#11
sorrentoo2008-11-17 12:29
你好 ~~~
我需要你的这105道题目和答案,请发邮件至:
jiangzelin@
多谢~~~~
#12
sorrentoo2008-11-17 21:18
第三题:
syms t;
A=[ 3 0 0; 1 t 3; 1 2 3 ];
B=2*eye(3);
C=det(B-A);
t=solve(C)
>>t=8

[[it] 本帖最后由 sorrentoo 于 2008-11-17 21:40 编辑 [/it]]
#13
ftpcc2008-11-21 11:48
你好,我学的电子,需要您的105道题,请发至ftp.0023@。谢谢
#14
six662008-11-22 21:39
dsadasdad
dassssssssssssssssssssssssssssss
#15
小支2008-11-23 19:16
题目需求
我要考试了,需要看下您的那些题,麻烦请发下
#16
小小鱼儿天上飞2008-11-25 17:06
急需您的105道题
麻烦你发到291217174@
#17
hhl317920062008-12-10 23:50
大哥,期待你的105道题目。
hailin@mail.sdu.
1