Hi, I'm new to MATLAB and I have a problem:(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to create a multiplication matrix of sorts.

The first row will have numbers from 0 to 1 in steps of .0101

The first column will have the same, from 0 to 1 in steps of .0101

Then to generate the rest I will multiple each entry in the column by their corresponding row.

For example, the 2nd column, 2nd row entry will be .0101 * .0101

It will look like this:

0 .0101 .0202 ............ 1

.0101 (.0101 * .0101) (.0101 * .0202) ......... 1

.

.

.

1 ( 1 * .0101) (1 * .0202) ........... 1

The problem is, I dont know how to write a code to do this. I'm sure it involves a loop of some sort with indexing from 1 to 100. Can someone help me?

I thought this might help somewhere:

indexfinal=99;

0:1/indexfinal:1;

Indeed, it gives me the steps of .0101 I'm looking for.

I just dont know how to make it so that I can create a matrix like the aboveformentioned.

**Physics Forums | Science Articles, Homework Help, Discussion**

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

# Matlab: Matricies and Arrays

Loading...

Similar Threads for Matlab Matricies Arrays |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Matlab data into bins |

**Physics Forums | Science Articles, Homework Help, Discussion**