Answered
Store arrays produced by for loop
-The code works fine to produce the vq I want, I just need to save it as a matrix and simply putting vq(p)- You can save it as ...

7 years ago | 2

| accepted

Answered
removing the array elements
#No Need of loop, efficient code. np=22; L=10; x=linspace(0,L,np); idx=find(x>5); x(idx)=[] If loop is needed, you can und...

7 years ago | 2

| accepted

Answered
Where is gradmag in Matlab?
gradmag is not standard Matlab function. It the user defined custom function, you get the function from here.

7 years ago | 0

| accepted

Answered
rotate an image to register with another one
imrotate ?

7 years ago | 0

Answered
How to avoid overlapping labels under boxplot?
I didnot find any overlapping issue. If you zoom in more smaller, it definitely overlap, as the x label text area is completely ...

7 years ago | 0

Answered
Cell array: How can I calculate the mean of it?
load test_file.mat idx=find(time1>0 & time1<=4); result=sum(values1(idx))/length(idx); Do the same for others.

7 years ago | 0

| accepted

Answered
Return the Coordinates of the differences
Return the Coordinates of the differences? Suppose you have two images (Considering both images are capture in identical illumi...

7 years ago | 0

Answered
find if two numbers are BOTH present in an array
Original question: A=[2 3 7 9 8; 9 2 4 1 0]; find if two numbers are BOTH present in an array, let 3 and 9 . the result like ...

7 years ago | 0

Answered
simplest adaptive thresholding custom code
adaptive thresholding menas, the threshold value is not fixed, its depends on image or input data In the first view, This code ...

7 years ago | 1

| accepted

Answered
How to create matrix from multiple vectors?
Matrix is also vector, you can concatenate them as new matrix result=[vec1;vecc2;vecc2....] Result size: Number of vector conc...

7 years ago | 0

| accepted

Answered
how to subtract mask from an image and add the pixels value
f=[12 30 120 220 120 130 140 150 120 220 120 120 90 80 70 80] [r c]=size(f); m=f(2:3) f1=[]; for i=1:r for j=1:c ...

7 years ago | 0

| accepted

Answered
Insect egg detection/counting missing connected blobs
It not so easy answered exactly, though I have answered, so that you get some idea, you can try with differnt apparoach to get t...

7 years ago | 0

| accepted

Answered
How to get the size of a region in an image?
I can counts the number of pixels of that region %Please note that white portion also there in both side of fridge % Crop it o...

7 years ago | 1

| accepted

Answered
What are some good ways to segment cells from images?
For the first look, the easiest and might be beeter way, you can get the cells using contrast improvements and thresholding (I a...

7 years ago | 0

Answered
subplot two different images in two different for loop
P*1 is coming as P*21 which is not what i ought to do? As the title is displayed based on k value, as it reflects the number o...

7 years ago | 0

Answered
Not able to use plot function
t=linspace(0,20); y10=-1*(0.013586877477623817727984981165799*exp(- 0.11152477647061971830985915492958*t-1.08124897662093140195...

7 years ago | 1

Answered
fourier transform of this:
FT=fft(f); First FFT then plot, requested you to read this documentation

7 years ago | 1

| accepted

Answered
how to change this value in number??????
>> format long g >> X=1.0202e+05 - 6.1123e+11i X = 102020-611230000000i Here i denotes complex, which is a number The...

7 years ago | 0

| accepted

Answered
Index exceeds array bounds for nested for loop
j=i-x+1:i firse case of for loop i=x:len-1 where x=20, which is i first iterate value Next loop j =i-x+1:i So j=20-20+...

7 years ago | 0

| accepted

Answered
How to plot 3D bar graph?
You can use this custom function scatterbar3(x,y,z,0.5) grid on For example x=1:10; y=2:2:20; z=3:3:30; scatterbar3(x,y...

7 years ago | 0

Answered
Maximum occurrence value of histogram
Why you go for histogram? You can get the value from array itself Maximum occurrence bins in histogram==Maximum occurrence elem...

7 years ago | 0

Answered
How can I get plot with smooth lines from this data?
a=[500,1000,1700,1300,1400,3900,3400,3000,2200,2400,3300,3800,4500,4500,4400,4300,4600,3700]'; x=[1,2,3,4,5,6,7,8,9,10,11,12,13...

7 years ago | 1

Answered
Not enough input arguments
# Check Commnet, this function file have no role in main script. Save the function in different file as "Loss_Fun.m" (Same dire...

7 years ago | 0

Answered
i have multiple conditions in if statement that i want to execute but i m getting results for only last part of the statement
Use II or && and Error([j]) %......^^ it may be Error[j]

7 years ago | 0

| accepted

Answered
If-statement = true then replace column with specfic value - How to?
[m n]=size(input); for i=1:m for j=1:n if input(i,j)==-3 inputTemp(i,:)=-3; end end end ...

7 years ago | 1

| accepted

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 2-by-1. Error in linear2d (line 7) z(:,1)=[0;1];
You defined v=1, as scalar, but you called the function as vector v(i) vh=v(i)-dt*k*z(1,i)/ (2*m); %....^......... When i=1, ...

7 years ago | 0

Answered
crop an image with control points
For code you are requested to contact me through author page (Or email:kalyan.acharjya@gmail.com). The code belongs to me an...

7 years ago | 0

Answered
Check Positive or Negative Infinity
y=abc>=0 && isinf(abc)

7 years ago | 1

Answered
How many ways are generally used for image segmentation using only Image processing?
Yes, the approach of image segmentation depends on type of input image and complexity associated with the ROI and back ground ob...

7 years ago | 0

Answered
How can i find out homogeneity of an image?
Try this way- I=imread('circuit.tif'); %...........^^^ change name % creation of gray-level co-occurrence matrices from imag...

7 years ago | 1

| accepted

Load more