Questions tagged [pad]

This tag is currently a synonym for [padding]. For other purposes, please consider [gamepad] or [ipad] or [pad-xml] instead.

Padding is the process of fitting a given data type (usually a number, image, array, or string) to a particular size by adding data to it without changing its overall meaning.

132 questions
0
votes
1 answer

How to align/pad text in Java Android

I want to align my text in a way like a table, and I want it to be 3 centered text views. Thing is, the TableLayout is a premade set up, and I don't know how many items I'm about to enter inside, so I have a ScrollView Layout before the main…
Ori Frish
  • 409
  • 7
  • 21
0
votes
2 answers

Take off pads with OpenCV

I have to translate from Matlab to C this code: % take off the pads x = (1 + padSize) : (rows - pad8Size); y = (1 + padSize) : (cols - padSize); rpad=rpad(x,y); 1st and 2nd create 2 array, but I don t know how I have to delete it from…
Elvio
  • 17
  • 7
0
votes
0 answers

Pad array with last element

I have a matrix of a Mat object, I have to pad bigger Mat object with the last elements of every rows and cols of the original object around the original array. In This is the way I tried but padding with all zeros(I have to change it). Mat…
Elvio
  • 17
  • 7
0
votes
2 answers

MatLab - Padding arrays with something that wont be valued?

I'm comparing arrays of different sizes to find matches Results = (DistancesB >= DistancesA * 0.1 & DistancesB < DistancesA * 1.5); % anything in this thres is matched the arrays need to be same size, so padarray with 0. but now the 0's are being…
Tom
  • 37
  • 1
  • 7
0
votes
1 answer

What is the purpose of "post" in Matlab's padarray function?

In Matlab, there is a function called padarray. I didn't understand the "post" value of the function. Can you describe it in terms of an example?
Simplicity
  • 47,404
  • 98
  • 256
  • 385
0
votes
2 answers

Java integer part padding

Sorry I was initially wanting to do it in php PHP integer part padding, but realised I will do it in Java in another part of code So I need to format numbers with the integer part at least 2 chars 2.11 -> 02.11 22.11 -> 22.11 222.11 ->…
user1125394
-1
votes
1 answer

What value to set for max_len in pad sequences?

Does the value of max_len in pad sequences for deep learning depend upon the use case? Suppose if it was a Twitter related classification, should the value be set to 280 (280 is the maximum length of characters in tweets)?
KK47
  • 25
  • 1
  • 5
-1
votes
3 answers

Pad a number with leading zeros

I am not able to link functions to pad a 4 number with leading zeros. need help here.

0000

-1
votes
3 answers

Access 2010: Pad (y) a variable string length (x) to a predetermined total so that x+y=55

I found plenty of advice on how to pad a string in Access 2010 but none on how to pad a variable length string with spaces out to a predetermined total string length. Example: Total length = 55, if string len = 15, then pad " " x 40 (15+40=55) if…
-2
votes
1 answer

How do I align or pad printed text in c++?

I'm just trying to get my text under "price" to align, and I'm not sure how to do this. All I've done is add spaces in my printf statement to align this little table but obviously,enter image description here when the quantity is more than 1 digit…
ryoung
  • 31
  • 2
-2
votes
1 answer

XSL padding fixed length

I have the following XSL code
-2
votes
2 answers

Pad Varchar with 0 in SQL Server 2005

I have tried following this and this as I need to pad a column with zeros. So I have a field name_id 1 2 21 74 And I want it to be like name_id 001 002 021 074 So I have tried doing this: SELECT RIGHT('000'+ name_id,3) from tblCoordinates; But…
user3201441
  • 167
  • 1
  • 12
1 2 3
8
9