The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Substitution of Operators
Replies: 2   Last Post: Jan 18, 2013 10:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
John D'Errico

Posts: 9,130
Registered: 12/7/04
Re: Substitution of Operators
Posted: Jan 18, 2013 10:17 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Omid " <> wrote in message <kdbf2r$lfc$>...
> Hello everyone,
> I need to substitute one operator in my program with another operator (*. with *)
> but i do not know how it is possible.
> I would appreciate if anyone knows a function which do that.
> Thank you in advance

Use the editor? Find and replace should suffice.
Check each occurrence to make sure that .* was
not the real intended operator, or you will create

By the way, *. is not a valid matlab operator, but
.* is.

If you really insist on doing this programmatically,
I'd suggest that would be a foolish task. It is too
risky that you create bugs by letting a program
change all occurrences. Don't let your computer do
the thinking or you. Computers are a bit dumber
than people think they are.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.