⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 q45.xml

📁 电路与系统专业的matlab程序。有很多经典的实例。
💻 XML
字号:
<?xml version="1.0" encoding="utf-8"?><mscript xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd">   <version>7.0</version>   <date>2005-04-21</date>   <cell>      <mcode>%MATLAB脳路貌q45% 脳路% 脳陇掳掳  猫 贸 梅 2001锚10clear, echo ons='abyzABYZ0189'size(s)abs(s)setstr(abs(s))dec2hex(abs(s))s1=[' welcome ',s]s2 =['a=5    ' ; 'b=2    '  ; 'c=a+b*b']for k=1:3 eval(s2(k,:)), endst = input(' s=卤铆','s'); eval(st)% for i=1:10 fname='mydata'; eval(['load ',fname,int2str(i)]), endst=sprintf(' pi= %8.5f',pi);disp(st)x = 0:10:90; y = [x; sin(x*pi/180)];disp(sprintf('%10.2f  %12.8f\n',y))echo off</mcode>      <mcode-xmlized>         <mwsh:code xml:space="preserve">            <mwsh:comments xml:space="preserve">%隆露MATLAB脭脷碌莽脳脫脨脜脧垄驴脦鲁脤脰脨碌脛脫娄脫脙隆路碌脷脣脛脮脗碌脷脦氓陆脷脩脻脢戮鲁脤脨貌q45</mwsh:comments>            <mwsh:comments xml:space="preserve">% 脳脰路没麓庐潞炉脢媒驴芒</mwsh:comments>            <mwsh:comments xml:space="preserve">% 碌莽脳脫鹿陇脪碌鲁枚掳忙脡莽鲁枚掳忙  鲁脗禄鲁猫隆 脦芒麓贸脮媒 赂脽脦梅脠芦潞脧脰酶 2001脛锚10脭脗</mwsh:comments>clear, echo <mwsh:strings xml:space="preserve">on</mwsh:strings>s=<mwsh:strings xml:space="preserve">'abyzABYZ0189'</mwsh:strings>size(s)abs(s)setstr(abs(s))dec2hex(abs(s))s1=[<mwsh:strings xml:space="preserve">' welcome '</mwsh:strings>,s]s2 =[<mwsh:strings xml:space="preserve">'a=5    '</mwsh:strings> ; <mwsh:strings xml:space="preserve">'b=2    '</mwsh:strings>  ; <mwsh:strings xml:space="preserve">'c=a+b*b'</mwsh:strings>]<mwsh:keywords xml:space="preserve">for</mwsh:keywords> k=1:3 eval(s2(k,:)), <mwsh:keywords xml:space="preserve">end</mwsh:keywords>st = input(<mwsh:strings xml:space="preserve">' s=卤铆麓茂脢陆'</mwsh:strings>,<mwsh:strings xml:space="preserve">'s'</mwsh:strings>); eval(st)<mwsh:comments xml:space="preserve">% for i=1:10 fname='mydata'; eval(['load ',fname,int2str(i)]), end</mwsh:comments>st=sprintf(<mwsh:strings xml:space="preserve">' 脭虏脰脺脗脢pi= %8.5f'</mwsh:strings>,pi);disp(st)x = 0:10:90; y = [x; sin(x*pi/180)];disp(sprintf(<mwsh:strings xml:space="preserve">'%10.2f  %12.8f\n'</mwsh:strings>,y))echo <mwsh:strings xml:space="preserve">off</mwsh:strings>         </mwsh:code>      </mcode-xmlized>      <mcode-flat>%MATLAB脳路貌q45;% 脳路;% 脳陇掳掳  猫 贸 梅 2001锚10;;clear, echo on;s='abyzABYZ0189';size(s);abs(s);setstr(abs(s));dec2hex(abs(s));s1=[' welcome ',s];s2 =['a=5    ' ; 'b=2    '  ; 'c=a+b*b'];for k=1:3 eval(s2(k,:)), end;st = input(' s=卤铆','s'); eval(st);% for i=1:10 fname='mydata'; eval(['load ',fname,int2str(i)]), end;st=sprintf(' pi= %8.5f',pi);disp(st);x = 0:10:90; y = [x; sin(x*pi/180)];disp(sprintf('%10.2f  %12.8f\n',y));echo off</mcode-flat>      <mcode-count>1</mcode-count>      <img src="q45_01.png"/>      <mcodeoutput>Error using ==&gt; inputCannot call 'input' from evalc.</mcodeoutput>   </cell>   <originalCode>%MATLAB脳路貌q45
% 脳路
% 脳陇掳掳  猫 贸 梅 2001锚10

clear, echo on
s='abyzABYZ0189'
size(s)
abs(s)
setstr(abs(s))
dec2hex(abs(s))
s1=[' welcome ',s]
s2 =['a=5    ' ; 'b=2    '  ; 'c=a+b*b']
for k=1:3 eval(s2(k,:)), end
st = input(' s=卤铆','s'); eval(st)
% for i=1:10 fname='mydata'; eval(['load ',fname,int2str(i)]), end
st=sprintf(' pi= %8.5f',pi);disp(st)
x = 0:10:90; y = [x; sin(x*pi/180)];disp(sprintf('%10.2f  %12.8f\n',y))
echo off</originalCode>   <m-file>q45</m-file>   <filename>E:\matzym\mat缁冧範\鐢佃矾涓句緥璇存槑\q45.m</filename></mscript>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -