# Vaibav Reddy

**Statistics**

**MATLAB Answers**

**10** Questions

**0** Answers

RANK**207.399**

of 271.448

REPUTATION**0**

CONTRIBUTIONS

**10** Questions

**0** Answers

ANSWER ACCEPTANCE **
70.0%
**

VOTES RECEIVED**0**

RANK

of 18.303

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 119.953

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

I want to store the value generated by the for loop into a new variable so I can use it further in my code. How do I do it ?

My code : for iIdx = 1:4 for jIdx = 1:4 sum = iIdx + jIdx; if rem(sum,2) == 1 num = 1; ...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I have two 4x4 matrices. I sub-divided these matrices in 4 2x2 matrices each. Now I want to compare these 2x2 matrices.

Problem Explanation: Matrix 1: Matrix 2: 8 7 6 9 0 1 0 ...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I have a .bin file(0's and 1's). I want to read 2 bits of information at a time from that file. How do I do it ?

Explanation of the problem : Suppose I have the binary text as: " 010010001100101011001" I want to read " 01 " first and then...

4 maanden ago | 2 answers | 0

### 2

answersQuestion

I have a 4x4 Matrix. I want to subdivide the matrix into 4 different 2x2 matrices and store each block in a variable. How do I do it ?

Can you provide the code for this ?. Thank you.

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I have a .bin file (having only 0's and 1's). And I want to consider 2 bits of the data from the file at a time in an iterative manner till all of the digits are read.

How Do I do it ? Question Explanation : Suppose I have text written in binary format as: 0010011110100111 I want to access t...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I want to embed data(binary form :0's and 1's) into the highlighted values of the matrix I've given below. But I want to embed 2 bits of data at a time. What should I do ?

155 144 94 151 7 204 121 147 2 210 109 57 93 180 169 250 So this above here is the...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I created an array of size 255 of pseudo-random integers . I want to access the value at a particular index of the array how can I do it ?

r0 = uint8(randi(255,255,1)); I now want to access the value at the index 158. How do I do it ?

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I'm new to MATLAB and I'm trying to convert the text in a .txt file to binary digits ( 0's and 1's ). How do I do it ?

converting_texttobinary = text2bin('encryptedMes.txt'); disp(converting_texttobinary) I created a .txt file and tried to conve...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I'm trying to perform the XOR operation between a 4x4 block of an image and a pseudo-random matrix of size 4x4.

pic = imread('Spiderman.png'); grey_pic = rgb2gray(pic); imshow(grey_pic) pseudo_randommat = randi(255,4,4); fprintf('The Ps...

4 maanden ago | 1 answer | 0

### 1

answerQuestion

I'm new to MATLAB and I want to consider a 4x4 pixel block with it's intensities from a whole picture which is a grey scale image. How do I do it?

a = imread('Spiderman.png'); y = rgb2gray(a); for i = 186:1:189 for j = 165:1:168 pixel_values = y(i,j); en...

4 maanden ago | 1 answer | 0