I am trying to calculate the indefinite integral q_o_a to then calculate at the point of d = pi/2 (q_1). I have tried with function handles and a script function as well but I can't work out how to do this. It gives me the good indefinite integral such that q_o_a = 3200cos(d) * Sy/IXX (second half unimportant) but I can't managed to use this as I would like to.
First, thank you for understanding that MATLAB can’t run images of code, only actual code.
Second, do you want to solve for ‘R’, or do something else? If so, it would be necessary to know the value of the expression for ‘q_o_a’ at one or more specific values of ‘t’ and the other constants, none of which are currently defined.
Hi, sorry for the confusion, R, Sy, IXX and t are all constants and have been defined earlier. The only variation is d, from pi/2 to pi and I would like to evaluate the precise q_1 for pi.
If you want to vary ‘d’, that will require a loop (or arrayfun, however that is significantly slower than an explicit loop, so I rarely use it), for example with all the constants already in your workspace:
Reminder that definite integrals require the subtraction of the value at the lower bound. If you are using 0 as the lower bound then the indefinite integral is non-zero there.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.