Recent content by sosolid

  1. S

    Rainfall Data Output to .txt File

    It does not work; this is my code if month(i)~=month(i-1); Totmonth=[Totmonth,month(i-1)]; TotRain=[TotRain,sum(Rainfall)]; Totyear=[Totyear,year(i-1)]; F=TotRain'; T=Totyear'; m=[T F]; id = fopen('TEST.txt', 'wt')...
  2. S

    Rainfall Data Output to .txt File

    I am trying to write data to a .txt file and want each set of data in a column, so I want 2 columns. However I am currently only getting the entire data set in one big column. I am trying to output the year and the rainfall for that year into a .txt file. Can anyone help me with this?
  3. S

    Finding Range of Projectile Under Air Resistance

    I have made a program in Matlab to plot the path of a projectile with air resistance, however, I am lost as to how to obtain an equation for the range. I have found my displacements in the x and y direction by solving second order differential equations, it would be far too difficult to set the...
Back
Top