Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'how to call/edit a matrix value?' topicStudent Support Forum > General > "how to call/edit a matrix value?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Megan
04/29/07 8:18pm

I want call matrix values in an if statement and set matrix values if the if statement is true, but I don't know how to do this in Mathematica. For example, how would I write the following in Mathematica code?

if(Matrix1(3,4)>0.5)
{
Matrix2(3,4)=6;
};

Sorry for asking a stupid question, but I was raised on C++, java, and Matlab, not Mathematica. Even after looking through Mathematica's help files, I have no clue how to write this.

URL: ,

Subject (listing for 'how to call/edit a matrix value?')
Author Date Posted
how to call/edit a matrix value? Megan 04/29/07 8:18pm
Re: how to call/edit a matrix value? yehuda ben-s... 04/30/07 09:15am
Re: how to call/edit a matrix value? kostas 05/05/07 03:00am
Next Comment >Help | Reply To Topic