早教吧 育儿知识 作业答案 考试题库 百科 知识分享

matlab如何给一组变量赋值?t=[t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20,t21,t22,t23,t24,t25,t26,t27,t28,t29,t30,t31]将1:31分别赋值,使t1=1,t2=2……t31=31

题目详情
matlab如何给一组变量赋值?
t=[ t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26, t27, t28, t29, t30, t31]
将1:31分别赋值,使t1=1,t2=2……t31=31
▼优质解答
答案和解析
从编程的角度没有这个必要的,定义之后无非是要用它嘛,用t11和t(11)表示同一个数毫无区别!