Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error message "Scalar structure required for this assignment"

663 views
Skip to first unread message

Michael Bell

unread,
Feb 5, 2009, 11:59:42 AM2/5/09
to
When I run this fragment

.....................................

if Scan(1).Reach <= 300
o = 1;
% Left end marked.
Map.Object(o).LeftMarker = 0;

end
.....................................

I get this error message

....................


??? Scalar structure required for this assignment.

Error in ==> C:\MATLAB6p5\work\Develop03.m
On line 31 ==> Map.Object(o).LeftMarker = 0;

..........................................

And I can't see why. I've assigned numerical values to fields of
structs often enough and no problem. Why this time?


--

0 new messages