MATLAB Answers


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

Asked by Radu
on 13 Apr 2013

Can somebody help me on fixing this error? I can't seem to figure it out..

Here is the txt file for the matlab program :

  1 Comment

per isakson
on 13 Apr 2013

Use the debugger. Start with

    dbstop if error 

My guess is that an index variable is empty.



No products are associated with this question.

2 Answers

Answer by Image Analyst
on 13 Apr 2013
 Accepted answer

It doesn't run but doesn't give the same error as you got:

Alocarea polilor
Undefined function 'acker' for input arguments of type 'double'.
Error in test3 (line 41)
    k_poli=acker(Asp,Bsp,[s1(k) s2(k)]);kalfa=k_poli(1);kq=k_poli(2); 

However there is a way to fix it. Follow this link:


Answer by Radu
on 13 Apr 2013

This is kinda odd..


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!