how to create normal distribution by using matlab

后端 未结 1 828
暖寄归人
暖寄归人 2021-01-26 07:29

for information.. i have some about machine maintenance schedule...for recondition and overhaul machine.. from the schedule there are information of when each machine happened t

相关标签:
1条回答
  • 2021-01-26 07:34

    I am not quite sure what you want to do, but here are some possible answers to your question:

    • If you want to generate random data that follows a "normal distribution", use:

      data = mean_value + (randn(1,N) * standard_deviation)
      
    • If you want to parse out data from the "logfile text" you mentioned, you could try:

      line = [d1,m1,d2,m2] = sscanf(line, 'actual date---%d/%d (Recond) due date------%d/%d');
      

      This will parse out the day/month values from the text.

    0 讨论(0)
提交回复
热议问题