# Sanjay Manohar

### UCL

http://www.smanohar.com

Professional Interests: Cognitive Neuroscience

**Statistics**

RANK**1 690**

of 257 868

REPUTATION**28**

CONTRIBUTIONS

**12** Questions

**9** Answers

ANSWER ACCEPTANCE **
25.0%
**

VOTES RECEIVED**16**

RANK**6 675** of 17 768

REPUTATION**136**

AVERAGE RATING**4.50**

CONTRIBUTIONS**5** Files

DOWNLOADS **43**

ALL TIME DOWNLOADS**1260**

RANK

of 110 088

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

ungefär ett år 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...

mer än ett år 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...

mer än 2 år 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...

mer än 2 år ago | 36 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...

nästan 3 år 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.

nästan 3 år 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 ...

mer än 3 år ago | 0 answers | 0

### 0

answersParallel processing toobox not working on Ubuntu 18.04

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

mer än 3 år ago | 1

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

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

mer än 3 år ago | 2

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

mer än 3 år ago | 1 answer | 0

### 1

answerSubmitted

ensureStructsAssignable( destination, source )

Ensure two structs are compatible for subscripted assignment

nästan 4 år 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 ...

ungefär 5 år ago | 2

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

mer än 5 år 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...

mer än 5 år 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...

mer än 6 år 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...

nästan 7 år 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...

mer än 7 år 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...

mer än 7 år 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...

nästan 8 år 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 ...

ungefär 9 år ago | 0 answers | 1

### 0

answersSubmitted

NANCAT

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

ungefär 9 år ago | 4 downloads |

Submitted

groupMeans

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

mer än 9 år 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...

mer än 9 år ago | 3 answers | 0

### 3

answersSubmitted

anovanTable

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

mer än 9 år 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...

mer än 9 år 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...

ungefär 11 år ago | 2 answers | 0