Lorenz System Skeleton Plot (k=27) - MATLAB Code Example
%% PART 11: PLOT SKELETON OF LORENZ\u003ck\u003d27\u003b\n\uL \u003dendvals(k-1):startvals(k)\u003b\n\nplot(V(L,1),V(L,2),'Color',[.25 .25 .25],'Linewidth',1.5)\u003b\n\nhold on\u003b\n\nL1\u003dstartvals(k):endvals(k)\u003b\n\nplot(V(L1,1),V(L1,2),'r','Linewidth',1.5)\u003b\n\nL2 \u003dendvals(k):startvals(k+1)\u003b\n\nplot(V(L2,1),V(L2,2),'Color',[.25 .25 .25],'Linewidth',1.5)\u003b\n\nL3\u003dstartvals(k+1):startvals(k+1)+109\u003b\n\nplot(V(L3,1),V(L3,2),'r--','Linewidth',1.5)\u003b\n\nSorry, there are some errors in the code you provided. Here is the corrected version:\n\npython\nL \u003dendvals(k-1):startvals(k)\u003b\nplot(V(L,1), V(L,2), \'Color\', [.25 .25 .25], \'LineWidth\', 1.5)\u003b\n\nhold on\u003b\n\nL1 \u003dstartvals(k):endvals(k)\u003b\nplot(V(L1,1), V(L1,2), \'r\', \'LineWidth\', 1.5)\u003b\n\nL2 \u003dendvals(k):startvals(k+1)\u003b\nplot(V(L2,1), V(L2,2), \'Color\', [.25 .25 .25], \'LineWidth\', 1.5)\u003b\n\nL3 \u003dstartvals(k+1):startvals(k+1)+109\u003b\nplot(V(L3,1), V(L3,2), \'r--\', \'LineWidth\', 1.5)\u003b\n\n\nThis 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/pZt0 著作权归作者所有。请勿转载和采集!