Respected sir,I have a problem of this type R(x,1)=c/2v sech(cx/v) and I have to find R(x,1) for x=0,1,2,3,4........ kindly help me in solving this.thanks

1 view (last 30 days)
Respected sir,I have a problem of this type
R(x,1)=c/2v sech(cx/v)
and I have to find R(x,1) for x=0,1,2,3,4........ kindly help me in solving this. thanks.

Answers (1)

Walter Roberson
Walter Roberson on 27 Aug 2015
x = 0 : 10;
R1 = c/(2*v) * sech(c*x/v);
Then R1(x+1,1) will correspond to your R(x,1) -- for example your R(5,1) would be found at R1(6,1). This offset of 1 is due to the fact that MATLAB indexing starts at 1 so R1(1) would be for x = 0, R1(2) would be for x = 1, and so on.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!