Answered
How to superimpose an image over a background at exact coordinates?
% You can think this way k=[1,1;243,1;243,223;1,223]; row1=243; colm1=223 im1=double(rgb2gray(imread('blu.jpg'))); %Im...

8 years ago | 0

Answered
How are multiple for loops handled by matlab?
assign k=1 n=10 if c(1)=c(10) if yes then only c(1 to 11)=c(1 to 11)+c(10) ...

8 years ago | 0

| accepted

Answered
Subscript indices must either be real positive
for r=0:0.1:2 mat(fix(r*10+1),:)=[1 r] % Considering only integer using *fix* end <</matlabcentral/answers/uploaded_file...

8 years ago | 0

| accepted

Answered
Plotting a power series
% I didn't find any error during running the code, May be there is logical error clc; clear; close all; N=...

8 years ago | 0

Answered
How to aplle the t,c/toc function to a frequencey/time graph?
while y>0 tic %do operation end toc

8 years ago | 0

Answered
HELLO.I need to find the difference between two plots in the same graph(deviation between model and experiment) and find the deviation between them. Can anyone please me how to do this?
For Difference, vector sizes must be the same. You can do the sorts of interpolation to make the both vectors having same size. ...

8 years ago | 0

Answered
How can I add borders to my figure
After Figure plot line Use box on; %at last box off; Another way Check <https://stackoverflow.com/questions...

8 years ago | 5

Answered
Why pitch function is not working ?
Please note that <https://in.mathworks.com/help/audio/ref/pitch.html picth> function was Introduced in R2018a For older versi...

8 years ago | 1

| accepted

Answered
How to make a thermometer-style graph?
Have you tried bar(y,'stacked')

8 years ago | 1

| accepted

Answered
What will be the solution of the following error?
a=rgb2gray(imread('blood.jpg')); A=imnoise(a,'gaussian',0.01); figure; subplot(1,2,1);imshow(a); subplot(1,2,2);im...

8 years ago | 0

| accepted

Answered
find minimum over a range of indices
As per the title of the question, I have answered here, as mentioned range of the indices min_data=min(data,[],'all') calc...

8 years ago | 0

Answered
How can I get output in decimal value instead of this in any matrix?
A11=vpa(100630679224332528093038612493543^(1/2)*15i)/(35184372088832-89772578325631179/35184372088832) >> A11 A11 = ...

8 years ago | 0

Answered
Move axis labels to bottom but keep axis at origin
In the figure you have provided, the modified baseline is 1 *You can modify the base kine of the bar see the example* Y=...

8 years ago | 0

| accepted

Answered
How to make zero-value bar in bar graph visible?
Change the color of the bar graph, use the different face color and edge color as following y=[75 91 105 123.5 0 150 17...

8 years ago | 0

| accepted

Answered
I want to find out the similarity between 2D histograms ?
im1=rgb2gray(imread('blu.jpg')); im2=rgb2gray(imread('download1.jpg')); [rows colm]=size(im1); im2=imresize(im2,[rows...

8 years ago | 0

Answered
can anyone tell me how to plot a three curves with different x and y values for all curve in single plot?
Check <https://in.mathworks.com/matlabcentral/fileexchange/46688-jzplotys-zip here>, It may be helpful. Also check <https://i...

8 years ago | 0

Answered
) Write a function centervalue(M) that returns the value of the central element of matrix M. You may assume that M has an odd number of rows and columns. Have centervalue call your function halfway. >> centervalue(magic(5)) ans = 13
% Please note center value for odd square matrics only % Following code for all square and non-square also function cent...

8 years ago | 0

| accepted

Answered
Sir, how to calculate EER equal error rate for the following data
*Based on my basic knowledge*: EER is the value where FRR and FAR intersect So you can draw the plot FRR Also, you can dr...

8 years ago | 0

| accepted

Answered
how to repeat this code for 3 tie intervals??
A=[1,tk,tk^2,tk^3; 1,tk1,tk1^2,tk1^3; 0,1,2*tk,3*tk^2; 0,1,2*tk1,3*tk1^2]; C=[qk,qk1,dotqk,dotqk1]'; for i=1:3 x=in...

8 years ago | 0

| accepted

Answered
how to do the 3d averaging ?
This is how you can do average of 3 D matrix average_data=mean(data,3); Mean of 3 rd dimension average_3plabne=me...

8 years ago | 0

| accepted

Answered
Delete value bigger than & smaller than, in a for loop
Get rid of multiple for loops, you can do the same by following a single line. new_vector=n(n>1000 & n<20000); See the fo...

8 years ago | 0

| accepted

Answered
Having trouble with saving figure of plot
clc close all clear clear all %% 0 deg source_dir='C:\; source_files=dir(fullfile(source_dir,'*.xlsx')); ...

8 years ago | 0

Answered
Comparing elements in one matrix in a loop
A=randi(30,20,1); %Random Matrix for Example th=12; %Some Predefined value [rows colm]=size(A); for i=1:rows-1 c=(A...

8 years ago | 0

| accepted

Answered
How do I scan a matrix with a size of 100* 100 by a 3*3 window?
There are numbers of function, you can do that, used filters check <https://in.mathworks.com/help/images/neighborhood-and-block-...

8 years ago | 0

Answered
Difference of matrix express with or without semicolon
I don't think, there is any difference, just two ways of representations. Doesn't seem any logical difference (conceptual). ...

8 years ago | 0

Answered
How can I resolve the following error?
ref=imread('test.jpg'); % Change the image Name figure, imshow(ref), title('Input Image'); A=imnoise(ref,'salt & pepper...

8 years ago | 0

| accepted

Answered
How to adjust a vector using an if function
A=[1 2 -4 0 -10 11] %This is just a example for k=1:length(A); if A(k)<0 A(k)=A(k)+1; elseif ...

8 years ago | 0

| accepted

Answered
How to write for loop and execute data
Check <https://in.mathworks.com/matlabcentral/answers/418968-i-want-to-apply-marker-controlled-watershed-segmentation-on-a-folde...

8 years ago | 0

Answered
How to Compute Covariance of 90000x1 vector and 80000x1 vector
cov(vector_1,vector_2);

8 years ago | 0

Load more