Answered
distributing two values in 3d array
How can I distribute only two values instead of rand() function? You can fixed the value as per your need randi([1, 2],1)/10 ;...

7 years ago | 0

| accepted

Answered
how to equalize histogram of two images ?
Normally Histogram equalization in one image, I hope you know the objective of hitogram equalization. If you are trying to do ...

7 years ago | 0

Answered
How to process multiple images and produce output files?
%code % Save all images name in a sequence manner before doing the operation path_directory='folder_name'; % 'Folder ...

7 years ago | 3

| accepted

Answered
While loop does not iterate
No the iteration going on, may be infinite @dpb already suggested you to use while err>0.05 end and second approach u...

7 years ago | 0

Answered
calling a function in a script
Is there any issue to call the function. Look, suppose you have the following function function imageprocess=imselect(x); %do...

7 years ago | 0

| accepted

Answered
I would add one variable inside function
syms t ta theta x(t)=5*sin(2*t+theta); disp(x(t+ta)) Command Window 5*sin(2*t + 2*ta + theta)

7 years ago | 0

Answered
how divide image to blocks?
You can use blockproc (Distinct block processing for image) on image result=blockproc(image,[m n],fun) Which processes the ima...

7 years ago | 1

Answered
How to extract sub matrix from the main matrix?
What I have found that there is no data as 2/3/2010. Suppose I take as example your exel file having Row 1: 10 1 1 ... .. ...

7 years ago | 0

Answered
How to fix "Undefined function 'sinc' for input arguments of type 'double'." Error
I didnot find any error, when I run the code in my system (2015b) clc; clear all; close all; lambda=500e-9; k=(2*pi)/lambda;...

7 years ago | 0

| accepted

Answered
dot multipy unequal matrix size. Possible?
Basic Maths:Just for matrix multiplication, you can The number of columns in the first matrix must be equal to the number of r...

7 years ago | 0

| accepted

Answered
How to do correlation between two tiff image files?
im1=imread('image1.tif'); im2=imread('image2.tif'); result=corr2(im1,im2); Note: If the input images are RGB, convert both i...

7 years ago | 0

Answered
finding coordinates from a plot
For each plot you can do that, do that after the input power statemnet, if in loop you can get it easily idy=find(BER==10^(-9))...

7 years ago | 0

Answered
Band pass filter design
[y,Fs]=audioread('audio.wav'); % define cutoff frequencies fc1=? fc2=? bandpass(y,[fc1 fc2],fs); Similar answer is avaliab...

7 years ago | 0

Answered
adding ones at the end of an array
k=randi(3,3) k = 3 3 2 3 3 1 3 2 3 >> k=[k;ones(2,3)] k = 3 3 ...

7 years ago | 0

Answered
calling a funcion in a loop and replacing input variable with output variable
%My Answer is based on what I have understood, if any issue please clarify it. function y=function_for_Ex6a(x) y=4*(1-co...

7 years ago | 0

Answered
Select a specific area of an RGB image
Are you looking for this one? im=imread('test.jpg'); %[Xmin Ymin width length]. %Values are for example purpose only Xmin=2...

7 years ago | 0

Answered
Function for user to define any nxn matrix.
Please read here, undestanding by ownself is better way of learning. function mul_result=mul1(mat1,mat2) mul_result=mat1*mat2;...

7 years ago | 0

Answered
Problem creating array in for loop
This error occured when you tried to use index into an array indices those are not positive integers for p_IC1 = -3e5:0 I hav...

7 years ago | 0

| accepted

Answered
Extracting Frames and resizing each frame
Frames are images use the following, read here imresize frame_resize=imresize(frame_names,scaling_value) For multiple frames, ...

7 years ago | 0

Answered
Convert Rgb to grayscale and back to rgb
imageRGB is a given image. gray_image=rgb2gray(imageRGB); %do operation, say result1 is result image RGB_Image=ind2rgb(result...

7 years ago | 0

Answered
Using if statements correctly
If this happens, will the code just run the first part of the if statement as this is what it sees first or will it run both con...

7 years ago | 0

| accepted

Answered
Amplitude of square wave
What I have seen that, you b is look like as following- A=2; f=3; t=0:.01:10; a=A*sin(2*pi*f*t); %figure, plot(t,a); b=A*si...

7 years ago | 0

| accepted

Answered
can anybody explain the commented line of the code
Are you asking this commented line? % Y=[Y(:);X(end)]; Y(:) represents column vector having all elements (:) X(end) represent...

7 years ago | 0

| accepted

Answered
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN
% I have done the minor corrections (mainly . ) % Define a, I have define it a=10,I dont know whta suppose value it would be ...

7 years ago | 1

| accepted

Answered
Assigning value 0 to black colour and 1 to white colour
directly do gray to binary (im2bw) , its represent 0 for black and 1 for white im2bw(input_image); Recomended, look here BW =...

7 years ago | 0

Answered
How can I write an FIR filter function
My suggestion to avoid the error, In the loop, during first iterations when when n=1 and k=1, then following statement Y1 = (...

7 years ago | 0

Answered
Change Plot3 to Surface
Create Time, Cost, and EQ, which must have same lengths, then apply the following, is there any issue- surf(Time,Cost,EQ); For...

7 years ago | 0

| accepted

Answered
extract the 16 elements (4 by 4 matrix) from a big matrix
Recommended: Comments by S. Cobeldick As per your specific qiestion My thinking is when j=1,n=0,then f = A(1:4 , 1:4) ,so i ...

7 years ago | 0

| accepted

Answered
Iterate through Image histogram data for getting each pixel frequency individually
1. I want to get the frequency(counts) of each pixel. No need of too many loops count_pixel=length(image_gray(image_gray==pix...

7 years ago | 0

Answered
converting grey of three bands text image into into binary image into 1 band
grey of three bands More clarification needed, but the question seems easy, if I undestood it properly. As RGB have three bands...

7 years ago | 0

Load more