Brace indexing not supported for variable of this type error

I am running a display code for Matlab network expansion problem. This problem Variables are initialized as:

Coll=null(1);v=null(1); 

The section with the error:

nco=size(Coll,1); oc = Coll {nco,1}; 

oc line gives the brace indexing error.

I tried changing braces to parentheses,the error changed to index in position 2exceeds array bound. Coll is a 1×0 double while nco is a 1×1 double on my workspace.

I also tried with

oc = [Coll{nco,1}]; 

This terminates the problem but does not a sign to display.

3

Related questions 4 Maven2 Eclipse integration 10 Maven eclipse does not add a dependency 2 New project with Maven2 Related questions 4 Maven2 Eclipse integration 10 Maven eclipse does not add a dependency 2 New project with Maven2 1 Eclipse project and maven dependency 1 maven build dependencies in Eclipse, multiple projects 16 How do Java and Maven builders work together in eclipse? 1 Issus with building the java project using maven2 0 mvn eclipse project generation missing one dependency 9 How to (safely) remove unnecessary Maven dependencies in Eclipse? 1 Maven dependency in eclipse Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like