photo

ravi shukla


Last seen: 3 maanden ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 3
  • Thankful Level 2

View badges

Feeds

View by

Question


in the below mentioned code, i get an error in finding some elements (not in all) : 0×1 empty double column vector
m=41; n=51; dx=0.0500; dy=0.0500; for i=1:m for j=1:n x(i,1)=(i-1)*dx; y(j,1)=(j-1)*dy; end e...

meer dan een jaar ago | 2 answers | 0

2

answers

Question


I am using surf command inside time loop. And I want my initial reference surface.
I am using surf command inside time loop. And my initial surface is receiving some input. I want to update the surface but with...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


Interpolation of given data in 2d domain
x=0,4,6,9,11,17,20 y=0,2,3,7,10,15 x is (7,1) vector & y is (6,1) z will have (known data) 7*6=42 values in this domain. h...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


I am using plot. And I want to save my continuously changing plot in time loop. I have applied this code but error is coming regarding the frame rates. Please help.
%Initialize video myVideo = VideoWriter('myVideoFile'); %open video file myVideo.FrameRate = 6; %can adjust this, 5 - 10 work...

bijna 2 jaar ago | 0 answers | 0

0

answers

Question


I have one for time loop under which a caclulation taking place for a 1d domain (let say 1:n). I want to plot my data against 1d domain for all times.
for t=0:2:6 for i=1:n %some calculation end % Let say this calculat...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


Set limit for vertical or z dimension in surfl command
I am plotting my water depth in a physical domain over time with surfl(depth) where depth is a two d matrix. I want to fix verti...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


how to terminate loop when i get desired result
i am sloving a matrix, which is in time loop (for). I want this time loop stop and present final output once the output matrix s...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


fortran do loop to matlab
DO 7 J = 1, JMAX something DO 6 I = 1, IMAX something 6 CONTINUE 7 CONTINUE

ongeveer 4 jaar ago | 1 answer | 0

1

answer

Question


limiting the Substraction Difference
i am running a code, in which there may arise a situation when my denominator might get a value =0 (and this denominator is actu...

ongeveer 4 jaar ago | 1 answer | 0

1

answer

Question


Unrecognized variable x error
for k=n-1:1 x(n)=cnew(n)/dnew(n) x(k)=(cnew(k)-a(k)*x(k+1))/d(k) end Tnew(i,j)=x(i) P.S. cnew and all others ...

ongeveer 4 jaar ago | 1 answer | 0

1

answer

Question


how to assign a particular value and show it on a intersection point
axis([0 4 0 5]) for i=1:n for j=1:m mapshow(i,j,'Marker','*') end end

meer dan 4 jaar ago | 0 answers | 0

0

answers

Question


how to find XLINE AND YLINE intersection
n=3; m=4; for i=1:n xline(i); for j=1:m yline(j); end end

meer dan 4 jaar ago | 1 answer | 0

1

answer

Question


Why the third else if condition.. where i==1 && j==m went unexecuted
A=zeros(12,1); n=3; m=4; for i=1:n for j=1:m if (i==1) && (j==1) A(1,1)=1; elseif (i==1) ...

meer dan 4 jaar ago | 1 answer | 0

1

answer

Question


why elseif (i==1) && j==m condition went unexecuted?
A=zeros(12,1); n=3; m=4; for i=1:n for j=1:m if i==1 && j==m A(1,1)=1; elseif (i==1) && (...

meer dan 4 jaar ago | 1 answer | 0

1

answer