matlab 基础题 这个怎么写code!Write exactly one line of code to create each of the following vectors. cc = 1 4 9 16 25 36 49 64 81 100dd = 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/05 00:20:47
matlab基础题这个怎么写code!Writeexactlyonelineofcodetocreateeachofthefollowingvectors.cc=149162536496481100d

matlab 基础题 这个怎么写code!Write exactly one line of code to create each of the following vectors. cc = 1 4 9 16 25 36 49 64 81 100dd = 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2
matlab 基础题 这个怎么写code!
Write exactly one line of code to create each of the following vectors. 
cc = 1 4 9 16 25 36 49 64 81 100

dd = 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2

matlab 基础题 这个怎么写code!Write exactly one line of code to create each of the following vectors. cc = 1 4 9 16 25 36 49 64 81 100dd = 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2
cc = [(1:10)]^2
dd = [zeros(1,12) 2*ones(1,5)]