how to do zero padding in middle
이전 댓글 표시
I have some text files.. All text file contains two columns. both of 480 rows. But some text files have some rows missing.. In one of them after 63rd row directly there is 86th row.. So, total rows get reduced to 450. Now i want to convert this rows in again 480rows by zero padding from 64th to 85th.. So, how to do..? This text file is attached here.. http://www.fileconvoy.com/dfl.php?id=g4a8afb397a4e11ed999171111e1b74b570928a6b1
댓글 수: 3
Image Analyst
2012년 11월 21일
편집: Image Analyst
2012년 11월 21일
Norton won't let me:
Malicious Web Site Blocked
You attempted to access:
This is a known malicious web site. It is recommended that you do NOT visit this site. The detailed report explains the security risks on this site.
For your protection, this web site has been blocked. Visit Symantec to learn more about phishing and internet security.
Threat Report
Total threats found: 1
Drive-By Downloads (what's this?)
Threats found: 1 Here is a complete list: (for more information about a specific threat, click on the Threat Name below) Threat Name: Malicious Site: Malicious Domain Request 2 Location: <http://fileconvoy.com>
Lalit Patil
2012년 11월 21일
답변 (1개)
Walter Roberson
2012년 11월 21일
0 개 추천
Consider using textscan() with the MissingValue option set to 0
댓글 수: 5
Lalit Patil
2012년 11월 21일
Walter Roberson
2012년 11월 21일
Ah, what do the column sequence numbers look like ?
Lalit Patil
2012년 11월 21일
편집: Lalit Patil
2012년 11월 21일
Walter Roberson
2012년 11월 21일
If the values can go at the end then if M is what you read the data in to,
M(end+1:end+length(missingvalues), 1) = missingvalues;
and then write the file out in an appropriate format.
Lalit Patil
2012년 11월 21일
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!