请问Julia里面有有没有跟matlab类似的给列向量等间隔第赋予新的值的快速方法; 例如 a = ones(50) a[1:3:50] = 2
这种类型的写法,多谢大家
a = ones(50) a[1:3:50] .= 2
非常感谢
备案号:京ICP备17009874号-2