Thread Subject: Error message "Scalar structure required for this assignment"

Subject: Error message "Scalar structure required for this assignment"

From: Michael Bell

Date: 5 Feb, 2009 16:59:42

Message: 1 of 1

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?


--

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com