Using MapReduce with german CSV format
newStr = regexprep(str,',','.'); http://www.mathworks.com/help/matlab/ref/regexprep.html

6 years ago | 0

| accepted

Remove temporary install directory?
After installation, you can delete _temp_matlab_R2015b_win64.

6 years ago | 0

| accepted

Counting equal numbers that appear directly next to each other
escapeMaze.m: function [maxVal,nSteps,m] = escapeMaze(m,wallVal) mStartVal = max(m(:)); [m,status] = stepMaze(m,wallV...

6 years ago | 0

| accepted

While loop and if statement to choose between 2 criteria?
Start off with an *n* value that allows you to enter the *while* loop. The *while* loop should continue as long as *n* is not 1 ...

6 years ago | 0

| accepted

how to read string data from excel and write it to a text file delimited
So you have a cell array in Matlab that you want to print to csv format... If your cell array contains only numeric data, dlm...

6 years ago | 0

Finding the area between a graph and a line
The area below your curve and above Y=1000 is obtained by integrating (Velocity_milesph - 1000) over X values were Velocity_mile...

6 years ago | 1

Looking for something like a matrix version of randsample... [vectorization!]
Here's a pure matrix version of your bsxfun calls. It should be internally parallelized if your matrices are large. W_norma...

6 years ago | 1

| accepted

Tables: Left Outer Join without changing key names
Tell outerjoin to merge the keys. c = outerjoin(a,b,'Type','left','MergeKeys',true);

6 years ago | 2

| accepted

Order matrix elements as strings according to their value
Using your example: X= [0.5, 0.7, 1, 5]; Teams = {'Team1','Team2','Team3','Team4'}; You can sort X descending and kee...

6 years ago | 0

Better way to autoscale x axis a histogram
After plotting: axis tight axis 'auto y' axis tight makes both x and y axes fit the min/max values of the axis. Then ...

6 years ago | 0

How to clearify matrices in the editor?
Here's an example if you're building a matrix *with numerical data*. m = [1000,23,0,0; 100,1234,123,0; 0,0,1,1; 0,0,0,1]; ...

6 years ago | 0

| accepted

Matching matrices by time array
What you're describing is an outer join. Try working with tables in Matlab to make this kind of operation easier. Here is an...

6 years ago | 0

| accepted

How do I get matlab to recognize a date in a .txt file?
Determine what the delimiter of your text file is. Space, tab, comma, etc. Then read the text file with one of the Matlab text r...

6 years ago | 0

| accepted

Find value in interpolated data
Check out the <http://www.mathworks.com/help/matlab/ref/interp1.html interp1> function as well as the <http://www.mathworks.com/...

6 years ago | 4

How to pause a for loop until the enter key is pressed?
Use the pause command. for ind = 1:10, pause; disp(ind); end In the command window, you will need to pr...

6 years ago | 2

| accepted

calculate equality between adjacent elements in matrix
You can create a logical matrix (1 for true, 0 for false) by simply checking equality: B1 = ( A(:,2:end) == A(:,1:end-1) );...

6 years ago | 0

| accepted

How to use java class that I made in matlab?
Matlab has a java session that will only see your package if it's on that session's class path. You'll be able to import your pa...

6 years ago | 0

| accepted

how to select the best 15 scores
When you sort descending, the NaN values are actually sorted on top. You can use indexing to ignore NaN's before sorting. I'm ad...

6 years ago | 0

| accepted

How to save a structure as .mat?
*newfilename* is a variable in your workspace when you define it as newfilename = fullfile(newsubfolder, filenamei); In...

6 years ago | 0

| accepted

Export data using xlswrite. Data is in a cell array and numerical matrix.
The warning and error messages you receive are indicating (1) an Excel COM server cannot be opened on your machine, (2) direct w...

6 years ago | 0

Matlab Sudoku Row and Column Check
Katrina, You could approach this several ways, so the first big step is to decide on a framework that makes sense to you. It ...

6 years ago | 0

Find specific strings in text files
This is not a sophisticated or flexible parser, but it works on your data in a way that is relatively easy to understand and mod...

6 years ago | 0

| accepted

The data precision in readtable function
Hi Jennifer, The data is being _displayed_ with 5 significant digits in your Matlab workspace. However, the data is most like...

6 years ago | 0

How to read a csv which contains both string and numbers with diferrent number of delimiters at each row?
Hi Kelly, Guillame is right that this data is probably some version of xml that should be stored as an xml file and read usin...

6 years ago | 0

| accepted

How can I approximate a data set from excel and plot over the original set?
Hi Gavin, If you're looking to plot every N-th point (reducing the total sample by a factor of N), you can do this very easil...

6 years ago | 1

| accepted

Fixed symbol inside edit text
You could make two edit text boxes with a static text box in the middle. Callback handling could automatically switch focus from...

6 years ago | 0

I have 3*3 Matrix. I have to save these matrix into 3*1 form means i have to save only (1,3) (2,3) and (3,3). other (1,1), (1,2).........(2,3) remove.
S2 = S(:,3,:); This indexing means something like (all rows, third column only, all 3D). This means S2 will be a 3x1x20 arr...

6 years ago | 1

| accepted

xcorr says my signals have near perfect correlation which is impossible
Read the function documentation for corrcoef and xcorr. In your last example, with [cor,prob] = corrcoef(fPow,nPow), you are inv...

6 years ago | 0