Question

Finding values corresponding to row and column index of a matrix

I have a matrix 'A'. I would like to find the elements in 'A', corresponding to the indices given in 'row_index' and 'col_index'...

4 mois ago | 1 answer | 0

Question

Counting specific element in one column corresponding to unique elements in an another column

I have two vectors a and b. I want to count how many times the value '-1' appears in b corresponding to unique elements in a. Is...

7 mois ago | 2 answers | 0

Question

Fitting a sigmoid curve using curve fitting tool box

Hi, I am trying to fit a sigmoid function to the underlying data with the goodness of fit. I was using the curve fitting tool bo...

7 mois ago | 2 answers | 1

Question

Estimating the X and Y coordinates from optical flow method

Hi, I am trying to detect moving objects to obatin their corresponding X and Y coordinates from a video. I was using 'opticFlow'...

11 mois ago | 0 answers | 0

Question

Plotting line plots and histogram in a single figure

Hi, I am trying to draw a 'bar' graph in a single figure together with a line plot. I am using an image called 'arena_image' an...

plus d'un an ago | 0 answers | 0

Question

Plotting bar graph for loop values

I am trying to make a barplot of the values in vector's 'count_gn', 'count_bn', 'count_hn' and 'count_ar' as a seperate subplots...

plus d'un an ago | 0 answers | 0

Question

Keeping plot titles in desired location

Hi, I am trying to keep the title of the plot towards the right side of the the figure rather than on the top. I wrote a code fo...

plus d'un an ago | 1 answer | 0

Question

Making video from an animation

I am plotting few graphs and trying to make movie out of it. The code runs without error. But unfortunately the video is not sav...

plus d'un an ago | 1 answer | 0

Question

Plotting elements corresponding to a matrix

I have a matrix as shown below. NaN 5.0000 5.0000 6.0000 6.0000 7.0000 7.0000 0.2000 26.00...

plus d'un an ago | 1 answer | 0

Question

Plotting multiple object trajectories together with their identity

Hi, I have a matfile 'a' which have the time in the first column, identity of objects from the first row of second column till ...

plus d'un an ago | 1 answer | 0

Question

Shading specific regions in a plot

Hi, I have a plot as attached in the picture. I would like to shade a specific portion of the plot and add labels to it. For eg:...

plus d'un an ago | 1 answer | 0

Question

Making plots look beautiful

Hi, I made a plot which displays the condition of cars of a particular brand overtime. What i would like to do is to make the p...

plus d'un an ago | 2 answers | 0

Question

Organising cells from a cell array

Hi, i have a cell array 'a' which is of the form as shown below. I wanted to remove the empty cells from the cell array keep the...

plus d'un an ago | 1 answer | 0

Question

Filtering data based index from a cell.

Hi, I have a matfile as attached. There are cells in the first column and within each cell, i have some data. What if i want to ...

plus d'un an ago | 1 answer | 0

Question

Calculating arc length of segments using interparc

Hi, I was using 'interparc' function to divide an arc in to 'n' number of equal segments. I expected each segment to give me eq...

plus d'un an ago | 0 answers | 0

Question

Implementing interparc function for dividing arc to segments

I want to divide an arc to equal segments. I found a function called as https://in.mathworks.com/matlabcentral/fileexchange/3487...

plus d'un an ago | 0 answers | 0

Question

Dividing an arc to a segment and comparing straightness among segments

I have a line segment as shown in the figure. What i want to do is to divide the line segments in to 'n' equal sections and calc...

plus d'un an ago | 0 answers | 0

Question

How to interpret statistics from glmfit

I did a logistic regression for binomial data and the stats obtained are attached with this. I am getting avery hard time to und...

presque 2 ans ago | 1 answer | 0

Question

Choosing bin size to include equal number of data points

I have 'time' of certain event to happen in first column and the 'probability of event to happen' in the second column. If i wan...

presque 2 ans ago | 0 answers | 0

Question

Counting the number of elements of a vector found between a range in another vector

I have a column which contains a range of values in a column 'Range' and another vector containing specific values in a column ...

presque 2 ans ago | 2 answers | 0

Question

Displaying time in the figure window

I have the data of time and coordinates of an object moving in a plane. What if i want to display the time coorresponding to the...

presque 2 ans ago | 0 answers | 0

Question

Merging two figures to a single figure

I have two figures as shown. What should i do if i want to merge both of the figures in to a single figure?

presque 2 ans ago | 1 answer | 0

Question

Seperating values from a category and plotting

I have made a group scatter plot for two categories/groups as shown in the figure. But i am not able to distinguish the red dots...

presque 2 ans ago | 0 answers | 0

Question

Calculating arc length of a curve

I have the trajectory for an object moving on a plane as shown in the figure. Can any one give me an idea to calculate the arc l...

presque 2 ans ago | 1 answer | 0

Question

Unique labelling of elements in scatter plot

Hi, I am trying to make a scatter plot with multiple groups 'forVisit' and ''. What if i want to highlight each 'X' and '0' base...

presque 2 ans ago | 0 answers | 0

Question

Converting video time to seconds

Hi, I have some time observations from video. They are in the format of time = [1.21, 1.5, 2.3, 2.5]. If i want to convert them ...

presque 2 ans ago | 0 answers | 0

Question

Using ismember to get the corresponding elements

Hi, I am using a function to convert the time to seconds based on specific input. 'time_data_observation_entry,real_time_vec,fra...

presque 2 ans ago | 2 answers | 0

Question

Calculating curviness of X and Y coordinates

Hi, I have the trajectory of a moving object in a plane. I would like to calculate the curvature of this trajectory (how wiggly ...

presque 2 ans ago | 0 answers | 0

Question

Plotting trajectories for each time step

I have the trajectory of an object moving in a plane with the time of detection, X and Y coordinates of the object. I am able to...

presque 2 ans ago | 1 answer | 0

Question

How to reduce the space between Yticks?

Hi, I am plotting a scatter plot with two groups on the Y axis. I want to reduce the distance between these groups in the plot a...

presque 2 ans ago | 1 answer | 0