Programming in matlab. I have everything entered correctly, I just need help with iterating.(adsbygoogle = window.adsbygoogle || []).push({});

The program is similar to the following:

for i=0.1:0.99

calculates x1

for j=0.1:0.99

calculates x2

for k=0.1:0.99

calculates x3

for q=0.1:0.99

calculates x4

end

end

end

end

xtotal=x1*x2*x3*x4

I want to display all xtotal value, but the catch is I need i+j+k+q=1.

So for example i=.20,j=.25,k=.40,q=.15

TIA

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Need help with simple problem

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Need help simple | Date |
---|---|

MATLAB Help needed to fix a matlab code | Nov 8, 2017 |

Help needed in MATLAB , Please ( Simple question ) | Sep 19, 2012 |

MATLAB: Embarrassingly Simple Help Needed | Jul 7, 2011 |

Mathematica help needed, please (very simple?) | Mar 3, 2007 |

Simple help with matlab-dice game needed | Sep 19, 2006 |

**Physics Forums - The Fusion of Science and Community**