Answered
Can I create multiple anonymous functions with a for loop?
Hi Jarred, defining 'S' as a cell array should resolve the issue. % Pre-allocating 'S' as cell array S = cell(1, length(b)); ...

4 months ago | 0

| accepted

Answered
Cross-correlation for similarity measurement between two signals
This might help. % Creating random data for example sig1 = rand(1, 2048); sig2 = rand(1, 2048); % Calculate correlation co...

4 months ago | 0

Answered
Analysis of png image
The below modification in your code might help. folder_name = uigetdir; %Prompts user to select folder filename = uigetfile([f...

4 months ago | 1

| accepted

Answered
Concatenate large matrices a bottleneck in function
The horzcat() function is usually faster than cat() or [, ]. You may use it. A = ones(100000,90); B = 2*ones(100000,90); resu...

4 months ago | 0

Answered
Local histogram equalization in matlab
The below code might help. % Read the image img = imread('cameraman.tif'); % Extract your Region-Of-Interest (ROI) ROI = img...

4 months ago | 0

Answered
how to remove specific area of an image
Hi, you can use the interactive Color Thresholder app to achieve what you want. After performing segmentation, this app also gen...

4 months ago | 1

| accepted

Answered
In this way, I got the image whose pixels location are shuffled randomly.How can I get or reconstruct the original image (img) from the shuffled image.Every help is appreciated
Hi Arwa, below code might help. W_log = imread('cameraman.tif'); Key1 = 100; s = size(W_log); ss = rng(Key1, 'twister'); % y...

4 months ago | 0

| accepted

Answered
help for find the phase value of image using MATLAB coding
Hi Moiz, if you are looking for Fourier phase of an image then the below code might help. % Read the image img = imread('pout....

4 months ago | 0

Answered
Applying 2D filter on RGB image
Hi Ozan, the below code might help! img = imread('kodim07.png'); imshow(img) img = imresize(img, 2, 'bicubic'); figure imsh...

4 months ago | 1

| accepted

Answered
Automatilly read image files and apply filtre in Matlab
Hi, the below code snippet might help. % "imagefiles" variable contails each file detail (e.g. filename, size, etc.) imagefile...

4 months ago | 0

Answered
Regarding Hyperspectral Image Processing
Hi, for reading a hypersepctral image in ENVI format you can use the hypercube function. E.g., % Read the ENVI format data hCu...

4 months ago | 0

Answered
How to use multiple user input variable?
Alex, the below code might help! Have a look. % Create the webcam object. cam = webcam(1, 'Resolution', '640x480'); preview(c...

5 months ago | 1

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
Pre allocate B1x as cell array instead of numeric array to solve the problem. close clear clc %% mu0 = 4*pi*1e-7; % Vs/Am ...

8 months ago | 1

| accepted

Answered
How to save Type 2 Fuzzy system?
HI, After you convert fis1 to fis2, use the code below to save the fis2 system. The below code opens a dialog box for saving th...

8 months ago | 0

| accepted

Answered
Why does my code shows three outputs instead of one?
I suspect your dot.jpg is a RGB 3 channel image. When you are extracting the height and width of the image using the size functi...

9 months ago | 0

Answered
load series of DICOM and convert it to volume to use volume viewer
Refer the example code below, close all; clc; % Load the demo DICOM image [X, map] = dicomread('US-PAL-8-10x-echo.dcm'); ...

9 months ago | 0

Answered
Contourlet toolbox: Undefined function or variable 'pdfbdec
If you already installed and set up MinGW, then you need to create mex for the C source files before using the toolbox. You can ...

9 months ago | 0

| accepted

Answered
display image similarity using pie and bar chart
I have used the ssim function to measure the similarity between to images. ssim metric value lies in the range of [0, 1]. Higher...

9 months ago | 0

| accepted

Answered
background removal from image
Malini, here is a demo script for "...histogram of the person's face not the background..." close all clc img = imread('dklor...

9 months ago | 0

Answered
Saveas function changes behaviour of Subplot in subsequent iterations of a loop
Ruairi, refer the demo example below, close all; clear; clc; for idx = 1:3 % Generating random image for demo img = ...

9 months ago | 0

| accepted

Answered
Saved Matrix as Image does not give me the right pixels
Hakan, you are getting a 1200-by-900 image because you're saving the entire figure window in the tif file. If you only need to s...

9 months ago | 0

Answered
Which and where are each of HSI component image(Hue component,Intensity component,saturation component)
The image which you attached does not depict the saturation and intensity images. However, you can create that test image and se...

9 months ago | 0

| accepted

Answered
Gaussian filter vs median filter vs wiener filter??Noise tackling performance with image corrupted with salt and pepper noise
Hi, The code (by which you are adding Salt & Pepper noise into the image) is modifying almost all the pixels in the input image...

9 months ago | 0

| accepted

Answered
how to i save loop data in a loop?
Access wn_i_all using the indexing variable i. Refer the code below. %% Linear Aeroelastic model of a flexible wing using assum...

12 months ago | 0

| accepted

Answered
How to Store this attached rgbimage with a colormap. I tried the following code but could not write the image with colormap.
Your are writing the image in JPEG format and imwrite converts indexed images to RGB before writing data to JPEG files, because ...

1 year ago | 0

| accepted

Answered
How to find energy of image ?
If you want to calculate "Energy" as defined from the gray level co-occurrence matrix of the image then the following code might...

1 year ago | 1

Answered
Error: Too many output arguments
Hi, this is because you function crn is not returning anything. If you want to return dR_tow then use the code below. function ...

1 year ago | 1

| accepted

Answered
remove unwanted black pixels from binary image
It is difficult to fill the binary image exactly as you want but twaeking the various parameters of the function bwmorph we can ...

1 year ago | 0

Answered
How to save property/variable to .mat file in app designer?
Hi Thomas, use this app.Location = uigetdir; temp = app.Net; save(fullfile(app.Location, 'Saved network'), 'temp'); Hope t...

1 year ago | 0

| accepted

Answered
Save location not working
I guess this variable save_var{i} in the 4th last line of your code is returning a cell. Whereas, the function save expects a st...

1 year ago | 0

| accepted

Load more