How to resolve Error-"In an assignment A(:)=B, the no of element in A & B must be same

Actually m having some curs.Data values and i have to put it in A(i) in each iteration and loop is running 100 times.. i can run the code some times it perfectly runs some time shows this error !as above. How it can be resolved!! Thanks for help in advance

3 Comments

??? In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in ==> tic1s145 at 19 s(i)=(curs.Data);
actually i m matching the data in workspace variable with the data in the database table and i want to fetch the curs data in each loop so please help me thanx
Sometimes curs.Data is matching multiple values. We need your code to figure out why.

Answers (0)

This question is closed.

Asked:

on 4 Aug 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!