摘要:
1.while condition action end 2.输入三个正数 n=3;for i=1:n inputnum=input(['enter a positive number[#' num2str(i) ']:']) while inputnum<=0 fprintf('You enter 阅读全文
摘要:
注意在写语句时,注意空格与缩进 1.if语句 if condition action; end 2.if-else语句 if condition1 action1 else action2 end 3.elseif语句 if condition1 action1 elseif condition2 阅读全文
摘要:
一、grid on 与 grid off gird on 显示网格 gird off 关闭网格显示 二、legend() 显示图标 legend('Line 1','Line 2') 三、绘制柱状图 bar(1:10,randi([1,10],[1,10])) 四、数据的保存和读取 1.保存数据 m 阅读全文