From: Matt J on 6 Aug 2010 16:10 "Nehal " <arnab620(a)yahoo.com> wrote in message <i3hpmj$r6r$1(a)fred.mathworks.com>... > actually I was trying.... > > G = [image1 image2 image3 ..... image1500] > > where > image1 = [ 1st element of 1st image > 2nd element of 1st image > 3rd element of 1st image > . > . > last element of 1st image ] > > image1 has only 1 column and G has 1500 columns. =============== Yes. That's what the code I proposed produces.
From: Nehal on 6 Aug 2010 16:18 "Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <i3hq7h$212$1(a)fred.mathworks.com>... > "Nehal " <arnab620(a)yahoo.com> wrote in message <i3hpmj$r6r$1(a)fred.mathworks.com>... > > > actually I was trying.... > > > > G = [image1 image2 image3 ..... image1500] > > > > where > > image1 = [ 1st element of 1st image > > 2nd element of 1st image > > 3rd element of 1st image > > . > > . > > last element of 1st image ] > > > > image1 has only 1 column and G has 1500 columns. > =============== > > Yes. That's what the code I proposed produces. oh.. yes.. but some how.. variable "G" is not showing in my workspace... But i need it there because of my further process... what's the problem..? why is it not showing there..?
From: James Tursa on 6 Aug 2010 17:03 "Nehal " <arnab620(a)yahoo.com> wrote in message <i3hqlt$1el$1(a)fred.mathworks.com>... > > oh.. yes.. but some how.. variable "G" is not showing in my workspace... > But i need it there because of my further process... > what's the problem..? why is it not showing there..? Did you bother to return it? e.g., change function test to function G = test James Tursa
From: Nehal on 6 Aug 2010 23:55 "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <i3hta9$jbi$1(a)fred.mathworks.com>... > "Nehal " <arnab620(a)yahoo.com> wrote in message <i3hqlt$1el$1(a)fred.mathworks.com>... > > > > oh.. yes.. but some how.. variable "G" is not showing in my workspace... > > But i need it there because of my further process... > > what's the problem..? why is it not showing there..? > > Did you bother to return it? e.g., change > > function test > > to > > function G = test > > > James Tursa a little progress... now there shows a variable... but it's not "G".. the variable it shows: "ans". I was expecting "G". can you help me..?
From: ImageAnalyst on 7 Aug 2010 00:08 On Aug 6, 11:55 pm, "Nehal " <arnab...(a)yahoo.com> wrote: > a little progress... now there shows a variable... but it's not "G".. the variable it shows: "ans". > I was expecting "G". > can you help me..? ----------------------------------------------------- If you just call test, that's what it will say since you didn't stuff the return value into any array. If you had said g1 = test() then it would have said g1 = that number instead of ans. ans is short for "answer" and is the default name given to return values when you don't accept them into any variable, but simply just call the function. Make sense?
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Saving a portion of pathname as a string? Next: Decimation Problem |