How to determine the cut off points

조회 수: 6 (최근 30일)
FIR
FIR 2011년 12월 20일
I ahvae to set the cutoff points for a matrix
forexample say have values from 1 t0 100 in one column....for this the cut of points should be foe ex
0-10.5
10.5-30
30-45.5
45.5-80
80-100
the cut off points should be determined by using discretization algorithm,please help ,how to use that algotithm,I have 100 rows and 5 columns,each column has different values
for example
column1=1 t0 100(random numbers)
column2=zeros and ones
column3=2000-3000(random 100 numbers)
column4=20-60(random 100 nimbers)
column5=200-600(random 100 numbers)
  댓글 수: 4
Walter Roberson
Walter Roberson 2011년 12월 20일
So this is just a matter of selecting random values in a particular range? You know how to use rand() to create a random number in a range.
So, if the questions are the same, then why was this one posted?
Do not keep posting a new question each time you feel like pushing people for an answer. Continually posting new questions just makes more work for the moderators who are responsible for keeping the questions tidy. That annoys the moderators, making them less willing to answer questions from you. The majority of the moderators are the same people who answer a lot of questions, so your strategy of posting repeated questions is working against you.
Image Analyst
Image Analyst 2011년 12월 21일
I agree with Walter. I have no idea what the "discretization algorithm" is, so unless you explain it we can't give you code for executing it. You seem to say the cutoff point is randomly chosen. Well, okay fine, but how many random locations do you want? Do all columns have, say, 5 cutoff points randomly chosen? Or do they have different numbers? You can look up randi() in the help so what additional help do you need from us?

댓글을 달려면 로그인하십시오.

채택된 답변

Jim
Jim 2011년 12월 20일
use for loop
for i=1:5
A{}=your algorithm for cutoff points(col1,col2,col3,col4,col5);
end
this will gives the individual cutoff point values for all the columns
  댓글 수: 1
FIR
FIR 2011년 12월 21일
Jan in
A{}=your algorithm for cutoff points(col1,col2,col3,col4,col5);
i did not understand this code can u explain plz

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by