Answered
I am getting an error "Undefined function or variable 'Dictionary'".
%What I understood: Your code Case 1: Switch statement; dictionary variable; Case2: execute; %Gives error >>Suggested Mo...

8 years ago | 0

Answered
How do I calculate the toxicity of a material in image?
Dear Prateek, As per my limited knowledge, I don't think toxicity can be measured based on the image analysis. Toxicity is r...

8 years ago | 0

Answered
No errors in my code but the program stays busy forever?
%Yes it's having millions of numbers of loops % Testing Purpose reduces the values of following and check, is it still run fo...

8 years ago | 0

Answered
time domain and magnitude spectrum?
OK What you looking for. As per your code, I have not seen any error. You have generated two cosine signal having frequencies in...

8 years ago | 1

Answered
plotting more than 10 graphs in one plot
%You can change C value as per desired range for c=1:1000 %Here shown for c 10 graphs only t=0:.1:10; for c=1:1000 ...

8 years ago | 0

Answered
please how to write this in matlab?
% Are you looking for this one t=0:1:115; fs=500 % Assumed Sampling Frequency f=8; % Given 8 Hz cw=cos(2*pi*f/fs*t); subp...

8 years ago | 0

Answered
Can't Plot These Two ODE's On Same Plot
As one parameter is common "t". Create two y-axis for the different length plots. Check the following link https://in.mathwor...

8 years ago | 0

Answered
how to covert carrier to noise ratio (CNR) to Eb/No in matlab? if CNR=20db. thanks
%Data not sufficient in question, bitrate & Noise Bandwidth CNR=20; %Given in question B=input('Enter the Bitrate '); R=inp...

8 years ago | 1

| accepted

Answered
How can I change intensity Image Brightness without changing pixel value
Not possible without changing Pixels value.

8 years ago | 0

Answered
Getting two windows using figure & subplot when I only want one?
I think before first two lines, there is another figure (As "hold on" statement is there), so definitely return the 2 figure wi...

8 years ago | 0

Answered
How to read input images from the folder sequentially
% Save all images name in a sequence manner before doing the operation % names for example im1,im2,im3... %Save the...

8 years ago | 0

Question


Binary Image-Segment the largest Blob-Connected Pixels only (result=Image with largest Blob) and its Center of Gravity (Position)
@ImageAnlyst sir, I have checked your code previous answer, looking for the simplest answer. <</matlabcentral/answers/upload...

8 years ago | 0 answers | 0

0

answers

Answered
How to create multiple array with different name in for loop?
for i=1:10 fprintf('\n arr%i',i); fprintf('=[]'); end

8 years ago | 1

Answered
Hi everyone! I need your help.
%There is no error, %X=input Matrix for n=1:size(X, 3); for j=3:n; ss=sum((X (j-1)).*( X (j-2))./ ((n-1) ...

8 years ago | 0

Answered
Testing the mean of multiple rand(N) variables
%initialize s=0, its give a different result. N=1000; s=0; for n=1:N x=rand(1); s=s+x^4/N; end dis...

8 years ago | 0

Answered
Why does my code produce a different graph every time I run it?
% In your code having a statement to create a random matrix, each execution it generates the different random matrix. B = ran...

8 years ago | 0

| accepted

Answered
copy element of matrix to matrix
%Suppose A is your Input matrix, B is your output matrix %if matrix is already generated within code, no need to input stat...

8 years ago | 0

Answered
Clean used variables while a functions is runing
% you can use the clear variable % First Call the function c=test(a,b); clear variables; clear('test');

8 years ago | 0

Answered
Hello how do I plot plot function exp^(-x), x <= 0 and exp^(x), x >0, Thanks alot!
x=-10:0.1:10; y1=exp(-x); plot(x,y1); hold on; y2=exp(x); plot(x,y2); <</matlabcentral/answers/uploaded_files/109956/p...

8 years ago | 1

| accepted

Answered
Use a for loop to make half the image black and white
% Are you looking for this one in1=imread('download.jpg'); gray1=rgb2gray(in1); [rows colm]=size(gray1); for i=1:rows ...

8 years ago | 0

Answered
Plotting 2D graph problem with x-axis spacing.
%Note: range t from - to + t=-2:0.1:2; %x=-3:0.1:3; y=2.*(exp((t.^(2))/2)); plot(t,y,'linewidth',3); <</matlabcentral/a...

8 years ago | 0

| accepted

Answered
[HELP ] problem in reading multiple images
% Please save all images name in a symmetric manner before doing the operation % names for example im1,im2,im3... %S...

8 years ago | 0

Answered
orthogonal matrix with different size of rows and columns
%Answer Credit: StackFlow site A=randn(m, n); % random mxn rows x col R=orth( A.' ).'; % orthogonal rows O_Mat=bs...

8 years ago | 0

Answered
Create a loop with string
% save all text files in a symmetric manner before doing the operation % names for example text1,text2,text3... %Sav...

8 years ago | 1

Answered
I need to repeat a word using a loop
for a=1:7 fprintf('\nHello'); %\n for new line end

8 years ago | 0

| accepted

Answered
for loops, how to see the effect of a parameter
theta=2; beta=8; W=30; bound=W./(theta+beta) step=bound/1000; R=[0:step:bound]; for theta=theta:10 % you can change ...

8 years ago | 0

Answered
Greetings, how to extract each object and calculate their area based on example picture shown below.
k=imread('cell.bmp'); BW1=im2bw(k); BW2=imcomplement(BW1); % Apply condition calculate the pixels in certain boundary area ...

8 years ago | 0

| accepted

Answered
how to reduce the length of a string
You can delete the characters from strings- %Code: delete the last five character from strings, you can choose it another w...

8 years ago | 1

Answered
find max value within set parameters of matrix
% Here code is, hope I undestand your question array=[1 2 3; 9 7 0; 12 7 51]; % You can change the matrix size max_value=arra...

8 years ago | 0

| accepted

Load more