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/05/03 17:39:15
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 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)]