matlab 基础题 这个怎么写code!
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/06/29 02:56:49
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
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!](/uploads/image/z/18059001-33-1.jpg?t=matlab+%E5%9F%BA%E7%A1%80%E9%A2%98+%E8%BF%99%E4%B8%AA%E6%80%8E%E4%B9%88%E5%86%99code%21)
cc = [(1:10)]^2
dd = [zeros(1,12) 2*ones(1,5)]
dd = [zeros(1,12) 2*ones(1,5)]