Answered
How to change the filename in xlswrite using loop
for i=1: xlswrite([strcat('Any_Initial_name',num2str(j)),'.xlsx'],file_to_write,'Sheet'); end

6 years ago | 0

| accepted

Answered
Statistical variant formula from histogram data
Apply var on histcoounts data

6 years ago | 0

Answered
color enhancement using histogram
It's not black and white image, the resultant also RGB image, see the data types. When I have tried with different image. The co...

6 years ago | 0

Answered
how can i put cell value in a vector?
s=unique(cell2mat(U))

6 years ago | 0

| accepted

Answered
Saving only the last loop
Do the proper indexing May be for i=2:length(leapyear) for ii = 1884:2018 extract(ii)=winterdischarge(yearcolu...

6 years ago | 0

Answered
Low contrast and high contrast
In somehow I feel it as a subjective term, still you can find it from historam of the image. As per my basic understanding contr...

6 years ago | 0

Answered
Add 10th and 90th percentile line
yline here More yline(-2.5,'-.b','1oth percentile value'); Same for others, hope you are using R2018b or later version (if no...

6 years ago | 0

| accepted

Answered
fill ciolor inside boundary of image
Steps: Get the Centre Blobs Make it color as per your requirements, please note that resultant color image will be RGB image,...

6 years ago | 0

Answered
Creating a video giving oscillatory motion to a point
Here is the MATLAB File Exchange File for Pendulum Link Credit:Sathyanarayan Rao The oscillatory motion of a simple pendulum i...

6 years ago | 0

Answered
cannot run an if statement with "or" and "and" operators in it. I get an error saying "matrix dimensions must agree". I added a comment in a line where the error occurs.
You are trying to compare two differnt data types- Here if (newnumvec(1)>newnumvec(2:4)) |.... %what result ^ expect...

6 years ago | 0

Answered
How do I find the indices of the value of my matrix?
Load the mat file, say as data variable idx=find(data==-69.19) Please read about floating number precision (Must) https://ww...

6 years ago | 0

Answered
Matrix value comparision and manipulation
C=[21 14 7 0 18 11 4 3 15 8 1 6 12 5 2 9 9 2 5 12 ...

6 years ago | 1

| accepted

Answered
Number of Object in binary image
Yes, the correct answer is 31, not 6. Actually it counts the all white pixels, blobs (having 1 white pixel with sourounding by b...

6 years ago | 1

Question


Image Write in Excel
Hello all, I am trying to write image pixels values in excel file, the size of image 2048x1365 uint8. presently using windows ...

6 years ago | 1 answer | 0

1

answer

Answered
How to manually add matrices using only for loops
Here Loop is not required result=C+D

6 years ago | 0

Answered
Properly scale histogram in subplot and error handling
IMG = imread('img.tif'); subplot(1,2,1); imshow(IMG); subplot(1,2,2); histogram(IMG);

6 years ago | 0

| accepted

Answered
index exceeds array bounds
#Is this one, please do check & confirm? while(1) % mass spring damper system m=20; %Default mass in kg k1=100; %default sp...

6 years ago | 0

Answered
find main area of image
#Approximate Here se = strel('line',3,3); BW1=imdilate(binaryImage,se); BW2=bwareafilt(~BW1,1); se = strel('line',3,3); BW...

6 years ago | 0

| accepted

Answered
Variable plot title and legend
Other way apart from @Star's Answered: For variable data title plot, see this example: xmin=input('please input your minimum va...

6 years ago | 0

Answered
Finding the Sum of a Finite Series
No need any loop, just check here https://in.mathworks.com/help/symbolic/symsum.html Still having trouble, let me know?

6 years ago | 0

| accepted

Answered
How to save image with its original name?
Please see this example, you may able to fix it Images=dir('C:\Lab\Hand stage 4\*.png'); % Complete path outDirectory='C:\Lab...

6 years ago | 0

| accepted

Answered
for loop inside a if else loop
In each iteration code store the p2(i, j) element. After the loop execute, you may use unique function, ?? result=unique(p2); ...

6 years ago | 0

Answered
Sum two arrays using logical indices
c=a.*(a_logical)+b.*(b_logical) c = 1 3 4

6 years ago | 1

| accepted

Answered
Matrix Dimension does not agree when using ==
May be both Image having different size. Please make them same size and type and do compare. Use this way isequal(I1,I11) W...

6 years ago | 1

| accepted

Answered
how to get exact pixel value of the point marked in pen
Steps: Use loop to call one by one image Read the image (RGB2GRAY) / For Color thesoholding RGB2GRAY is not required Segment...

6 years ago | 0

| accepted

Answered
Normalize y axis in Matlab histogram2 Percentage
This example gives you the hints, just divide the y with total elements ran_data=randi(15,[1 150]); % Just random data [resul...

6 years ago | 0

Answered
How to store each for loop array values in avariable?
ret=[]; for n=1:b(2) ret=[ret P1*P2(n)] end

6 years ago | 1

| accepted

Answered
How to raise a matrix to multiple powers 0 to 100.
mat=..?? % Define the given Matrix mat_result=cell(1,100); for i=1:100 mat_result{i}=mat.^i; end

6 years ago | 0

| accepted

Answered
Error: Index in position 1 is invalid. Array indices must be positive integers or logical values
Here is the issue? In first iteration, when i=1; temp_data=data_final(find(data_final(:,2)==i),:); Does not find any data, wh...

6 years ago | 1

| accepted

Answered
How to crop detected face part?
Please see my this answer, it may help

6 years ago | 1

Load more