Jan 9, 2006 #1 S STOIKOV Full Member level 4 Joined Nov 18, 2005 Messages 236 Helped 8 Reputation 16 Reaction score 2 Trophy points 1,298 Activity points 3,083 matlab attempt to execute script as a function I have an error when trying to plot a polar chart in matlab: % polar plot of z r = 1.2; theta = 10*pi/180; angle = 0:theta:36*theta; mag = r.^(angle/theta); polar(angle,mag) grid title('Polar Plot') Attempt to execute SCRIPT polar as a function. On line 4 ==> polar(angle,mag) Thanks.
matlab attempt to execute script as a function I have an error when trying to plot a polar chart in matlab: % polar plot of z r = 1.2; theta = 10*pi/180; angle = 0:theta:36*theta; mag = r.^(angle/theta); polar(angle,mag) grid title('Polar Plot') Attempt to execute SCRIPT polar as a function. On line 4 ==> polar(angle,mag) Thanks.
Jan 9, 2006 #2 hr_rezaee Advanced Member level 3 Joined Oct 6, 2004 Messages 747 Helped 109 Reputation 218 Reaction score 24 Trophy points 1,298 Location Iran-Mashhad Activity points 4,025 attempt to execute script as a function hi i ran your program in matlab 7 and it worked successfully. i think error belong to "angle" because it is one of matlab functions. use: r = 1.2; theta = 10*pi/180; ang = 0:theta:36*theta; mag = r.^(ang/theta); polar(ang,mag) grid title('Polar Plot')
attempt to execute script as a function hi i ran your program in matlab 7 and it worked successfully. i think error belong to "angle" because it is one of matlab functions. use: r = 1.2; theta = 10*pi/180; ang = 0:theta:36*theta; mag = r.^(ang/theta); polar(ang,mag) grid title('Polar Plot')
Jan 9, 2006 #3 S STOIKOV Full Member level 4 Joined Nov 18, 2005 Messages 236 Helped 8 Reputation 16 Reaction score 2 Trophy points 1,298 Activity points 3,083 attempt to execute script as a function I got the same error. Have installed version 5.3, how can I verify what functions I have available ? You got a polar chart when run it ? Tks.
attempt to execute script as a function I got the same error. Have installed version 5.3, how can I verify what functions I have available ? You got a polar chart when run it ? Tks.
Jan 9, 2006 #4 hr_rezaee Advanced Member level 3 Joined Oct 6, 2004 Messages 747 Helped 109 Reputation 218 Reaction score 24 Trophy points 1,298 Location Iran-Mashhad Activity points 4,025 attempt to execute script as a function: you can search in matlab directory for file <function_nmae>.m . yes i have a graph.
attempt to execute script as a function: you can search in matlab directory for file <function_nmae>.m . yes i have a graph.
Jan 9, 2006 #5 A Atzakas Newbie level 6 Joined Nov 22, 2005 Messages 11 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,383 attempt to execute script as a function matlab Try changing the name of your script file. Use something else instead of 'polar'
attempt to execute script as a function matlab Try changing the name of your script file. Use something else instead of 'polar'
Jan 9, 2006 #6 S STOIKOV Full Member level 4 Joined Nov 18, 2005 Messages 236 Helped 8 Reputation 16 Reaction score 2 Trophy points 1,298 Activity points 3,083 attempt to execute script input as a function. it works by changing the name of the file as you suggested. Thanks to all.
attempt to execute script input as a function. it works by changing the name of the file as you suggested. Thanks to all.