回答済み
Generate random number
Read the help of both functions and then take a look at NORMRND

15年以上 前 | 0

回答済み
how to find maximum and second maximum number from vector.
One of the easier alternatives: m1 = mode(x) xcopy = x ; xcopy(x==m1) = [] m2 = mode(xcopy) Another options uses ...

15年以上 前 | 0

| 採用済み

回答済み
load multiple files with a condition on the file name
dfBASF = dir('*BASF.mat') ; for F = {dfBASF.name} curF = F{:} ; % current file disp(curF) movefile...

15年以上 前 | 0

| 採用済み

回答済み
Expanding Matrix
No need for loops, cell2mat or cellfun. Here is the simple approach using indexing: % data A = [1 2 3 ; 4 5 6] e...

15年以上 前 | 0

送信済み


RANDBLOCK
scramble matrices using blocks (v2.3, mar 2011)

15年以上 前 | ダウンロード 1 件 |

4.0 / 5
Thumbnail

回答済み
Inserting rows (location specified by ID)
Take a look at *insertrows* that ... well ... insert rows at locations specified by row indices. The problem than becomes ho...

15年以上 前 | 0

回答済み
for loop
In the Matlab Editor, # select the text you want to tidy up # use the menu "Text" -> "Smart Indent" (or the shortcut, which...

15年以上 前 | 1

回答済み
Append numbers to matrix
Why bother? Simply read in the values, append to the previous matrix and do a simple RESHAPE when needed.

15年以上 前 | 0

回答済み
how to reshape an n x 1 matrix into a squre matrix using matlab?
This function will take any vector (or even a matrix) V and reshapesit into the smallest square matrix that can hold it. _Note t...

15年以上 前 | 1

| 採用済み

回答済み
Testing for identical numbers in matrix columns
Nothing shorter than: ~std(A)

15年以上 前 | 4

送信済み


MOVENAN (v1.0, mar 2011)
Move NaNs to the beginning or end of a column

15年以上 前 | ダウンロード 1 件 |

0.0 / 5

回答済み
Find index of cells containing my string
So, your original array was a cell array of cells with a single string. Use STRCMP and FIND to get the indices of the cells with...

15年以上 前 | 17

回答済み
Search nx3 array row-wise for 2 equal elements
Here is another idea. First create an upper triangular 3D logical matrix (OLP) in which the elements OLP(k,j,i) (with j>k) repre...

15年以上 前 | 0

回答済み
Adding arrays found using 'who' function
This is one of the (rare) cases EVAL comes in handy. evalStr = sprintf('%s+', Find_Target_Vars{:}) ; evalStr = evalStr(1...

15年以上 前 | 0

| 採用済み

回答済み
.coe file in matlab
Here is the link to the documentation: <http://www.mathworks.com/help/toolbox/filterdesign/ref/coewrite.html>

15年以上 前 | 0

| 採用済み

回答済み
Random values from histogram
Standing on the shoulder of a giant WR, the following run-length based code will create a random list of 10 values that are deri...

15年以上 前 | 2

| 採用済み

回答済み
Transfer the data from dos command prompt to MATLAB GUI text box
Check the help of the OS how to copy/paste from the command window.

15年以上 前 | 0

回答済み
Randomly generate a matrix of zeros and ones with a non-uniform bias
The following gives you a matrix with exactly a certain number of 1's sizeR = [3 4] ; num1 = 8 ; R = zeros(sizeR)...

15年以上 前 | 3

回答済み
Problem with Inputdlg function
You can set the resize option of inputdlg to on, as described in the help, although I doubt this will help you a lot. However,...

15年以上 前 | 0

| 採用済み

回答済み
Permute matrix elements across rows
I suggest to split the matrix into the elements you want to make combinations of using MAT2CELL X = [2 4 1 ; 5 3 6] ; % a dis...

15年以上 前 | 1

回答済み
Simulating human vision system.
There is no answer for this question (if it is a question at all ...). I can only give you this advice: go to the one who asked ...

15年以上 前 | 0

回答済み
Loop that creates arrays
If all the arrays are vectors (=1D arrays in matlab) you can store them in a matrix (=2D array). % Pre-allocate an matrix wit...

15年以上 前 | 3

| 採用済み

回答済み
Cutting rows and columns from a matrix
See ANY (or ALL). You need a two step approach: A = [1 0 1 0 ; 1 0 1 0 ; 0 0 0 0] B = A(any(A,2),:) ; % remove null rows ...

15年以上 前 | 1

| 採用済み

回答済み
How do I use randperm to produce a completely new sequence (no numbers in same place)?
I just resubmitted RANDPERMFULL to the FEX. It will be available in few days. To the OP, should the next permutation be diffe...

15年以上 前 | 1

送信済み


FLIPXYVIEW (v2.0, mar 2010)
flips (mirror rotates) the horizontal and vertical plot axes

16年以上 前 | ダウンロード 1 件 |

5.0 / 5
Thumbnail

送信済み


CELL2FLOAT
converts cell array into scalar float array (v4.0, jan 2010)

16年以上 前 | ダウンロード 1 件 |

4.66667 / 5

送信済み


UNIQUEWITHEQUALNANS
Set unique, treating NaNs as equal (v2.0, mar 2009)

17年以上 前 | ダウンロード 1 件 |

5.0 / 5

送信済み


BALLATSQ
Create a balanced latin square (v2.2, mar 2009)

17年以上 前 | ダウンロード 1 件 |

5.0 / 5

送信済み


NDLINSPACE (v1.1, feb 2008)
Generalized LINSPACE: linearly spaced values between mutliple points

17年以上 前 | ダウンロード 1 件 |

4.0 / 5

送信済み


FINDIND
find indices of matching elements between two matrices (v2.0, jan 09)

17年以上 前 | ダウンロード 2 件 |

0.0 / 5

さらに読み込む