A Ramjet or Scramjet has the advantage of any jet engine in that you can fly it in an optimal trajectory... you burn extra fuel climbing, but the reduced drag means it flys faster and further and much of the energy lost in the climb can be recovered in the dive on target... so high throttle to climb... low throttle to cruise to the target area and then high throttle again for the terminal phase for maximum terminal energy.
A Rocket can't do that exactly, but it can mimic it.
you can very well imitate the propulsion profile of the solid propelled missile as that of liquid propelled. However in the latter case as well ramjet the control over propulsion profile is very flexible (as explained by Garry in throttling mechanism)
This too can be achieved as follows:
Most of the missile including AAMs are made air to surface just by adding more solid dart in tandem..SLAMRAAM for instance.
In solid propulsion the darts are filled with specially configured shapes what we chemical engineering. call them GRAIN CONFIGURATION.
So for instance you want to have a surface to air missile demanding a high initial through put (boosting) & then maintaining specific impulse (a thrust measurement) you will have this configuration...(assuming burning from inside..missile also burn from the shell inwards)
more surface area greater rate of combustion..& then the star shape be dissolved & then you get a uniform thrust for levelling; range gain & less fuel burns...
For terminal boosting goosh it was difficult for us to simulate. you have to use very comples design such as these
so you see that when you go for different profiles in a single dart the geometry of grain becomes difficult so instead of achieving various profiles in a single dart you go for multiple darts there are easy to manufacture at mass scale with less precise geometery controls..
For example for terminal phase you can invert the grain profile & let the dart burn form shell inwards...such technique is easy & you get a very high dash but you also get a weight penalty by increasing dart number for each profile