# Sanjay Manohar

### UCL

http://www.smanohar.com Professional Interests: Cognitive Neuroscience

**Statistics**

RANK**1,759**

of 281,823

REPUTATION**32**

CONTRIBUTIONS

**12** Questions

**9** Answers

ANSWER ACCEPTANCE **
25.0%
**

VOTES RECEIVED**18**

RANK**5,918** of 19,061

REPUTATION**186**

AVERAGE RATING**4.70**

CONTRIBUTIONS**5** Files

DOWNLOADS **23**

ALL TIME DOWNLOADS**1712**

RANK

of 134,158

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to fit a curved surface to 3d data

For estimating a single Z-surface on an XY plane, I have had great success with the gridfit toolbox, downloadable from here. It ...

2 years ago | 0

Question

Matlab Live script editor font does not respect settings

I am using a live script and the code font is horrendous. It is not the monospaced font that is configured for code editors. W...

3 years ago | 1 answer | 0

### 1

answercurve fitting to step and impulse response

The data and the fit start 90 degrees out of phase! You probably need a phase term. sin(dx+c) If you know the curve is cons...

4 years ago | 0

Submitted

poincare_map

Given a multi-dimensional time series, find the points where the trajectory crosses a given plane. This is useful for finding pe...

4 years ago | 20 downloads |

Question

UnableToResolveHiddenFunction

I'm calling a function that I stored in a structure as a function handle. I get the following error Unable to find functi...

4 years ago | 0 answers | 0

### 0

answersParfor loop just hangs, CPU usage goes to zero

I was having the same parfor problem, until I noticed I had a "keyboard" instruction in my code.

4 years ago | 0

Question

How di I upgrade to a new version of matlab preserving my configuration?

I am running R2017b on a University computer, on a University license. I want to upgrade to 2018a, which is of course available ...

5 years ago | 0 answers | 0

### 0

answersParallel processing toobox not working on Ubuntu 18.04

Thanks all, the commands restoredefaultpath rehash toolboxcache solved the problem.

5 years ago | 1

How do you place text in same position of 12 subplots?

text( 0.5,0.5,'Hi','Units','Normalized' )

5 years ago | 3

Question

Parallel processing toobox not working on Ubuntu 18.04

I have installed Matlab R2018a on a fresh install of Ubuntu 18.04. I can't get the parallel processing toolbox to work. It s...

5 years ago | 1 answer | 0

### 1

answerSubmitted

ensureStructsAssignable( destination, source )

Ensure two structs are compatible for subscripted assignment

5 years ago | 1 download |

error loading path

I found this was because of an user access control problem. The file MATLAB\toobox\local\pathdef.m was not accessible. I had ...

6 years ago | 3

How to draw an arrow or triangle

This is not a MATLAB question. But for completeness, the answer should be % create a triangle head = [ 100, 100 ]...

6 years ago | 2

Matlab path problem on new R2015a installation

Hi I had this same problem. I found that I had a file called "strplit.m" in one of my toolboxes which I had downloaded from the...

7 years ago | 0

Question

nlmefit compound symmetry covariance pattern?

Hi, I am using nlmefit to fit a model of a "repeated measures" kind. The function provides very powerful control over the cov...

7 years ago | 1 answer | 0

### 1

answerQuestion

Covariance of parameter estimates in nonlinear mixed effects fit

I'm using nlmefit, and am trying to test the hypotheses using linhyptest. For that I need the covariance of the parameter estim...

8 years ago | 0 answers | 0

### 0

answersMulti-Line Colors in 2014

Thanks all for your help. For anyone who wants to do this in future: I finally got the answer by email from Claudette at Math...

8 years ago | 4

| accepted

Question

Multi-Line Colors in 2014

In 2013 and earlier I could do this to compare multi-line plots: % make up some data X1 = rand(5,3); X2 = X1+ran...

8 years ago | 3 answers | 1

### 3

answersQuestion

Possible sporadic bug in GUI?

I am getting the below exception, sporadically, usually triggered by mouse clicks anywhere on the GUI. Doesn't seem to be relat...

9 years ago | 0 answers | 0

### 0

answersQuestion

Figure Export - axes always duplicated

Whenever I export a figure in a vector format, or copy a figure and paste as a vector format, I get multiple copies of the axis ...

10 years ago | 0 answers | 1

### 0

answersSubmitted

NANCAT

Like CAT, but padding with NaNs. Doesn't complain if input sizes heterogeneous. Faster than CATPAD.

10 years ago | 3 downloads |

Submitted

groupMeans

MEAN(X,DIM,CATEG) - take the MEAN of X along DIM, but grouped according to a categorical variable.

10 years ago | 1 download |

Question

ANOVAN: Undefined function or variable "denommat"

Hi, I'm getting this error in ANOVAN: Undefined function or variable "denommat". I have 3 factors, one is a random effect (whic...

10 years ago | 3 answers | 0

### 3

answersSubmitted

anovanTable

Calls ANOVAN, but takes an N-dimensional array as the data.

10 years ago | 1 download |

Question

Matlab 2012b restore original menus and remove ribbon?

We have recently upgraded to matlab 2012b and horrified - can't find any menu items! Have spent 20 minutes fiddling with the rib...

10 years ago | 1 answer | 3

### 1

answerQuestion

Utilising Multicore on Linux Matlab 7.11 64-bit

I'm unable to get multicore working. I am running the following in a script: function partest X=ones(10000); for(a...

12 years ago | 2 answers | 0