Community Profile

photo

Vaibav Reddy


Last seen: oltre un anno fa Attivo dal 2022

Statistiche

  • Thankful Level 3

Visualizza badge

Content Feed

Visto da

Domanda


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; ...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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 ...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 2 risposte | 0

2

risposte

Domanda


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.

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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 ?

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre un anno fa | 1 risposta | 0

1

risposta