Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1467
Number of posts: 2144

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Can someone help me write this syntax in matlab? Posted by lovepiano25 on 24 Feb 2012 at 9:28 AM
xi = zeros(1024*655,2)
counter= 1
for y = 1:1:655
for x = 1:1:1024
xi[counter,1] = x
xi[counter,2] = y
counter= counter+1
end
end

I am trying to interpolate points on the image and I am having trouble with the syntax out of the above syntax these two are incorrect in matlab: xi[counter,1] = y; xi[counter,2] = y.

I want matlab to recalculate at a different point thats why I am using the for loop and counter syntax.

how can i correct it? can someone please help me with it?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.