답변 있음
how do I generate a random signal with each point being -1 or +1 in MATLAB
randi([0 1],1,N)*2-1 That should do it. Or even this: sign(rand(1,N)-0.5) Although it is possible that generates a ...

3년 초과 전 | 1

| 수락됨

답변 있음
What will be the regex for this type of string?
expr = 'V/d*_/d*_/d*'; Or, if 'any' actually means '1 or more': expr = 'V/d+_/d+_/d+';

3년 초과 전 | 0

답변 있음
Convert list of points into string and group it in tens
I would suggest putting each section in a cell, so you can easilly add the headers: points = randi(10,36,2); PointsPerSection ...

3년 초과 전 | 0

| 수락됨

답변 있음
Diary command does not capture command window results from a script file.
Even setting a full path for the diary file didn't work. DiaryFileName = fullfile(tempdir,'myFile.txt'); diary(DiaryFileName) ...

3년 초과 전 | 0

답변 있음
How to perform different task on one single button pushed one by one to perform one by one task
You can use a persistent variable to keep track of the number of times the callback was called: persistent NumberOfCalls if is...

3년 초과 전 | 0

답변 있음
Fast binary decoding of very large matrix of uint8s
It might not be the absolute fastest method, but this should be about 3 times faster x=uint8(randi(256,1e7,40)-1); tic y1 =...

3년 초과 전 | 0

| 수락됨

답변 있음
Error evaluationg 'OpenFcn' because of a waitfor command
You need to use return instead of guidata(hObject,handles) if the figure no longer exists. If you want more specific advice, yo...

3년 초과 전 | 0

| 수락됨

답변 있음
Indexing 3D arrays using vectors of indexes
The problem with indexing in Matlab is that it will grab every pair of indices, which is not always what you want. The easies...

3년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Create cell array of numeric arrays
Convert the input to a cell array, but only if necessary. If the input is a numeric array, return a 1-by-1 cell array contain...

3년 초과 전

문제를 풀었습니다


Low level NaN
* I have a dataset. Columns represents different variables. * A variable may start with NaN or any double type number. * If i...

3년 초과 전

문제를 풀었습니다


Get me!
Inspired by Now! problems. Do your best!

3년 초과 전

문제를 풀었습니다


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

3년 초과 전

문제를 풀었습니다


Ridge regularized linear regression
Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

3년 초과 전

문제를 풀었습니다


String Logic 3
Example: 'CAT' --> 'RPI' 'DOG' --> 'SDV' 'MATLAB' --> 'BPIAPQ' 'ROSY' --> 'GDHN' 'TRUST' --> 'IGJHI' 'MOSTLY' --> 'BDHI...

3년 초과 전

문제를 풀었습니다


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

3년 초과 전

답변 있음
How to operate block matrices?
Perhaps a function like pagemtimes does what you need. You will have to store your matrix as a 3-D matrix. Even if pagemtimes i...

3년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Solve a ballot counting problem

3년 초과 전

문제를 풀었습니다


NaN

3년 초과 전

답변 있음
Change description in File Exchange contribution
I just tried with one of my submissions that's linked to GitHub. If you click the edit button (see screenshot below) you will b...

3년 초과 전 | 0

| 수락됨

제출됨


BlandAltmanPlot
Create a Bland-Altman plot and return a struct with results and handles.

3년 초과 전 | 다운로드 수: 3 |

4.3 / 5
Thumbnail

문제를 풀었습니다


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

3년 초과 전

문제를 풀었습니다


Find files with extension ext in the current directory
List all files with extension 'ext' in the current directory. Return a char matrix with the name of files in rows. Return 0 if...

3년 초과 전

문제를 풀었습니다


Global usage
This Challenge is to utilize Global variables. Global variables are risky as the subroutine may inadvertently and unwantingly...

3년 초과 전

문제를 풀었습니다


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

3년 초과 전

문제를 풀었습니다


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

3년 초과 전

문제를 풀었습니다


Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

3년 초과 전

문제를 풀었습니다


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

3년 초과 전

문제를 풀었습니다


Numerical Integration
Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

3년 초과 전

더 보기