Community Profile

photo

Advait Sinha


2019년부터 활동

Followers: 0   Following: 0

통계

Feeds

보기 기준

질문


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...

거의 5년 전 | 답변 수: 0 | 0

0

답변

질문


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 ...

거의 5년 전 | 답변 수: 2 | 0

2

답변

답변 있음
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?
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...

거의 5년 전 | 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];
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...

거의 5년 전 | 답변 수: 2 | 0

2

답변

질문


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...

거의 5년 전 | 답변 수: 0 | 0

0

답변

질문


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...

거의 5년 전 | 답변 수: 0 | 0

0

답변

질문


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;...

거의 5년 전 | 답변 수: 1 | 1

1

답변

질문


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...

거의 5년 전 | 답변 수: 1 | 0

1

답변