The expression to the left of the equals sign is not a valid target error
Show older comments
??? Error: File: Plot_dist_az_vary.m Line: 39 Column: 8 The expression to the left of the equals sign is not a valid target for an assignment.
this line of code is where the error is:
disleg = {'0.1595km 0.1595km 0.1595km 0.1595km','0.2307km 0.2307km 0.2307km 0.2307km','0.2368km 0.2368km 0.2368km 0.2368km','0.2389km 0.2389km 0.2389km 0.2389km','0.2515km 0.2515km 0.2515km 0.2515km','0.2859km 0.2859km 0.2859km 0.2859km','0.2982km 0.2982km 0.2982km 0.2982km','0.4011km 0.4011km 0.4011km 0.4011km','0.4826km 0.4826km 0.4826km 0.4826km','0.6827km 0.6827km 0.6827km 0.6827km'};
but it is all one line. If i comment it out then the error goes to the next line and then the next where i know they definitely are not wrong.
5 Comments
Sean de Wolski
on 24 Jan 2013
What's the line before it?
Azzi Abdelmalek
on 24 Jan 2013
Edited: Azzi Abdelmalek
on 24 Jan 2013
This line is correct. Show us other lines
Mason
on 24 Jan 2013
Mason
on 24 Jan 2013
Mason
on 24 Jan 2013
Accepted Answer
More Answers (0)
Categories
Find more on Package MATLAB Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!