photo

John Pryce


Cardiff University

Last seen: 8개월 전 2012년부터 활동

Followers: 0   Following: 0

메시지

통계학

All
  • Thankful Level 2
  • Thankful Level 1
  • Solver

배지 보기

Feeds

보기 기준

질문


Classifying things into kinds
Increasingly often I want to do the following, so I want a simple vectorised way to do it - no "for" loops. I have n things. Ea...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


"set-theory" class
Has anyone implemented a class that implements sets, as in set theory, more neatly than MATLAB does at present? Set operations ...

거의 5년 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

거의 6년 전

질문


Point me to documentation of ReadYaml()
I am reading YAML files, and have been given some code that does this by calling data = yaml.ReadYaml('somefile'); It wo...

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


How do I delete all annotations on a figure but not do clf?
How do I delete all annotations on a Figure? I do not want to do "clf" since that loses attributes that I want to keep. Doing ...

7년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

대략 9년 전

질문


Problems with making graphics figures to include in documents
My need: Matlab to create figures for including in articles I'm writing. I use LaTeX with PdfTeX. So I prefer Matlab to convert ...

대략 9년 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

11년 초과 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

11년 초과 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11년 초과 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

11년 초과 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

11년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

11년 초과 전