Matlab Psychtoolbox Blink Rate Coding - matlab

I am trying to make a code that will extract the blink rate from my data in matlab. I am using ET files from Simulink data on an eye tracker and blinks are seen as NaN values. I am struggling with what the steps are to actually extract the data? I can see the numbers that are saved but I dont know how to create a code to gather the information I need. The code I currently have is trying to use nanzscore but MATLAB isnt recognizing the function and I am unsure why.. Any help would be greatly appreciated.

Related

MATLAB data tips - better accuracy

G'day,
Have been provided a p-code MATLAB program to find data tips from a graph. Attached is an image of a step response of unknown magnitude of a water tank system.
For better accuracy, I would like to extract data at discrete intervals instead of zooming in and attempting to click on a whole number. Is there a way of doing this through the graph/data tips, without writing code.
Is this even possible with a graph received from a P-code? or will I have to just average out multiple attempts.
Cheers

Read a .pfm file in Matlab?

I am currently working on a disparity map estimation project in Matlab. I am using the middlebury datasets including ground-truth disparities in PFM format. I don't know how to load this particular format in Matlab. Could anyone help me? Thanks
I have tried a simple load and then read in the documentation that the load function does not support the pfm format.

automatic way for determining ARIMA(p,d,q) - Matlab

I would like to ask you if there is any automated method for calculating the order of ARIMA(p,d,q) model for any type of a time series data, in MATLAB.
This will make the forecasting model more accurate and will also save me some time. I would appreciate if anybody could help me.
I'm not sure if that's what you are looking for, but maybe this post on Matlab File Exchange?
http://www.mathworks.com/matlabcentral/fileexchange/25611-arfima-simulations

MATLAB Optical character recognition - need help

I have to use mat lab to find a certain letter in a tif text image.In the spatial domain. I have no idea how to do this, and can't find any documentation other than complex code that uses loops, loops are forbidden. Yes, this is an assignment I don't want the answer just some direction on how to even start.
I want to use imfilter and use a letter as a template or filter to imfilter using correlation but from there I have no idea where to go and don't even know what questions to ask to find more info on mat labs site.
The write up makes it seem simple but I know nothing of this subject as I am a beginner so to me this is hard.
thanks
If you have the image processing toolbox I would suggest using the function normxcorr2. It calculates the normalized cross correlation between a template image and a larger image, which I think is what you want.
You don't need any for loops to use it, but the method itself probably uses for loops somewhere hidden in the code. I don't know if that counts..

how can i extract feature's of gyroscope,accelerometer and magnetomere?

I am a new learner about sensors. I have no knowledge about this sensors. However I have done some sensor module which contains with accelerometer,gyroscope and magnetometer. All of them have 3 axis data (X,Y,Z).Now i have data as a TXT file format but I couldn't find any solution for extraction this data features. I am going to use this data with NNet. Could anyone help me with making program in Matlab,please? Any suggestion and opinion will be useful for me.
Thanks in advance!
As zellus suggested, the reading from textfile is well documented in MATLAB. Look for functions textread or csvread.
As I understand it, you are looking for help understanding the data that you have collected. You may get some answers here, but you are most likely better off asking what you should be looking for in a physics/engineering related forum, then coming back here for help implementing your code if need be.
As a starting point, you could try:
Plotting the change in the data over time, for each direction.
Looking at the magnitude of each of accelerometer, gyroscope and magnetometer data (using norm), and plotting these over time
Making a scatter plot of the norms of, for example, acceleration vs magnetometer - is there any correlation?
Likewise a scatter plot of X acceleration vs Y acceleration, or X vs Z etc.
Remember, in MATLAB, the plotting tools are your friend.