Prev: Microsoft Office 2010 Blue Edition (Fully Activated)...(Softizers.com)
Next: Java Compiler Error
From: Walter Roberson on 8 Aug 2010 00:48 Jim wrote: > fprintf(1, 'Using X column %d, n %d,VAL column > %d\n',... > xColumn, vColumn); Trivial change that you should have been able to get in about 30 seconds of study. fprintf(1, 'Using X column %d, n %d, VAL(%d,%d)\n', xColumn, n, vColumn);
From: Jim on 8 Aug 2010 02:05 Walter, I am facing one final problem. The inputs increase in size,i.e for example: X = [34 87 65;... 59 79 45;... 45 22 73] VAL = [2 5 6 11;... 8 7 9 15 ; 6 4 36 55] As seen in my previous post, in my Matlab script I have a piece of code,as follows: %================== if (xColumn >1) n=2; else n=1; end %=================== to cater for inputs: X = [34 87;... 59 79;... 45 22] VAL = [2 5 6 11;... 8 7 9 15 ] Now since my inputs increase how can I adjust my code so when data input increases gradually,my code can cater for this? thanks for the help jim
From: Jim on 8 Aug 2010 11:43 Imageanalyst, I would like some of you help. Seems Walter is unavailable. Since you are aware of the issue I'm facing. Is it possible you can give me some assitance on this final problem. jim
From: Walter Roberson on 8 Aug 2010 12:10 Jim wrote: > Imageanalyst, I would like some of you help. Seems Walter is unavailable. Walter doesn't understand your question. You said you wanted to use bigger arrays but you failed to say what you wanted to have happen when you used them. You quoted a snippet of code about x and n but it has no comments that would allow one to guess what the general rule is for it that might allow it to extend to larger arrays.
From: ImageAnalyst on 8 Aug 2010 12:19 Honestly, I don't understand it either. I was hoping Walter would. Jim just said he wanted to change what was printed out, but of course that wouldn't change anything else. I'm still foggy on what he wants as arguments, or what he wants as the final result, and since he knows, why he can't do it - it's probably not that difficult once you understand what's needed. Does he just want to pass in a scalar for VAL in the arg list (instead of the whole array) and call the function twice instead of once? Not sure without spending more time trying to decipher it.
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Microsoft Office 2010 Blue Edition (Fully Activated)...(Softizers.com) Next: Java Compiler Error |