Author Topic: Importing data into Matlab & Loop problem  (Read 776 times)

Offline nadeem

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Importing data into Matlab & Loop problem
« on: September 14, 2010, 06:38:08 PM »
I am new learner of Mat lab. I want to transfer a big followingdata from excel into Mat Lab. In Mat lab, I am interested to find polynomial ofX (constant) with different values of Y to get polynomial of each. Then I wantto double differentiate each polynomial with respect to X and put equal to zero.Then I want to solve this equation to get value of X. 
X: 1         2              3              4              5              6              7              8
Y: 9         8              7              6              5              4              3              2
Y: 7         6              5              4              3              2              1              0.5
Y: 9         7              6              5              4              3              2              1
---------------
--------------
 
In this procedure I am facing following problems.
1-     What should be format of file in importing datainto Matlab
2-     I will use coef = Polyfit(x,y,n) to get coefficientof equation. But, in Mat lab, I cannot find differentiation by usingcoefficient of an equation.
3-     How will I write the loop of program becausethere are lot of values

Offline England90

  • Jr. Member
  • *
  • Posts: 15
  • Matlab Forum
    • View Profile
Re: Importing data into Matlab & Loop problem
« Reply #1 on: October 22, 2010, 06:19:23 AM »
This problem I'm also trying to write programs, I think I need time will do!

Matlab and SimuLink Development Forum

Re: Importing data into Matlab & Loop problem
« Reply #1 on: October 22, 2010, 06:19:23 AM »