Risposto

How to avoid effect of number of extra zeros after decimal point on the equality between two arrays?

Hi, I also tried like you and also got wrong result. Later I checked for y1(201) where the ans=0 and I got correct result. I...

How to avoid effect of number of extra zeros after decimal point on the equality between two arrays?

Hi, I also tried like you and also got wrong result. Later I checked for y1(201) where the ans=0 and I got correct result. I...

circa 4 anni fa | 0

Risposto

how to generate chromosome?

Is maybe this what are you looking for? chromo=40; gene=20; for i=1:1:chromo for j=1:1:gene pop=randi([0,1]); ...

how to generate chromosome?

Is maybe this what are you looking for? chromo=40; gene=20; for i=1:1:chromo for j=1:1:gene pop=randi([0,1]); ...

circa 4 anni fa | 1

| accettato

Risposto

Can anyone help this graph matlab code please?

Hi, is maybe this code what are you looking for? x=-3:0.01:3; y=NaN(size(x)); L=x<=-2; y(L)=0; L=x>-2 & x<0; y(L)=x(L)+2;...

Can anyone help this graph matlab code please?

Hi, is maybe this code what are you looking for? x=-3:0.01:3; y=NaN(size(x)); L=x<=-2; y(L)=0; L=x>-2 & x<0; y(L)=x(L)+2;...

circa 4 anni fa | 1

Risposto

How to add a second Y axis to a bar chart?

Hi! I recomend you that you use plotyy. Below you have an example. [ax,h1,h2] = plotyy(f,[a',b',d',U'],f,I); set(ax(1),'...

How to add a second Y axis to a bar chart?

Hi! I recomend you that you use plotyy. Below you have an example. [ax,h1,h2] = plotyy(f,[a',b',d',U'],f,I); set(ax(1),'...

circa 4 anni fa | 0

Domanda

Plot for different conditions of function

Hi everyone, i have the task that I have to make plot for different conditions y(x) for different value x. The following co...

circa 4 anni fa | 1 risposta | 0

Risposto

How do I save my work

Hi! Save the code and after you run it you have the work. Other option is that you do files with answers if you need it. fl=(...

How do I save my work

Hi! Save the code and after you run it you have the work. Other option is that you do files with answers if you need it. fl=(...

circa 4 anni fa | 0

Risposto

Sidewind or disturbance for automotive

Hi, welcome to Matlab. Maybe this will somehow help you: https://www.mathworks.com/matlabcentral/fileexchange/69001-simulati...

Sidewind or disturbance for automotive

Hi, welcome to Matlab. Maybe this will somehow help you: https://www.mathworks.com/matlabcentral/fileexchange/69001-simulati...

circa 4 anni fa | 0

Risposto

How to call multiple subplots in one code?

Maybe you should try different if scenario==1 figure(1) subplot (1,2,1) plot(temp,'k:') figure(2) subplot(1,2,1) plot(w...

How to call multiple subplots in one code?

Maybe you should try different if scenario==1 figure(1) subplot (1,2,1) plot(temp,'k:') figure(2) subplot(1,2,1) plot(w...

circa 4 anni fa | 0

| accettato