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: plot or mesh or ?
Replies: 5   Last Post: Jan 8, 2013 5:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tony Kittler

Posts: 109
Registered: 2/5/11
plot or mesh or ?
Posted: Jan 2, 2013 1:54 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I want to understand a function that has the following codes;

f1 =(1/2/epsilon)*(1+cos(pi*phi1/epsilon));
b = (phi1<=epsilon) & (phi1>=-epsilon);
f = f1.*b;

Here, phi1 is double and 256x256. The term epsilon is a constant, lets say 1.5
I have written the following codes to understand but the results are not meaningful. (I have tried mesh, surf, plot, contour commands instead of imshow)

subplot(2,2,3); imshow(b);
subplot(2,2,4); imshow(f);

Could you please help me to understand how f, f1 and b looks

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.