作业帮 > 综合 > 作业

matlab 基础题 这个怎么写code!

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/17 23:53:00
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
cc = [(1:10)]^2
dd = [zeros(1,12) 2*ones(1,5)]