Home > Matlab Error > Matlab Error Invalid First Data Argument

Matlab Error Invalid First Data Argument

Contents

Log In to answer or comment on this question. Learn MATLAB today! Whenever I attempt to run the code I get the "Invalid first argument" error and it directs me to line 14: (plot(x,y,'s','c')). Error using ==> plot Invalid first data argument Asked by Mini Me Mini Me (view profile) 25 questions 11 answers 0 accepted answers Reputation: 0 on 13 May 2014 Latest activity his comment is here

But using eval is not recommended. Bum Bum (view profile) 9 questions 0 answers 0 accepted answers Reputation: 0 on 21 Feb 2013 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/64455#comment_131405 'Monthly_Mean_Precip_%s' is 12x1 double. Pay special attention to Class. Jun 4 '15 at 12:08 3 You would need eval: something like eval(['plot(' name{1} ')']).

Matlab Error Using Plot Invalid Second Data Argument

Log in or Sign up here!) Show Ignored Content Know someone interested in this topic? Based on your location, we recommend that you select: . The ball was underthrown') elseif x_dis > H2 title('The ball was overthrown') over = x_dis-target_dis; output = 3; disp('3. Close × Select Your Country Choose your country to get translated content where available and see local events and offers.

Reload the page to see its updated state. Newer Than: Search this thread only Search this forum only Display results as threads More... Join the conversation Toggle Main Navigation Log In Products Solutions Academia Support Community Events Contact Us How To Buy Contact Us How To Buy Log In Products Solutions Academia Support Community Plot Matlab Why do I keep getting errors?

Apply Today MATLAB Academy New to MATLAB? Matlab Plot Cell Array United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc. Apply Today MATLAB Academy New to MATLAB? https://www.mathworks.com/matlabcentral/answers/268311-error-invalid-first-data-argument-when-attempting-to-plot United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc.

Error using ==> plot Invalid first data argument Error in ==> guessTraj at 89 plot('b-') And here is my code: Code (Text): function [output]= guessTraj(target_dis) target_dis=input('distance :'); error = sqrt(target_dis); real Reload the page to see its updated state. What does it look like as a char? Everyone who loves science is here!

Matlab Plot Cell Array

plot(LuminousFlux,Incandescent,'^b','MarkerSize',12,'MarkerFaceColor','b') hold on plot(LuminousFlux,CFL,'sg','MarkerSize',12,'MarkerFaceColor','g') plot(LuminousFlux,LED,'dk','MarkerSize',12)hold off Tags plot Products No products are associated with this question. Menu Log in or Sign up Contact Us Help About Top Terms and Rules Privacy Policy © 2001-2016 Physics Forums Als u Google Groepsdiscussies wilt gebruiken, schakelt u JavaScript in via Matlab Error Using Plot Invalid Second Data Argument gca. Cell To Vector Matlab I honestly have no idea what this means.

Join the conversation current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. this content yaang, Nov 18, 2010 Nov 19, 2010 #3 p1ayaone1 >> help plot p1ayaone1, Nov 19, 2010 (Want to reply to this thread? Not the answer you're looking for? How can I call the hiring manager when I don't have his number? Cell To Double Matlab

Related Content Join the 15-year community celebration. Better use a cell array or matrix instead of all those variables –Luis Mendo Jun 4 '15 at 12:09 3 as @LuisMendo says a struct, matrix or a struct and Stay logged in Physics Forums - The Fusion of Science and Community Forums > Mathematics > Math Software and LaTeX > Menu Forums Featured Threads Recent Posts Unanswered Threads Videos Search weblink Play games and win prizes!

What exactly do you want to do with plot('b-') ? And by looking at the edited code you posted, since my x and y values are multi-column vectors, by using the 'b' (as I did) it was trying to do the Is there a mutual or positive way to say "Give me an inch and I'll take a mile"?

Learn MATLAB today!

more hot questions question feed lang-matlab about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Related Content Join the 15-year community celebration. Error using ==> plot Invalid first data argument error Asked by Mekala balaji Mekala balaji (view profile) 65 questions 1 answer 0 accepted answers Reputation: 0 on 31 Oct 2014 Latest asked 1 year ago viewed 141 times active 1 year ago Visit Chat Related 91Automatically plot different colored lines58Changing Fonts in Matlab Plots0extract the title from a cell array?2Plotting from 3D

What a resource! Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLABĀ® can do for your career. Related Content Join the 15-year community celebration. check over here What happens to hp damage taken when Enlarge Person wears off?

Opportunities for recent engineering grads. Play games and win prizes! United States Patents Trademarks Privacy Policy Preventing Piracy Terms of Use © 1994-2016 The MathWorks, Inc. An Error Occurred Unable to complete the action because of changes made to the page.