Answered
No file or directory error when trying to read in an edf file
Please check the working directory, ensure that edf file present in the current working directory

28 days ago | 0

| accepted

Answered
How calculate daily, monthly, seasonally mean average and std?
%Load the mat file %Monthly len_month=length(unique(data(:,2))); or %use size(data(:,2),1) monthly_data=sum(data(:,end))/len_...

28 days ago | 0

Answered
why i got error on this coding for graphical method?
T=0:200:1400; f=(0.99403)+((1.671*10^-4)*(T))+((9.7215*10^-8)*(T.^2))-((9.5838*10^-11)*(T.^3))+((1.9520*10^-14)*(T.^4))-(1.2); ...

28 days ago | 0

Answered
Extracting Data from Script
Assign those varibles as output arguments function [u,data2,x_data]=AdvDiff m=0; x=linspace(0,1,10); t=linspace(0,1,10); s...

28 days ago | 0

| accepted

Answered
How do I extract numbers from a matrix, use them in equations in the program and then assign all numbers in specific columns to variables.
mat_data(row,cloumns) Use the conditional indexing, it great way to represents any matrix data. If you can share some specific ...

28 days ago | 0

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 ...

29 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 ...

2 months 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 ...

2 months 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...

2 months 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...

2 months 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...

2 months 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

Load more