Feeds
제출됨
Matlab-Defaults
My preferred defaults as a package with functions named after Matlab built-ins.
거의 4년 전 | 다운로드 수: 1 |
답변 있음
Binning data into a new matrix
Your code is returning counts only because you are only requesting the first output of histcounts yy = my_matrix(:,2); % ...
Binning data into a new matrix
Your code is returning counts only because you are only requesting the first output of histcounts yy = my_matrix(:,2); % ...
거의 5년 전 | 0
| 수락됨
답변 있음
How to generate a few timing signals as shown below?
Check out rectpuls(t,w); % w controls width of it; need to synthesize time vector and tripuls(T,w,1); % Use value of 1 for s ...
How to generate a few timing signals as shown below?
Check out rectpuls(t,w); % w controls width of it; need to synthesize time vector and tripuls(T,w,1); % Use value of 1 for s ...
거의 5년 전 | 1
| 수락됨
답변 있음
how to write superscripts for x-axis in a boxplot
% h=boxplot(x, g, 'notch','off','label', {'89_{p}','10007_{p}','3067_{M}'}); % You were using subscript operator (_) h=boxplot...
how to write superscripts for x-axis in a boxplot
% h=boxplot(x, g, 'notch','off','label', {'89_{p}','10007_{p}','3067_{M}'}); % You were using subscript operator (_) h=boxplot...
거의 5년 전 | 0
답변 있음
Replace specific/diagonal elements in Matrix using editor, scripting
% If this is to be called iteratively % Example while loop iteration = 0; while (iteration < numel(data)) % Some conditiona...
Replace specific/diagonal elements in Matrix using editor, scripting
% If this is to be called iteratively % Example while loop iteration = 0; while (iteration < numel(data)) % Some conditiona...
거의 5년 전 | 1
| 수락됨
답변 있음
Callback functions for displaying videos
% In app constructor ... % Initialize image app.Figure = figure('Name','Main Video GUI'); app.VidAx = axes(app1.Figure,'...
Callback functions for displaying videos
% In app constructor ... % Initialize image app.Figure = figure('Name','Main Video GUI'); app.VidAx = axes(app1.Figure,'...
거의 5년 전 | 1
| 수락됨
답변 있음
create struct with nx1 dimension
StructName = struct('FieldName1',cell(2,1),'FieldName2',cell(2,1)); % or StructName = struct('FieldName1',[],'FieldName2',[]);...
create struct with nx1 dimension
StructName = struct('FieldName1',cell(2,1),'FieldName2',cell(2,1)); % or StructName = struct('FieldName1',[],'FieldName2',[]);...
거의 5년 전 | 2
| 수락됨
답변 있음
morphological operation and filtering
Here are some ways of looking at it (although by only specifying baseline I am not sure I know what part of the signal you would...
morphological operation and filtering
Here are some ways of looking at it (although by only specifying baseline I am not sure I know what part of the signal you would...
거의 5년 전 | 1
답변 있음
Text mining. Using Regular Expression
It depends on how you would like to split the input. As entered, your expression evaluates to >> test = regexpi('string','\x','...
Text mining. Using Regular Expression
It depends on how you would like to split the input. As entered, your expression evaluates to >> test = regexpi('string','\x','...
거의 5년 전 | 0
| 수락됨
문제를 풀었습니다
Find state names that end with the letter A
Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...
거의 5년 전
문제를 풀었습니다
Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...
거의 5년 전
문제를 풀었습니다
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
거의 5년 전
문제를 풀었습니다
Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...
거의 5년 전
답변 있음
Convert Nx1 matrix into a single number
A=[1 2 3 4 5]; B=str2double(sprintf('%g',A));
Convert Nx1 matrix into a single number
A=[1 2 3 4 5]; B=str2double(sprintf('%g',A));
거의 5년 전 | 2
문제를 풀었습니다
Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...
거의 5년 전
문제를 풀었습니다
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...
거의 5년 전
문제를 풀었습니다
Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...
거의 5년 전
문제를 풀었습니다
Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
거의 5년 전
문제를 풀었습니다
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...
거의 5년 전
문제를 풀었습니다
Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
거의 5년 전
답변 있음
Multiplying 3X3 array by a 3x1
You can probably improve on this and in terms of actual efficiency I am not sure it's better than what you have, but I am assumi...
Multiplying 3X3 array by a 3x1
You can probably improve on this and in terms of actual efficiency I am not sure it's better than what you have, but I am assumi...
거의 5년 전 | 1
| 수락됨
답변 있음
i put the following code i got the error of "Unrecognized method, property, or field 'velocity' for class 'timeseries''.
Looks like driving_data is a timeseries class. My guess is your velocity information is stored in the .Data property. Try: v...
i put the following code i got the error of "Unrecognized method, property, or field 'velocity' for class 'timeseries''.
Looks like driving_data is a timeseries class. My guess is your velocity information is stored in the .Data property. Try: v...
거의 5년 전 | 0
문제를 풀었습니다
The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
거의 5년 전
문제를 풀었습니다
Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...
거의 5년 전
문제를 풀었습니다
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
거의 5년 전
문제를 풀었습니다
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
거의 5년 전
문제를 풀었습니다
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
거의 5년 전
문제를 풀었습니다
Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...
거의 5년 전
문제를 풀었습니다
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
거의 5년 전
문제를 풀었습니다
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
거의 5년 전