iLMS知識社群(Sites)師生部落格(Blogs)朝陽首頁(Homepage)TronClass教學平台Login
Position: 曹晉翊 > Matlab
123
by 曹晉翊 2017-10-19 11:46:35, Reply(0), Views(247)
clc;
clear;
A=1:1000;
A= reshape(A,10, 100);
sum(A(1):A(1000))
A(end,:)=[];
sum(A(1):A(900))
A(end,:)=[];
sum(A(1):A(800))
A(end,:)=[];
sum(A(1):A(700))
A(end,:)=[];
sum(A(1):A(600))
A(end,:)=[];
sum(A(1):A(500))
A(end,:)=[];
sum(A(1):A(400))
A(end,:)=[];
sum(A(1):A(300))
A(end,:)=[];
sum(A(1):A(200))
A(end,:)=[];
sum(A(1):A(100))
Reply