Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: vector manipulation
Replies: 3   Last Post: Feb 19, 2013 7:51 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Elnaz Sadeghian

Posts: 169
From: Tehran, Iran
Registered: 5/26/07
vector manipulation
Posted: Feb 18, 2013 2:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear all,

I want to subtract all the elements of a vector from an scalar one-by-one to get a scalar and I want to avoid looping.
For example say I want to do 8-[1 2] to get 8-1-2=5.
How can I do that?

Elnaz



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.