??? Subscript indices must either be real positive integers or logicals.

What should I do if this error message pops up?
??? Subscript indices must either be real positive integers or logicals.

1 Comment

Did you search in this forum for this error message already? It is answered such frequently, that finding a solution should be possible.

Sign in to comment.

 Accepted Answer

In the fellowing expression you missed * x0*(z, instead of x0(z
c1=(v0+x0*(z*n+n*sqrt(z.^2-1)))/(2*n*sqrt(z.^2-1));
You have also, to replace some multiplication by multiplication element/element

3 Comments

Check the 3 lines after the previous line and replace * by .*
??? Did the OP remove essential information from the question?

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!