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

8年以上 前 | 0

| 採用済み

回答済み
Remove temporary install directory?
After installation, you can delete _temp_matlab_R2015b_win64.

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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 ...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 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...

8年以上 前 | 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...

8年以上 前 | 1

| 採用済み

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

8年以上 前 | 2

| 採用済み

回答済み
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...

8年以上 前 | 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 ...

8年以上 前 | 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]; ...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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/...

8年以上 前 | 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...

8年以上 前 | 3

| 採用済み

回答済み
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) );...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

| 採用済み

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

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 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 ...

8年以上 前 | 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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 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...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 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...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 1

さらに読み込む