Answered
Finding the cross correlation coefficient between consecutive images
% Make sure that all images are in same working directory (current directory) % Rename as sequential order im1,im2 etc list=di...

7 years ago | 0

| accepted

Answered
Convert equations to MATLAB code
Last two equations are already in Matlab form, may be just required (.) dot in equation 3 depending on type of variable (if any ...

7 years ago | 0

Answered
How to Add Image Classes?
May be you are confusing with logical indexing, there is nothing related to classification of images lets say Total_Images=8, t...

7 years ago | 0

Answered
hi i used the following code to crop an image and i got the answer, but i want to apply this to a large dataset of masks and save the results to another folder. How do i do this?
clc; clear all; close all; format short g; format compact; fontSize = 25 % Make sure that all images are in same working d...

7 years ago | 0

Answered
Error when defining variable with if statement and add to table
First Issue: a=[1,2]; b=[2,6,10]; l=[1:20:100]; [a,b,l]=ndgrid(a,b,l); a=a(:); b=b(:); l=l(:); disp=([a,b,l]) if (b==2)...

7 years ago | 0

Answered
Some Error in code
However, when I changed r>1, I got some problems: I assumed r=1.5 and its OK, I didnot get any coding errror

7 years ago | 1

Answered
How to define number of cells of an image to extract HOG features?
One Way: If you do the imrezise before apply the Hog features, its return the features having same length, As below example, he...

7 years ago | 0

| accepted

Answered
How do I find the element address in an array involved in a loop by applying conditions?
As your code seems mess to me, althoght I have given the answer you asked for. when T array, Tth 125 element equal to 25, if co...

7 years ago | 0

Answered
remove the edges present outside the circle
Is this one you are looking for? This bwareafilt extract objects from binary image by size. Here assuming that the circle size ...

7 years ago | 0

Answered
What is the Maximum PSNR and SSIM values for HR images ?
Based on my basic undestanding, to calculate the PSNR and SSIM, you require of two images- First Image 1, which is orginal degr...

7 years ago | 1

| accepted

Answered
if else if else statement
If you use the multiple ifelse with comma, as mentioned below, is there any issue? Detail read here

7 years ago | 0

Answered
Matrix into Sub matrix of length 8
Silmilar question answer is here, in your case minor modification is required. Here it is A=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...

7 years ago | 0

Answered
Why the message "Array indices must be positive integers or logical values." is displayed
Do change C1=[1 0 -(n_zx*(alpha_x+beta_x*S)*((z)/(z_x))^(-1+n_zx)/(1+S+(z/z_x)))]; In the following x is not define, you tryin...

7 years ago | 1

| accepted

Answered
Generate row or column permutation
[c1,mn]=ismember(x,Bx); [c2,nn]=ismember(y,By);

7 years ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
Save the following function file>Save as : ACTIVITY_WILSON.m file name function [gamma,a]=ACTIVITY_WILSON(MW,rhoL,BIP,T,x) R=8...

7 years ago | 0

| accepted

Answered
Comparing 2 float nombers
>> format long >> a=123.123 a = 1.231230000000000e+02 >> b=a-123 b = 0.123000000000005 >> b==0.1230 ans = ...

7 years ago | 0

Answered
use a Loop to repeat an equation using the previous answer as the new variable.
xt=100:440; p={}; p{1}=99977; for i=2:340; p_iter=p{i-1}; deno=exp(50./(29.3*(xt))); p{i}=p_iter./deno; end

7 years ago | 0

| accepted

Answered
Storing Data from an IF loop
image1=rgb2gray(imread('test.jpg')); % image1 gray image [rows colm]=size(image1); fprintf('The number of pixel in the image= ...

7 years ago | 0

Answered
How to store indices of for loop in cell array after satisfying a condition
l=1; m={}; for...... if EE<=5 (#######) m{l}=[i,j,k]; l=l+1; end Check this way: >> m={} m= {...

7 years ago | 0

| accepted

Answered
I tried a matlab code for spectral centroid but it showing error like this"Index exceeds matrix dimensions. Error in Untitled2 (line 58) P1i = P2i(1:L/2+1); . How to correct the error?
Note: The code is tested with different audio file, please check in your case Line no 28: Change Fs to fs as Matlab is case s...

7 years ago | 0

| accepted

Answered
making one matrices dimension same as other
[rows1 colm1]=size(h); [rows2 colm2]=size(k); % You can change the way depending on sizes of h and k % Also which direction y...

7 years ago | 0

| accepted

Answered
for loop adding numbers on left side of equal sign
for k=89:1:105; pk(k)=prob(k) end Yes, you can get it pk(89) to pk(105) but what about pk(1), pk(2),...might be zero...

7 years ago | 0

| accepted

Answered
make nested for loop output a matrix and other error
First One: The question seems easy, but I did not undestand it exactly, sorry Second one: another problem I have is that whe...

7 years ago | 0

Answered
How to use a while loop to achieve the maximum value of a plot?
x=0; y=0; %% Flowing code just find the xmax where y<9.8 while y<9.8 y=10*(1-exp(-x/4)); x=x+0.1; end % The outpu...

7 years ago | 0

Answered
Why do i need to divided by log2(M) * Ts instead of Ts ? For the symbol error rate of 8-PSK
Why do i need to divided by log2(M) * Ts instead of Ts ? Please check the below expression and discuss with your communication...

7 years ago | 0

Answered
How to divide gray scale image into 8x8 blocks and access each block separately to apply dct2 on the block
image1=rgb2gray(imread('test.jpg')); [rows colm]=size(image1); % pading for make 8 disible, im my case rows 96 and colm 200 %...

7 years ago | 1

Answered
Extracting first n values of a matrix
Followig the code, extract (result) first 30 elements from a, whose value greater than 10 and less than 30. idx=a>10 & a<30 b=...

7 years ago | 0

Answered
How to correct the code?
%Though I am giving the answer here, but please must follow the Google "MATLAB logical indexing" as stated by @Cedric There are...

7 years ago | 0

| accepted

Answered
Need help with creating or modifying an RGB image.
I'm not sure how to separate out the red, blue, and green components of an image like the Paraglider.jpg that I'm using . As yo...

7 years ago | 0

| accepted

Answered
How to store individual return value of a function
Inputs in Main script help to change the input easily. Main scripts: D = 'C:\Users\Tipu_Standard\Desktop\testIMAGES'; S = di...

7 years ago | 1

| accepted

Load more