Are you asking someone to write the code for you? If so no one is going to do that.
I need help with the following problem in Matlab:
Transistor density can be predicted by d(t) = 30 (2^t/2).
Letting t=0 represent the year 1965 and t=45 represent 2010, use this model to calculate the predicted number of transistors per square inch for the 45years from 1965 to 2010. Let t increase in increments of two years. display the results in a table with two columns - one for the year and one for the number of transistors.
I am in desperate help here so any information would be greatly appreciated!!!!!!!
Well you are going to need to set up a loop that increments by and starts at 1965, but ends at 2010. At each step calculate the density and place that into an array with the corresponding year in a 2d array.
Do you know how to do loops? Do you know how to make an array?
Check out this page.
In the for loops they use (this is what you want) they increment by 1. You will need to change that to 2. Your index will look like 1965:2:2010. The part that confuses me about your problem is that you are suppose to calculate every two years, but then you won't calculate the density for 2010 if you start in 1965.
you are correct about the problem not ending in 2010 with I am doing incrememnts of 2 starting with 1965. I actually don't know exactly what the professor wants so i am just going to do it until 2009. thank you for your help by the way.
i tried to send you a PM but because i do not have enough posts i was not able to. Send me a PM so i can respond to it instead of "whoring" this post. thanks
that is true!
I am just very new to Matlab and after reading through many of the posts it appears that a lot of the users have SOME experience while I have none haha.
In all due honesty I don't even know where to begin with this equation
D(t)=30(2^t/2) in matlab or even on paper!
Well that equations says the density D is a function of time. More specifically the density varies as . In the problem it said that 1965 is . So and we see that the density is 30 for 1965. For 1966 and , so in 1966 the density is . Do you understand now?