Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab 向虚线螺旋图添加噪波_Matlab_Image Processing_Spiral - Fatal编程技术网

Matlab 向虚线螺旋图添加噪波

Matlab 向虚线螺旋图添加噪波,matlab,image-processing,spiral,Matlab,Image Processing,Spiral,如何在这个matlab螺旋图中添加噪声 t = linspace(0,6*pi,1000); x = t.*cos(t); y = t.*sin(t); h = plot(x,y); set(h(1),'linewidth',20); set(h(1),'LineStyle','--'); 用k来调整噪音的振幅。而不是k*rand(大小(t))-k/2? k = 0.2; x = t.*cos(t) + k*(rand(size(t))-0.5); y = t.*sin(t) +

如何在这个matlab螺旋图中添加噪声

 t = linspace(0,6*pi,1000);
 x = t.*cos(t);
 y = t.*sin(t);
 h = plot(x,y);
 set(h(1),'linewidth',20);
 set(h(1),'LineStyle','--');
k
来调整噪音的振幅。

而不是
k*rand(大小(t))-k/2
k = 0.2;
x = t.*cos(t) + k*(rand(size(t))-0.5);
y = t.*sin(t) + k*(rand(size(t))-0.5);