我想在 Julia 中制作后勤地图,但遇到了困难。我已经知道如何在 Octave 中做到这一点,我怎么能把这段代码转给 Julia?我的难点主要在“map [i,:]”部分。
#Creates a vector of initial conditions and "r"
x=rand(150,1);
r=(2.51:.01:4);
#Transpose the r
r=r';
#Makes 300 times the product of each element of r for each element of x
for i=1:300
x=r.*x.*(1-x);
end
#Makes 200 times the product of each element of r for each element of x and stores each value of x on line i of the "map" matrix
for i=1:200
x=r.*x.*(1-x);
map(i,:)=x;
end
#Plots each column of the map for …Run Code Online (Sandbox Code Playgroud)