![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/26886775_1656772209197_DEF.jpg)
Vaibav Reddy
Followers: 0 Following: 0
Feeds
提问
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; ...
2 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 2 个回答 | 0
2
个回答提问
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.
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 1 个回答 | 0
1
个回答提问
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 ?
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 1 个回答 | 0
1
个回答提问
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...
2 years 前 | 1 个回答 | 0