09 2020 档案

摘要:%剔除数组中,超过限制的元素 s = [1,2,3] s(s>2)=5 s(s<2)=-5 >>>s=[-5 2 5] %将两个数字首尾相连,合并成一个数字,1 2 3 -> 123 a1 = [11 2 3]'; a2 = [4 5 6]'; % Convert both the numbers 阅读全文
posted @ 2020-09-13 06:02 温酒待君归 阅读(151) 评论(0) 推荐(0)
摘要:clc;clear;close B=zeros(100,100)*1/0; row=10; num=[]; for i=1:row A=[]; A = 1:2:2*i; num=[num length(A)]; B(i,1:length(A))=A; end column=max(num); C=B 阅读全文
posted @ 2020-09-02 08:07 温酒待君归 阅读(494) 评论(0) 推荐(0)

levels of contents