You have to use the “&” symbol
to remove all the special characters and quotes.
Then you can just append it with a space to combine the two strings together like this:
$str = ‘SMS/ sms like this 😉 “&BBS”=>sub(“&BBS”,”bbs”,$str),
$sub(“&BBS”,”bbs”,$str) = sms like this 😉 ”
sms like this 😉 ”
By the way, I highly recommend using this:
$str = preg_replace(“/[‘
to remove all the special characters in your strings. If that doesn’t work, use these:
$str = preg_replace(“/[
$str = str_replace(“&”, ” “, $str);
Function to draw a polyline from a set of randomly generated coordinates in Matlab
I have a vector of coordinate pairs where the first element in each pair is the x coordinate and the second element is the y coordinate.
I want to be able to run a line through each of these points and then update the line whenever the point is moved.
Is there an efficient way of doing this?
I have tried to use the findobj function but found that it is slow with too many lines.
You can use the plot function to draw lines, it’s easy and fast. Make sure you delete your existing lines first. You can get a handle to the line with the handle function and change its properties.
plot(rand(50,1), rand(50,1), ‘ro’, ‘linestyle’, ‘none’);
hLines = gca;
hLines(1).Position = [0 0;.6.6];
Thank You for attention. The new version of this driver is ready.
This is a great effect for a 1st time. I do not see any ‘dead’ spots at all, it’s still clear on all of the parts. The smoke has a nice blue glow which makes the color of the lava stand out nicely. It’s a great make and very easy to do.
Excellent staining, and a cool effect. I like the intensity of the black stain, and how it just bleeds into the white. And the smoke, I’m not one of those who likes both pieces of art showing entirely smoke, but I do understand that sometimes it’s necessary.
This is a well-done staining piece. The depth of the stain in the deeper spots was excellent. The lightening you did to illuminate the volcanic action is nice – perhaps a tad too much, but you did it very well. The smoke makes sense as it filters in and out – it’s a very good effect.
Nice staining! It really brings out the red of the hot lava, making it look like it’s burning hot. The smoke is also a good effect, although I don’t like the colored particles. Other than that, it’s a really nice piece of work!
TUESDAY TRIVIA QUIZ: Who is the Lord Mayor of London?
Thank you for my “lesson” on staining. I am a newbie stainer and used the smoke (s_c_o_m_o) for my first time and I really liked the result! It was so easy and gave me a good start with my staining.