Matlab assigment Here is my code I am stuck nwith the the 3

Matlab assigment Here is my code. I am stuck nwith the the 3 question.

Save 30.txt files in Asscii files. Please see picture at the buttom. Thanks

figure(\'Color\', [1 1 1]);
x0 = 0.5;
lambda = 3.8;
vectorLength = 1500;

x = zeros(vectorLength,1);
x(1)= x0;

for k = 2:vectorLength,
       x(k) = lambda*x(k-1)*(1-x(k-1));
end

figure(\'Color\', [1 1 1]);
h = plot(x); box off;
xlabel(\'Sample Number\');
ylabel(\'Chaotic Number\');

% 3D

T = 2;
x1 = x(1:end-2*T);
x2 = x(T+1:end-T);
x3 = x(2*T+1:end);

figure(\'Color\', [1 1 1]);
h = plot3(x1,x2,x3);
xlabel(\'x(t)\');
ylabel(\'x(t+T)\');
zlabel(\'x(t+2T)\');

%% 2-Write a script that uses a loop
figure(\'Color\', [1 1 1]);
x0 = 0.5;
lambda = 3.8;
vectorLength = 1500;

x = zeros(vectorLength,1);
x(1)= x0;

for i = 0:30
for k = 2:vectorLength,
       x(k) = lambda*x(k-1)*(1-x(k-1));
end

figure(\'Color\', [1 1 1]);
h = plot(x); box off;
xlabel(\'Sample Number\');
ylabel(\'Chaotic Number\');

% 3D

T = 2;
x1 = x(1:end-2*T);
x2 = x(T+1:end-T);
x3 = x(2*T+1:end);

figure(\'Color\', [1 1 1]);
h = plot3(x1,x2,x3);
xlabel(\'x(t)\');
ylabel(\'x(t+T)\');
zlabel(\'x(t+2T)\');

% Directory create a directory named “chaos\"

files = dir(\'chaos.txt\');
for k = 1:length(files)
    x = load(files(k).name)
    figure(\'Color\', [1 1 1]);
    plot(x);
    pause(1);
end;

end

Solution

High-select functions output whichever input signal has the greatest value. Low-select functions do just the opposite: output whichever input signal has the least value. “Greater-than” and “Less than” symbols mark these two selector functions, respectively, and each type may be equipped to receive more than two input signals.

Sometimes you will see these relays represented in P&IDs simply by an inequality sign in the middle of the large bubble, rather than off to the side in a square. You should bear in mind that the location of the input lines has no relationship at all to the direction of the inequality symbol – e.g., it is not as though a high-select relay looks for the input on the left side to be greater than the input on the right. Note the examples shown below, complete with sample signal values:

Matlab assigment Here is my code. I am stuck nwith the the 3 question. Save 30.txt files in Asscii files. Please see picture at the buttom. Thanks figure(\'Colo
Matlab assigment Here is my code. I am stuck nwith the the 3 question. Save 30.txt files in Asscii files. Please see picture at the buttom. Thanks figure(\'Colo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site