답변 있음
why is this code showing zero for all equations??
Enter the val value such that it must contain in x, then only following give some non zero value i=find(x==val); Other wise ...

대략 7년 전 | 0

| 수락됨

답변 있음
counting the number of times a number appears next to the same one in a row?
num=[1 2 3 4 5 6]; % Change this one and test uniq_num=unique(num); digit_repeat=length(num)-length(uniq_num) Its works right...

대략 7년 전 | 0

답변 있음
what is the best method for resizing a binary mask to preserve its shape?
Have you tried with any approach, resizing the binary mask doesnot effect on its shape? #Simple way mask_modified=mask(1:2:end...

대략 7년 전 | 0

답변 있음
I want to sum up specific array in a matrix
x =[2.356 37 1.351 39 4.394 37 3.622 39 4.489 39 3.135 37 6.653 39] idx=(find(x(:,2)==37))'; sum_37=0;...

대략 7년 전 | 1

답변 있음
Finding maximum in a matrix
Suppose mat is 1000x1 matrix %this will give the maximum value within the matrix uptp 50 rows and 60 colm mat1=mat(1:50,1:60);...

대략 7년 전 | 0

| 수락됨

답변 있음
Reference to non-existent field 'rsqr'.
All custom functions files should be save individually in different matlab files, also file names should be same as functions na...

대략 7년 전 | 0

답변 있음
How do you remove specific rows from a cell array?
How do you remove specific rows from a cell array? data=num2cell(rand(70,1)); % Considering random cell array %delete suppose ...

대략 7년 전 | 1

답변 있음
display info of pixel after for loop
improfile; Read here Is this are you looking for?

대략 7년 전 | 0

답변 있음
change x/y/z axis values in surf(X,Y,Z) plot
[X,Y] = meshgrid(1:0.5:10,1:20); Z = sin(X) + cos(Y); surf(X,Y,Z) xlim([0 21]); ylim([1 10]); zlim([0 50]); Chosse the x,y...

대략 7년 전 | 0

답변 있음
How to find the largest area in this grayscale image with discontinuities in between?
Convert to binary image (Proper segmentation) Finding the largest blob (bwlabel) Sum of all pixels in largest blobs (binary i...

대략 7년 전 | 0

답변 있음
patch extraction of an image
im=imread('new.jpeg'); k=1; [rows colm]=size(im); for i=1:10:rows-10 for j=1:10:colm-10 im_sub=im(i:i+9,j:j+9); ...

대략 7년 전 | 0

| 수락됨

답변 있음
how to open a thermal image in matlab
How to open a thermal image in matlab? im=imread('image name.jpg'); imshow(im); Is there any issue?

대략 7년 전 | 0

| 수락됨

답변 있음
identify numbers greater than a specific number
T =[3 5 6 7 8 9 2 6 9 10 2 12 13]; idx=find(T>7) % Gives index position num=T(idx) % Gives Numbers

대략 7년 전 | 0

| 수락됨

답변 있음
Optimizing nested for loops for image analysis
TPFsum=sum(TPFstack(:,:,1:z,:)); Is this?

대략 7년 전 | 0

답변 있음
save the slices of a deformes volume
for slice_number=1:430 b_slices=b(:,:,slice_number); % Save Individually end Or b_slices={}; for slice_number=1:430 b_sli...

대략 7년 전 | 0

답변 있음
When inserting an image into MATLAB, how do you read the n-by-3 array for pixels?
When Matlab read the image, it now matrix having elements value (Pixel Value) and spatial co-ordinates (x,y) that is position of...

대략 7년 전 | 0

답변 있음
discriminant analysis with tensor representation
"I found one question that there is different repeat times when running the same data with the same algorithm" Yes, data may be...

대략 7년 전 | 0

| 수락됨

답변 있음
How to convert RGB to hsv?
For one frame, you can check here, as you mentioned the reference (wiki), I have implmented the same from here I assumed, you c...

대략 7년 전 | 0

답변 있음
How to use blockproc by location?
#Edited Considering Input Image is Gray, let say image1 and location of pixel is x,y image1(y-1:y+1,x-1:x+1)=255;

대략 7년 전 | 0

답변 있음
select the odd or even frames of a volume
Let say Image1 is the original 3D image resultant_image=image1(:,:,1:2:430)

대략 7년 전 | 0

| 수락됨

답변 있음
Matlab code to solve an integral
#Edited syms x kw = 91371; CaO= 1.81 * 10 ^ -4; FaO= 0.1233; K = 2; fun = (FaO*(1+(K*CaO)*(1-x)))/(kw*CaO*(1-x)) int(fun)...

대략 7년 전 | 0

답변 있음
How do I calculate the precision, recall and F1score for an image database?
To calcuate the precision and recall you need ground truth images Lets clear the issue You have dermoscopy images You applied...

대략 7년 전 | 0

답변 있음
How can I create a loop and plot a graph after each loop?
w = 0:50E3:300E3; omega = w.*2.*pi./60; % Array of omega values for beta=1:1:4 omega_n = 3*beta; % Omega_n is...

대략 7년 전 | 0

답변 있음
How do I linspace this plot?
stem(freq/1e+12,2*abs(X(1:NFFT/2+1))) Use stem, instead of plot

대략 7년 전 | 0

| 수락됨

답변 있음
How to separate matrix elements based on randomized indices
a=rand(2,10) [rows colm]=size(a); rand_colm=randi(colm-3); mat1=a(:,1:rand_colm) mat2=a(:,rand_colm+1) mat3=a(:,rand_colm+2...

대략 7년 전 | 0

답변 있음
HOW TO CONVERT GRAY IMAGE TO HUE IMAGE?
Have you read about Hue? Read here in wiki I dont think there is any conversiotion way, if you do somehow, all gray pixels=0 i...

대략 7년 전 | 0

| 수락됨

답변 있음
Open image, read block of pixels, average the intensity of the block, display average intensity matrix
Considering Gray Image, if not convert to grayscale then perform im=imread('Image.jpg'); %.................^^ Change as per i...

대략 7년 전 | 0

답변 있음
How to fill holes in binary image
"How to fill holes in binary image" J = imerode( binary_image_name , SE ) ; % chosse the structuring elment as per your requir...

대략 7년 전 | 0

답변 있음
How can I keep MATLAB command window always on top
If you are using 2015b or later just drag window and drop

대략 7년 전 | 0

더 보기