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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 1

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 2

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 4

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

más de 8 años hace | 3

| aceptada

Respondida
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) );...

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

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

más de 8 años hace | 1

| aceptada

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

más de 8 años hace | 0

Respondida
Find the indices of elements of a cell array whose length is 1.
You can apply an operation to each cell using cellfun(). Below is sample code that checks if each cell contains one element. The...

más de 8 años hace | 0

Respondida
Plot a huge data in Matlab
Matlab can easily plot this data. Is each column of your 116100x4 double a separate variable that you want to plot? Try plott...

más de 8 años hace | 1

Cargar más