Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1494
Number of posts: 2174

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

Report
convert vector into 2D matrix Posted by blackie0909 on 24 Aug 2008 at 1:05 PM
hello,i m matlab newbie here. i wanted to ask how to convert vector into 2D array?Now i have an ECG signal in mat.file called MIT100, here's my code:

load MIT100
data=MIT100(1:65536);
plot(data)

then, a one dimensional image will appear, how to convert the (1:65536) into a 256x256 image because i need 256x256 image format to do image compression. Thanks.



 

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.