Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
About polyxpoly

Subject: About polyxpoly

From: olcay deniyorum

Date: 12 Mar, 2011 18:19:04

Message: 1 of 3

Dear all,
I am using MATLAB 2010B. My question is about polyxpoly function. My code reads data from Excel file. But everytime I get the following error:

??? Undefined function or method 'inputcheck' for input arguments of type
'char'.

Error in ==> polyxpoly at 39
msg = inputcheck('xyvector',x1,y1); if ~isempty(msg); error(msg); end

Error in ==> CAM_TraitementPercage at 276
    R3(i) =
    polyxpoly(RayonDiscret,AngleCoupeDiscret,MatEfforts{i,1}(:,5),Theta);

RayonDiscret,AngleCoupeDiscret,MatEfforts{i,1}(:,5),Theta these are my variables. I have checked them and they all exsist. I am not an expert and I couldn't figure out what I do wrong.
I am using a polyxpoly.m
% Written by: A. Kim
% Copyright 1996-2003 The MathWorks, Inc.
% $Revision: 1.6.4.1 $ $Date: 2003/08/01 18:17:39 $

Does my problem relates to a version of polyxpoly.m or to what?
Please help me about this problem if you have an answer.
Thank you for your time.

PS: If you need I can provide code also related data or more info. Thank you.

Subject: About polyxpoly

From: Sadik

Date: 13 Mar, 2011 18:51:04

Message: 2 of 3

Hi Olcay,

It could be that your input to a function is supposed to be of type double but you are inputting a string. When you are using xlsread to read your data, you may want to make sure you convert them to double before using if they are not. If this doesn't solve your problem, I can take a look at your data and code.

Best.

Subject: About polyxpoly

From: Steven_Lord

Date: 14 Mar, 2011 17:46:33

Message: 3 of 3



"olcay deniyorum" <ikigunde@gmail.com> wrote in message
news:ilgdeo$gjq$1@fred.mathworks.com...
> Dear all,
> I am using MATLAB 2010B. My question is about polyxpoly function. My code
> reads data from Excel file. But everytime I get the following error:
>
> ??? Undefined function or method 'inputcheck' for input arguments of type
> 'char'.
>
> Error in ==> polyxpoly at 39
> msg = inputcheck('xyvector',x1,y1); if ~isempty(msg); error(msg); end

The version of POLYXPOLY included with Mapping Toolbox in release R2010b
does not include this line of code. It appears you are using a much older
version of this function from an older release; you should not be doing so.
If you have Mapping Toolbox included in your installation you should use the
version of POLYXPOLY included with that toolbox.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

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.

Contact us