↑ 收起筛选 ↑
mAtlAB输出语句
2020-06-28

输入语句输入数值?x=input(please input a number:)please input a number:22x = 22输入字符串?x=input(please input a string:,s)please input a string:this is a string x = this is a string

fprintf('%f',a)

if不是循环语句,只执行一次,其执行完一次后i=2,i-1=1================================================= 正确的做法:i=0; for m=0.2:0.1:1.1 i=i+1; end i=============== 输出i=10

>> name='xxx';>> fprintf('我是%s\n',name);

延伸阅读: