문제를 풀었습니다


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

5년 초과 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

5년 초과 전

문제를 풀었습니다


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

5년 초과 전

문제를 풀었습니다


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

5년 초과 전

문제를 풀었습니다


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

5년 초과 전

문제를 풀었습니다


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

5년 초과 전

문제를 풀었습니다


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

5년 초과 전

문제를 풀었습니다


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

5년 초과 전

문제를 풀었습니다


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

5년 초과 전

답변 있음
What is the meaning of this code
The meaning is RHS data is assigned to LHS of the particular variable. More: I am not interested to blind guess here.

5년 초과 전 | 1

답변 있음
Removing low values from a matrix
Remove menas, you have to replace by other certain values, so that it can be easily distinguishable. mat(mat<0.0108)=0 or m...

5년 초과 전 | 1

답변 있음
Color based segment ? extract all color object ?
As the color is always subjective. Considering the simmilar images (image modalities), you may get the respective color models e...

5년 초과 전 | 0

문제를 풀었습니다


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

5년 초과 전

답변 있음
Partially bluring image with averaging filter
Have you ever check the following one, what does it means H=fspecial('average',[11 11]); it creats 11x11 size kernal with all ...

5년 초과 전 | 0

답변 있음
Getting wrong values for sin
You are not doing anything wrong here. Have you see the complate long sin or any other trigonometric series, it all beacuse of...

5년 초과 전 | 0

답변 있음
FFT on matrix dataset
data_mat=load('filename.mat'); fft_result=fft(data_mat) Please carefully check the size and details of the loaded mat file. ...

5년 초과 전 | 0

답변 있음
How to store a color and location in a matrix?
"How to store a color and location in a matrix?" Lets say image is "imRGB" [r,c,ch]=size(imRGB); R_data=double(imRGB(:,:,1));...

5년 초과 전 | 0

답변 있음
creating matrices from taking specific entries of multiple matrices
Once I tried to repoduce simmilar case, I did not find any issue A=randi(10,[5,4]); B=randi(10,[5,4]); C=randi(10,[5,4]); D...

5년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

5년 초과 전

답변 있음
Tracking a segmented line in grayscale images
One way grayImage=rgb2gray(imread('image_track.png')); bw_im=imbinarize(grayImage,0.6); subplot(121),imshow(bw_im); bw_im=bw...

5년 초과 전 | 0

답변 있음
Problem with cross correlation
Might be you are looking for corrcoef Correlation coefficients. Link or xcorr MATLAB Docs r = xcorr(x,y) returns the cross...

5년 초과 전 | 0

답변 있음
Selecting columns with specific elements
"Is there a way to call out columns with the elements of the third row equal to zero?" col_data=find(matrix(3,:)==0) This col_...

5년 초과 전 | 0

| 수락됨

답변 있음
How to replace a for loop that contains an if statement?
C=B.*(A.*B>0)

5년 초과 전 | 0

답변 있음
Overlay axis on an image
"To better dispaly this I was hoping I could overlay a red cross to insect the 50, 50 point of the image." Insert the marker on...

5년 초과 전 | 0

| 수락됨

답변 있음
How to plot a graph from a growing .csv file with time?
One way: MATLAB process the codes sequentially, If possible read the data from instrument one by one and plot them accordingly ...

5년 초과 전 | 0

답변 있음
How to take an FFT/IFFT from an image according to logical matrix?
You may do the FFT or IFFT of whole image. Later apply the mask (logical Matrix) on resultant image. Let say "result" is the res...

5년 초과 전 | 0

답변 있음
Need Matlab based cell segmentation for Ring shaped cells (Donuts)
"Red channel contains the donut cells to be segmented." Have you tried with other color Models, like as HSV or more. https:/...

5년 초과 전 | 0

| 수락됨

답변 있음
Length of variable is much shorter during a loop?
This length(DOYfilt) % Note here Not This length('DOYfilt') ^........'..'

5년 초과 전 | 0

답변 있음
Getting Error message 'Array indices must be positive integers or logical values.'
outputArg1 = v(b==1);

5년 초과 전 | 0

| 수락됨

답변 있음
Convert image to black white without using gray bands(hint, by using for matrix
One way (Hint): % Decide any data value within the Image/matrix elements data range (Pixel value) , lets say 100 bw_result=Mat...

5년 초과 전 | 1

더 보기