필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to selected a variable point on the y-axis?

조회 수: 1 (최근 30일)
Sam
Sam 2014년 12월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
I've got 5 subjects who walk up the stairs. And I want to select the starting point for each subject. The starting point on the y-axis. The y-axis gives the distance. (look figure).

답변 (2개)

Joseph Cheng
Joseph Cheng 2014년 12월 22일
well there isn't a figure in your question. But a quick assessment would say you have some equation that would be distance = stair climb rate * time + constant. where your constant would be the initial stair position. you can use the rand() or randi() functions to generate your starting points
  댓글 수: 1
Sam
Sam 2014년 12월 22일
could you explain rand and randi please?

Image Analyst
Image Analyst 2014년 12월 22일
How about using ginput() to let the user specify the starting points?
  댓글 수: 2
Sam
Sam 2014년 12월 22일
I used ginput to select 2 datapoints. But the problem is that there are 5 subjects which each are measured minimum 4 times... So that are 20 figures... That a lot of clicking for the user. So I was looking for solutions to select datapoints without using ginput().
Image Analyst
Image Analyst 2014년 12월 22일
Hard to say since you're making us work blind. Maybe just select 2 and put the remaining three on a line extrapolated from the first two????

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by