http://www.smanohar.com

Professional Interests: Cognitive Neuroscience

Answered

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

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

5 månader 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...

5 månader ago | 2 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...

7 månader ago | 0 answers | 0

Answered

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

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

8 månader 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 ...

ungefär ett år ago | 0 answers | 0

Answered

Parallel processing toobox not working on Ubuntu 18.04

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

Parallel processing toobox not working on Ubuntu 18.04

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

mer än ett år ago | 1

Answered

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

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

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

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

mer än ett å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 ett år ago | 1 answer | 0

Submitted

ensureStructsAssignable( destination, source )

Ensure two structs are compatible for subscripted assignment

mer än ett år ago | 0 downloads |

Answered

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

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

nästan 3 år ago | 0

Answered

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

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

nästan 3 år ago | 2

Answered

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

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

nästan 4 år ago | 1 answer | 0

Question

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

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

Answered

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

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

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

ungefär 5 år ago | 3 answers | 1

Question

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

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

Question

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

nästan 7 år ago | 0 answers | 1

Submitted

NANCAT

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

nästan 7 år ago | 2 downloads |

Submitted

groupMeans

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

nästan 7 år ago | 0 downloads |

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

ungefär 7 år ago | 3 answers | 0

Submitted

anovanTable

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

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

ungefär 7 år ago | 1 answer | 3

Question

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

nästan 9 år ago | 2 answers | 0