photo

Nathaniel


ATK Space Systems

2012년부터 활동

Followers: 0   Following: 0

메시지

통계

All
MATLAB Answers

1 질문
10 답변

Cody

0 문제
51 답안

순위
2,359
of 300,744

평판
27

참여
1 질문
10 답변

답변 채택
0.0%

획득한 표
4

순위
 of 21,054

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위
11,849
of 170,597

참여
0 문제
51 답안

점수
520

배지 수
2

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Commenter
  • Solver

배지 보기

Feeds

보기 기준

답변 있음
Simulink Project with R2010b
I think that Simulink Project first shipped with release 2011b. If you're asking if there is some way to add Simulink Project...

12년 초과 전 | 0

| 수락됨

질문


Why isn't there a bsxfun block in Simulink?
Recently, I have found myself adding 1-line MATLAB Function Blocks to some models, of the form (though not necessarily always wi...

12년 초과 전 | 답변 수: 1 | 1

1

답변

답변 있음
Solving a Cubic Equation
The built-in function *roots* is what you're looking for.

대략 13년 전 | 0

| 수락됨

답변 있음
better way to improve performance of my code
Using varargin is what's killing you. You can get avoid this by constructing the cell array in the calling code, rather than re...

대략 13년 전 | 0

답변 있음
Input parser: default argument depends on another required argument, how to do this?
function yourFunction(n, varargin) p = inputParser; p.addRequired('n', @(x)(true)); p.addParamValue('opt1', zer...

대략 13년 전 | 0

답변 있음
How to define a variable that store its value after closing MATLAB file?
If you're getting undefined variable errors for something you thought was supposed to be a global, then you haven't defined it t...

대략 13년 전 | 0

답변 있음
getting error Subscript indices must either be real positive integers or logicals.
I'm assuming that you are intending p to operate as a function, but maybe you are not passing in a function handle? Matlab ap...

13년 초과 전 | 1

| 수락됨

답변 있음
structure in class
Have a look at inputParser. My typical class constructor goes something like this: function obj = myclass(varargin) p =...

13년 초과 전 | 2

답변 있음
read data from filenames in dir structure with function
Is this the first line of read_datafiles.m ? function [data1 data2] = read_datafiles(files, PathName) I would guess t...

13년 초과 전 | 0

| 수락됨

답변 있음
Slow down when accessing arrays
How much memory in your computer, and how big is N? If you run out of available physical memory, then you will spend a lot of t...

13년 초과 전 | 0

답변 있음
Adding zeroes to Row Vector using a script
It would be simple if you guaranteed that numel(x)/M is always an integer, but without that guarantee: function y = zero_in...

13년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

거의 14년 전

문제를 풀었습니다


radius of a spherical planet
you just measured its surface area, that is the input.

거의 14년 전

문제를 풀었습니다


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

거의 14년 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

거의 14년 전

문제를 풀었습니다


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

거의 14년 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

거의 14년 전

문제를 풀었습니다


inner product of two vectors
inner product of two vectors

거의 14년 전

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

거의 14년 전

문제를 풀었습니다


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

거의 14년 전

문제를 풀었습니다


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

거의 14년 전

문제를 풀었습니다


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

거의 14년 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

거의 14년 전

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

거의 14년 전

문제를 풀었습니다


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.

거의 14년 전

문제를 풀었습니다


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

거의 14년 전

문제를 풀었습니다


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

거의 14년 전

문제를 풀었습니다


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

거의 14년 전

문제를 풀었습니다


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

거의 14년 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

거의 14년 전

더 보기