Community Profile

University of Rochester

2.655 total contributions since 2014

Email: feel free to contact me regarding my shared files on the file exchange. I don't do free consulting outside of the forum so if you have a Matlab question, post the question to the forum and you may email me the link to the question.

About me: Finishing PhD soon on topics related to vision science; neurophysiology; sensory-motor feedback and control; control systems; steering & navigation; multisensory integration; top-down bottom-up feedback loop.

"If I had only one hour to save the world, I would spend fifty-five minutes defining the problem, and only five minutes finding the solution." -Albert Einstein

"An expert is a person who has made all the mistakes that can be made in a very narrow field." -Niels Bohr

"If you are not embarrassed by the first version of your product, you've launched too late" - Reid Hoffman

View details...

Contributions in
View by

setting axis ticks on heatmap
If you want to change the tick labels, h = heatmap(__); h.XDisplayLabels = % string array or cell array of character vectors ...

alrededor de 2 horas ago | 0

| accepted

Submitted

Draw randomly centered circles of various sizes
Set the range of radii, density, and other parameters to create a plot that draws randomly centered polygons with or without ove...

generating random , non uniform fiber distribution of circle in square
Using bubblebath() from the file exchange (see another demo here), figure('Color','w') ax = axes(); axis off S.axisHandle...

2 días ago | 0

Remove duplicate rows in table
Follow the demo. T is a table T.Test contains the test names which can be strings, character vectors, categoricals, or numeric...

2 días ago | 0

| accepted

Why is one of my tiled plots not being displayed? MATLAB UI App Designer
plot(ax4,theta(1:length(theta)-3),jerk,'c') % ^^^ you forgot this part

2 días ago | 1

| accepted

How do I measure density of random point with a fixed area in MATLAB?
Use histogram2() or histcounts2() to compute 2D density. Demo: xy = randi(400,50,2); subplot(1,2,1) plot(xy(:,1), xy(:,2),...

2 días ago | 1

| accepted

Creating matric of multiple arrays
Perhaps this (scroll down to see vectorized version)? x=0:12; k=5; a=k+x; b=k+2*x; c=k+4*x; d=k*x; Z = nan(2,2,numel(...

2 días ago | 1

Butterworth filter design calls bilinear and fails
You likely had another file on your Matlab path with the same name as butter. If the error happens again, the following command...

2 días ago | 1

| accepted

Generate a geographical heat map
I think this is what you're looking for. heatmap Note the change in inputs from matrix to vector of unique values. rng('def...

2 días ago | 0

| accepted

creating one output and 2 inputs function in script file
> Write a function in a scirpt file that has two inputs: a scalar z and the matrix M, hence y =f(z,M) Hint: z is not scalar in ...

2 días ago | 0

| accepted

Delete rows in a table where data in one column is below a value
> I want to delet all rows where the value of the data in the 4th columns is less than 0.1. T(T{:,4}<0.1,:) = [];

2 días ago | 0

| accepted

Replace elements in array
I wouldn't call this an algorithm. It's just indexing. If something more robust is needed we'll need a more detailed descripti...

2 días ago | 0

| accepted

How can I compare a datetime array with a timetable to delete all not existing days in it?
To match dates while ignoring time, use ismember() along with dateshift() to ignore time. Demo: TT is a timetable with dat...

2 días ago | 1

| accepted

Conditionals in Matlab app.designer?
Avoid using "==" to test equaltify for non-numeric and non-scalar values. For strings / character arrays, use, if strcmp(ap...

2 días ago | 0

| accepted

Extract the column/ row numbers or adress
> I would like to get the information on column numbers which got the value 1 For logical row vectors or numeric row vectors c...

2 días ago | 0

| accepted

error converting chars to string
Assuming Samples is a cell array Samples{m} = convertCharsToStrings(regexprep(Name, '\s+', '')); % ^ ^ If Samples isn't...

2 días ago | 0

| accepted

How do I use fitgmdist with a set of data that is not in a histogram format
You could fit the distribution to a tri-modal mixture of gaussians but very little data and a very narrow peaks (1-2 bars), you'...

3 días ago | 0

| accepted

How can I create three different subplots of a patch model, with different camera views?
Create the first subplot using subplot or tiledLayout. Plot your patch object(s) and set up the subplot to its final appearance...

4 días ago | 0

Combine vectors of different length into a matrix and perform ANOVA.
The dimensions you provided indicate that the vectors are row vectors, not column vectors. If you're performing a 1-ways ANOVA...

4 días ago | 0

| accepted

make the XTickLabel mouse sensitive in UIAxes
This demo uses a ButtonDownFcn function on the axes to detect when the left mouse button selects an x-tick label. The selection...

5 días ago | 0

| accepted

How to print same input file name as the output file name
How are you getting the input file name in the first place? If it's stored as a variable, use that variable to name the output ...

5 días ago | 0

| accepted

How to divide a signal into windows using loops
y=randi(100,1,11439); % Integers used for easy comparison n = 16; % must be even windowStart = [1, n/2+1:n/2:numel(y)]; ...

5 días ago | 0

| accepted

if any command to check table values
Assuming Y is a matrix, if any(Y>Threshold,'all') Conditional statements expect to recieve a scalar value. Your syntax was ...

5 días ago | 0

| accepted

How to plot wind vectors with quivers on a latitude/logitude plot
There are various types of map functions and it's not clear which one you're using. Here's a demo showing a quiver plot on a ma...

5 días ago | 0

how to set axis with different interval ?
Two methods below show log scale and categorical x axes. data = [ 3 10 5 11 7 09 10 1...

5 días ago | 0

Why do I hear nothing? sound function
According to the documentation, the sound data (first input to sound()) is an mx1 or mx2 matrix. Your sound data are 1x2001. So...

5 días ago | 0

| accepted

Deformed plots and extra windows plotting in matlab app.designer
You need to specify the axis handle. https://www.mathworks.com/matlabcentral/answers/503412-how-to-create-gui-plot-using-the-u...

5 días ago | 0

| accepted

How can I connect the points on my graph?
You need to store the values within the loop and then plot them after the loop. The changes will look something like this inco...

7 días ago | 0

| accepted

How to calculate how many plot tick would exist if the axis completely filled the figure
Given an axis within a figure, compute what the x and y axis limits would be if the axis extended to the edges of the figure. ...

8 días ago | 0

| accepted