MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28246] Re: Help
  • From: Ignacio Rodriguez <ignacio at sgirmn.pluri.ucm.es>
  • Date: Fri, 6 Apr 2001 01:52:54 -0400 (EDT)
  • Organization: UCM
  • References: <9aela9$nb1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try
q=Table[If[m[[i,j]]>s[[i]],(m[[i,j]]-s[[i]])/s[[i]]],{i,1,R},{j,1,C}]

Yannis.Paraskevopoulos at ubsw.com wrote:

> Hi all,
>
> I would appreciate your help on the following problem:
>
> assume that we have a matrix m with dimensions (RxC) and a vector s
> with dimensions (Rx1). Now what I want is to create another matrix Q
>
> If m[[i,j]]>s[[i]], then Q=(m[[i,j]]-s[[i]])/s[[i]], for {i,1,R},{j,1,C}
>
> I'm sure there must be an elegant and fast way to do that.
>
> Best Regards
>
> yannis
>
> Visit our website at http://www.ubswarburg.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.

--

Ignacio Rodriguez Ramirez de Arellano
Unidad de RMN
Universidad Complutense
Paseo Juan XXIII, 1
Madrid 28040, Spain

Tel. 34-91-394-3288
Fax  34-91-394-3245
e-mail: ignacio at sgirmn.pluri.ucm.es





  • Prev by Date: Re: Special Matrix
  • Next by Date: Re: Re: Automatic expansion of Log[a^n] for a,nexplicit positive integers?
  • Previous by thread: Re: Help
  • Next by thread: Serious bug in MatchQ causes crashes and incorrect results