Skip to main content

Posts

Showing posts with the label Solutions

Add/Embed SVG to Blogger website

In this post I will tell you my method(trick) of adding SVG images in a blogger website or blog. Before starting , the first thin g I am assu m ing is that you are aware of SVG if you are here. If not please see S calable V ec tor G raphics Recently when I tried to embed a SVG image for a post on pygal, I tried uploading the SVG file and blogger Image uploader came up with an error, because of which I had to find some other way.  SVG File upload Error in Blogger  I started sea rc hing Google " Embed SVG in Blogger " . I found blogorrhea , w h ich gave some i nformatio n on add ing SVG directly as a markup , which worked , but I faced another problem using this . Also th is guy has used lot of Javascript which was confusin g for me, being new to using SVG.   So I first t houg ht of learning on h ow to embed SVG in HTML and t his on e worked out. Actually we can embed SVG in HTML i n following ways: Using Object tag Using Iframe tag Using embed...

Prompt the user to enter a number, a random number of times using Matlab

Problem Write a script that will:  Generate a random integer in the range from 2 to 5  Loop that many times to  Prompt the user for a number  Print the sum of the numbers entered thus far with one decimal place There are many signal processing applications. Voltages , currents , and sounds are all examples of signals studied in a diverse range of disciplines such as biomedical engineering , acoustics , and telecommunications . Sampling discrete data points from a continuous signal is an important concept. Solution This problem has been taken from the book A practical introduction to Matlab by Stormy Attaway We will solve this problem by using Matlab for loop and Matlab while loop. Also we will generate a random integer in the matlab using the rand function in Matlab within a given interval. Some of the concepts you need to know to solve this problem are as follows: 1) rand function in Matlab 2) for loop , youtube for loop 3) while loop , yo...