Community Profile

photo

ravi shukla


Last seen: 1 month 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...

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

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

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

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

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

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

3 years 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

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

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

3 years 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

3 years 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

3 years 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) ...

3 years 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) && (...

3 years ago | 1 answer | 0

1

answer