PART 11 PLOT SKELETON OF LORENZk=27;L =endvalsk-1startvalsk;plotVL01VL02Color25 25 25Linewidth15 hold onL1=startvalskendvalsk;plotVL11VL12rLinewidth15L2 =endvalskstartvalsk+1;plotVL21VL22Color25 25 25
Sorry, there are some errors in the code you provided. Here is the corrected version:
L = endvals(k-1):startvals(k);
plot(V(L,1), V(L,2), 'Color', [.25 .25 .25], 'LineWidth', 1.5);
hold on;
L1 = startvals(k):endvals(k);
plot(V(L1,1), V(L1,2), 'r', 'LineWidth', 1.5);
L2 = endvals(k):startvals(k+1);
plot(V(L2,1), V(L2,2), 'Color', [.25 .25 .25], 'LineWidth', 1.5);
L3 = startvals(k+1):startvals(k+1)+109;
plot(V(L3,1), V(L3,2), 'r--', 'LineWidth', 1.5);
This code will plot the skeleton of the Lorenz system with k=27. The V variable contains the data points for the Lorenz system, and startvals and endvals are the indices indicating the start and end points of each segment in the skeleton plot
原文地址: https://www.cveoy.top/t/topic/ihec 著作权归作者所有。请勿转载和采集!