From: arkedia on 5 Aug 2010 10:31 i am creating a m.file and i used the following yq =Y(1:[size(b),1]); note Y is vector of order nX1 , b is smaller vector of order qX1 the problem is my m file return error message that Y is Undefined command/function
From: Walter Roberson on 5 Aug 2010 10:55 arkedia wrote: > i am creating a m.file and i used the following yq =Y(1:[size(b),1]); > > note Y is vector of order nX1 , b is smaller vector of order qX1 > the problem is my m file return error message that Y is Undefined > command/function Is this a function file or a script? If it a script then have you defined Y before you execute the script? If it is a function, then is Y being passed in on the function header and are you supplying Y as an argument when you call the function? By the way, instead of using [size(b),1] you probably mean size(b,1)
From: Joseph on 5 Aug 2010 10:56 First of all, your syntax should be yq = Y(1:length(b)); Also, do you have your function 'Y' declared correctly? Is it within the current matlab folder? "arkedia " <blue_arkedia(a)hotmail.com> wrote in message <i3ehv9$7cj$1(a)fred.mathworks.com>... > i am creating a m.file and i used the following > yq =Y(1:[size(b),1]); > > note Y is vector of order nX1 , b is smaller vector of order qX1 > the problem is my m file return error message that Y is Undefined command/function
|
Pages: 1 Prev: Simulink-dSPACE-RS232 - send an ASCII command Next: Really need help to speed up piece of code |