Hi Everyone.
I would like to integrate the following using matlab:
\int_0^1 ~\int_0^x e^{-x^2} ~dy ~dx
looks pretty simple but don't know how to set up the embedded for loops for the integral with in the integral especially that the upper limit of the inner integral is x and not a number...
Hi All.
Can somebody give me a sample matlab code for Newton-Raphson Method for Nonlinear 4x4 System of Equations. I'm trying to set a very ugly one up and haven't seen NR before the beginning of this week. I've figured the NR for a single eqn but this is driving me nuts.
Hi All.
I have an equation that i want to numerically find the root of by using Newton Raphson. However the equation involves an integral which i am using the trapazoidal rule to evaluate. And here is the simplified version of it:
1 = e^{-cy} \int_0^1 e^{-y(1-x)} dx
So i am supposed...
Compared to the questions out there, my question seems VERY SIMPLE.
I have a code that generates a few graphs. Instead of super-imposing the graphs on one figure, I would like matlab to generate an animation of those graphs for me. I tried looking at help and my intution tells me that...
Hi All.
I am trying to rewrite a program that i have in matlab to one in fortran. as i chug along, i am comparing the results and i am getting funny answers. This is the program in have in fortran so far:
ccccccccccccccccccccccccccccccccccccccccccccccccc
program main
implicit...
Hi All
Matlab is displaying numbers with 4 decimal places and i hate when it does that for whole numbers. for example i have a matrix C(i) that starts off from 1 down to 150/275. When i multiply it by 275 i get the first entry as 275.0000 and the last as 150.0000 how do i turn that off or...
Hi All
I am new to fortran and there are things that I believe fortran should do and don't know how to do it - I am using fortran 77.
1- I know how to declare variables, but i do not know how to make sure that i start out with zeros and not use old data that might have been stored by a...
Hi all.
i am integrating in matlab and plotting the results in a y-verically and t-horizontally. Matlab automatically plots y versus the time step which is great. but what i need to do is re-label the t-axis so the actual time appears instead of the time step- so instead of from 0 to 1200, it...