Community Profile

photo

uu tsi


自 2016 起处于活动状态

Followers: 0   Following: 0

统计数据

All
  • First Submission
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer
  • Triathlon Participant
  • CUP Challenge Master
  • Speed Demon
  • Solver

查看徽章

Feeds

排序方式:

提问


How to genneral a repeat array
I have a array a = [1, 2 , 3 ,4], I want to repeat every element 3 times. The result is [1,1,1,2,2,2,3,3,3,4,4,4]

7 years 前 | 3 个回答 | 0

3

个回答

已回答
How to change the linewidth of a curve in a graph by using code?
use *linewidth* x=linspace(0,2*pi); y=sin(x); plot(x, y, 'linewidth',2)

7 years 前 | 1

| 已接受

已回答
Sorting element pairs by differences?
the following is my code values = [1,2,1.5,1.9]; ss = nchoosek(values, 2); [~, idx] = sort(abs(diff(ss'))); res = ss(...

7 years 前 | 3

| 已接受

已回答
Data from multiple cells into one cell
I think you can use *end + 1* ex: a = {} while true a{end + 1} = rand(randi(5)) end

7 years 前 | 0

已回答
How to determine if a segment lies on a polygon?
you can use *inpolygon* function to check if a point in a polygon.

7 years 前 | 0