Filter noise in logical vector
Do Modification: Just Hint here (May Be) loop data_generation(i)=present_data; if present_data==1 tic while toc== end en...

circa un mese ago | 0

help me in calculating
now i have to scan each row and find the pixel column number whose value is 1 and add the column numbers to find the mean distan...

circa un mese ago | 0

Contrast stretching diagram formula with imadjust function in matlab
Suppose you have input image, say input_image Do the some gray lebel operation, say the result is output_image; Here when appl...

circa un mese ago | 0

How can I save the total number of each selection from a listdlg using num2str?
xlabel(['Time (s)' ' foot-Spike: ',list{i}]) Here i is any number, not larger than length of list

circa un mese ago | 0

statistical features for each and every pixel in the image
"how to display features for each pixel in an image" As an invividual pixel, its having intensity value only, read the image, i...

circa un mese ago | 1

Segmentation of Lungs from Chest X-Ray Images
There is no best code for Segmentation of Lungs from Chest X-Ray Images. The code depends on datasets or simmilar data types. Th...

circa un mese ago | 0

bwlabel doesn't find a blob
Yes, total number of blobs in this image is 5 (in context of 8-connected objects) L=bwlabel(BW) returns the label matrix L that...

circa un mese ago | 0

Creating a matrix on matlab
format shortG d=0:0.5:12 Command Window: d = Columns 1 through 9 0 0.5 1 1.5 ...

circa un mese ago | 1

| accepted

How can I incrementally plot multiple Rectangles in a [X Y Width Height] field?
for i=1:10 PED_fld=[132+i 210-i 75 80] rectangle('position', PED_fld); %PED hold on; end

circa un mese ago | 1

| accepted

How to solve simultaneous equation with identity
https://in.mathworks.com/help/symbolic/solve-a-system-of-linear-equations.html

circa un mese ago | 0

Extract 2D slice parallel to an arbitrary plane in 3D image.
I want to slice the 3D image with a slice parallel to this plane. Let suppose image3d is 3D image, which you want to slices ...

circa un mese ago | 0

Error when trying to create a loop for k-means
%Defined img= pixelLabels= k= for i = 1 : k maskID = strcat('mask', 1); clusterID = strcat('cluster', 1); ...

circa un mese ago | 0

| accepted

Indexing with two matrices
A=[1 4 20 3 5 15 2 1 24 7 9 42]; B=[3 4 15 7 1 42]; [r1,c1]=size(B); c=ze...

circa un mese ago | 0

| accepted

how can i draw a 3-D figure?
x=rand(1,121); y=rand(1,121); z=rand(1,121); plot3(x,y,z); grid on; More 3D plots, Documentation here

circa un mese ago | 1

Why does subplot size change with increasing number of plots
I dont think figures are changing, just scaling the figure window as per the screen size (please check the scaling of plot axes,...

circa un mese ago | 0

Plotting multiple matlab figures into a single subplot
Remove figure statement within the loop. clear all; clc; c=zeros(4,1); h=zeros(4,1); for i=1:4 h(i)=subplot(2,2,i); end ...

circa un mese ago | 0

| accepted

Grid search for two data files and average of amplitude
v=200:02:1000; h=4:0.02:12; f=v./(4*h); writetable(table(f'),'f_matlab.txt'); Check the data

circa un mese ago | 0

| accepted

How can i convert set of images from RGB to Lab using matlab?
Read images from folder FAQ here Before apply the code read here Representing color with the Lab color space image_data= % R...

circa un mese ago | 0

plotting comlex numbers,use one plot command, and each point should be different color
z =[complex(2,5),complex(1/5,3/5),(2+i)^3,(1+i)*(1-3*i),complex(5,-12),complex(-3,0),complex(0,2),complex(1,2*sqrt(2)),complex(-...

circa un mese ago | 1

Extracting features from rice grain image
Steps: As the ROIs are distinct, apply the proper threshold on gray images to segment ROIs Do the image engancement (if requi...

circa un mese ago | 1

| accepted

Denoising 3D ultrasound
It's purely depends on, what types of noise presence in the images. Though I can't commnet with surety, those filters may work ...

circa un mese ago | 0

| accepted

Transforming cell from excel file into numeric matrix

circa un mese ago | 0

| accepted

IF-statement for matrix/vector
As you mentioned that the matrix having size 146652x1, which means it has 1 column. Prefer logical conditional statement. idx=m...

circa 2 mesi ago | 0

Index in position 2 exceeds array bounds (must not exceed 5).
I sense to be here fprintf(1,' %d tbp = %g C.\n',i, u(6+i)); %...................................^ Check? >>whos u

circa 2 mesi ago | 0

Why 4.8/1.6 is not equal to 3?
Here "==" is logical equality check, if the Left Hand Side equal to Right Hand side, it gives logical 1 (True), else 0 More ab...

circa 2 mesi ago | 0

| accepted

create an image with black background from extracted pixel values
%Lets suppose you have image1 as main image image1=ones(150,150); subplot(121),imshow(image1); title('Main'); r=randi(150,[1,...

circa 2 mesi ago | 0

Feature orientation in images
The "best method" is purely based on input data and multiple factors, and it is apurely a subjective term. I would suggest to fo...

circa 2 mesi ago | 0

| accepted

How to make a loop to do a specific operation for multiple variables?
Assuming those results are array, hence used cell array { }. If numeric, please change to array [ ] RefInd={}; ny=cell(1,3);;n...

circa 2 mesi ago | 0