Answered
RGB to gray pic
May be, is this to add all channels value to get the particular value #See Whats going on, same code, just be one line see the ...

25 days ago | 1

| accepted

Answered
Automated detection of diabetic retinopathy
https://www.mathworks.com/matlabcentral/answers/410844-does-svmtrain-still-work-on-matlab-r2014a-since-it-has-been-removed-in-r2...

1 month ago | 0

Answered
how extract specific values from matrix and build separate arrays?
One Way: Indexing %generates T in 3D T(:,:,1)= [0.4982 0 -0.8671 1.495 0.8671 0 0.4982 2.60...

1 month ago | 0

Answered
How to convert an image to binary matrix
>> ima=magic(3) % Lets suppose ima is a Image ima = 8 1 6 3 5 7 4 9 2 >> result=dec2...

1 month ago | 0

Answered
How to find intersection between two line
idx=find(x==y) And from the index, you get the value.

1 month ago | 0

Answered
help to identify the mistake
Its works for my sample image, I have choosed n more than>3, like 5,7....

1 month ago | 0

| accepted

Answered
How to write an complicated equation using matlab
c=2 % any value within 1 to 10 a=....;% Define a and b b=.....; O=angle(min(abs(median(a.^c)-b))) or c=4; %any value wi...

1 month ago | 0

| 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 1-by-2.
Seems you have to consider two loops, as temp is now 1 dimentional vector Look this way, to assign both indexing (spatial posit...

1 month ago | 0

| accepted

Answered
Random times for an event to occur.
Is this? #Hint tic while toc<4.5 pause(rand) %Because of random pause, time slots varry % do here end More help: here ...

1 month ago | 0

Answered
Error using reshape To RESHAPE the number of elements must not change.
Must be same, see Total Elements on wwf6=length(cleanAudio)*1 See the following example >> A=magic(4) A = 16 2 ...

1 month ago | 0

| accepted

Answered
How can we make this code shorter?
One Suggestion use array or cell array, where it can be, for example- #Instead of this MSE1=zeros(N,IterNo); MSE2=zeros(N,It...

1 month ago | 0

Answered
Face image preprocesaing filtering
You did not attach the sample image. The question is quite broad, it is quit unfair to answer image processing noise related que...

1 month ago | 0

Answered
How to draw an image showing different-sized "threaded" black circles?
Please modify as per your requirements rectangle('Position',[2 2 4 4]); hold on; rad=linspace(0.3,0.1,8) for i=1:8 viscircl...

1 month ago | 1

| accepted

Answered
Variable horizontal alignment of cell array's strings in annotation
cases = 18; percent = 0.3; dim = [0.1 0.5 0.1 0.1]; arrcell = {['there are ',num2str(cases),' cases'],['- - - -'],['the perce...

2 months ago | 0

Answered
Make image from csv files
Example : lat = importdata('mariana_latitude.csv') imshow(lat,[]);

2 months ago | 0

Answered
How can I calculate average of two values using a for loop
Why you are dealing with cell array, you cal do same with array, By the way ave = PTS./G is not the average PTS = {539 1220 996...

2 months ago | 0

| accepted

Answered
How to divide 2D histogram into four quadrants
You can manualy insert the line as required data=randi(100,[10,10]); hist(data); grid on; hold on; x_data=1:100; y_data=r...

2 months ago | 1

Answered
Is there a logical NAND operation in MATLAB like the logical AND operation '&'?
nand_result=~(A & B)

2 months ago | 0

| accepted

Answered
Help!! I'm trying to plot a function where the output changes with different values of the array. my for loop works, I can see the values changing. I just have trouble with plotting it. I get a graph with nothing in it! any help is appreciated!
gamma=0.268; dt=0.05; T=10; t=0:dt:T for tt=1:length(t) x=gamma*sqrt(((1-cos(0.7255*t(tt))).^2+(sin(0.7255*t(tt))).^2)/((...

2 months ago | 1

| accepted

Answered
How to generate triangular heatmap using matlab?
data=tril(randi(100,[15,15])); imagesc(data); colormap summer colorbar Plese DO modification and addition(labels) as per req...

2 months ago | 1

Answered
find a value and their related values in other columns
Let's example mat=[-3 0.01 0 0.04 +3 0.06 6 0.08 9 0.09]; data_cl=mat(find(ma...

2 months ago | 0

| accepted

Answered
how to create a phase plane in matlab
Quiver plot https://www.mathworks.com/help/matlab/ref/quiver.html http://www.thphys.nuim.ie/CompPhysics/matlab/help/techdoc/r...

2 months ago | 0

Answered
How to solve error " Undefined function or variable "
Save the function (Gauss_loglik.m) in the same directory (No clc or clear in function file)

2 months ago | 1

Answered
Segmentation and vertical length measurements
#NonTested, but providing the steps for the same- Convert the image to binary Apply Hit and Miss Transfrom to trace the outer...

2 months ago | 0

Answered
Change column name based on another vector
See the table and set accordingly https://www.mathworks.com/help/matlab/ref/table.html

2 months ago | 0

Answered
How to convert string "26/7" into a double variable?
X = str2double(str) converts the text in str to double precision values. Text is "22/7" This is not a number right "/" . What d...

2 months ago | 0

Answered
Is it possible Matlab shows the grid on the surface of the plot?
Change the faceAlpha (within 0 and 1) value, see, it may heps you (This is transperancy) surf(x,t,abs(r1),'FaceAlpha',0.5); Or...

2 months ago | 0

Answered
How to use a loop to increase polynomial order and store results
One way hints: Start with T(1) to T(10), Matlab doesnot allow zero indexing T(1)=t^1 for i=2:9 T(i)=[T(i-1),t^i]; end

2 months ago | 0

Answered
non zero elements in matrix
[r,c]=find(mat~=0)

2 months ago | 0

| accepted

Answered
How can i change the positions of numbers in a matrix
sort the matrix, you will get all rows at initails of rows numbers sort(matrix)

2 months ago | 0

Load more