![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/8795068_1559576036147_DEF.jpg)
Advait Sinha
Followers: 0 Following: 0
Statistica
RANK
29.904
of 297.016
REPUTAZIONE
1
CONTRIBUTI
7 Domande
2 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
1
RANK
of 157.725
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
I want to plot z such that z(:,1)= [0;1]; but how do I implement that in this code
close all; dt = 0.1;%time step u1=1; u2=2; c = u2-u1; u = sign(u2-u1); z=u*c; k=0.12; m=2.21;%initial parameters...
oltre 5 anni fa | 0 risposte | 0
0
risposteDomanda
How can I put the value of z in a matrix and later call it as z(1,i) and z(2,i) in the while loop?
close all; dt = 0.1;%time step u1=1; u2=1; c = u2-u1; u = sign(u2-u1); z = u*c; k=0.12; m=2.21;%initial parameters ...
oltre 5 anni fa | 2 risposte | 0
2
risposteHow can I put the value of z in a matrix and later call it as z(1,i) and z(2,i) in the while loop?
But then what would happen to the other equations that also make use of z. Also would I need to implement z as a matrix before t...
oltre 5 anni fa | 0
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 2-by-1. Error in linear2d (line 7) z(:,1)=[0;1];
I am new to matlab so I’m finding it confusing and hard
oltre 5 anni fa | 0
Domanda
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 2-by-1. Error in linear2d (line 7) z(:,1)=[0;1];
close all; dt = 0.1;%time step u1=1; u2=1; c = u2-u1; u = sign(u2-u1); z(:,1)=[0,1]; k=0.12; m=2.21;%initial paramet...
oltre 5 anni fa | 2 risposte | 0
2
risposteDomanda
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='. in column 20
close all; dt = 0.464;%time step u1=1; u2=1; k=0.12; m=2.21;%initial parameters v=1; a=1.4; tend=100; t=0; i...
oltre 5 anni fa | 0 risposte | 0
0
risposteDomanda
How can i implement u1(i)- u2(i) in the while loop instead of u(i) and plot the graph against that too instead of u
close all; dt = 0.464;%time step u=1; k=0.12; m=2.21;%initial parameters v=1; a=1.4; tend=100; t=0; i=1 whil...
oltre 5 anni fa | 0 risposte | 0
0
risposteDomanda
Undefined function sgn(z)
close all; dt = 0.01;%time step k=1; m=1;%initial parameters u1 =1; u2 =2; z = u2-u1; c = sgn(z); h = c*z; v=1; a=1;...
oltre 5 anni fa | 1 risposta | 1
1
rispostaDomanda
Index exceeds the number of elements (1)
close all; dt = 0.01;%time step k1=1; m=1;%initial parameters u1 =2; u2 =1; v1=2; a1=1; tend=10; t=0; i=1 whi...
oltre 5 anni fa | 1 risposta | 0