MATLAB: Partition vector in multiple parts using begin and end indices
vectorized array creation from a list of start/end indices
Unix separation of specific numbers from Column How can I separate specific numbers from a column and add it to a new file? For example, take all numbers that are "134" from column 3, I tried using   awk '$3 == 134" file.txt   but it didn't work, also tried using   awk -F, '{print $3 == 134 }' file.txt    didn't work.  Pink          132           134 Blue          189           167 Yellow        2000          134 Green         678           145 Black         789           145 White         780           135   So the new file will contain just the following   Pink          132           134 Yellow        2000          134 Image looks embossed when converted to SVG Some months ago I posted  about exporting Sentinel 1 scenes from a collection and was successful with help from .   I now have a new region of interest, which sits on the overlap between 2 scene footprints (sequential images in descending orbit). When I make a mosaic of the 2 scenes I get a small no data gap and lack of alignment between the 2 images:  // Create a geometry representing an export region. var roi = ee.Geometry.Rectangle([-62.67, -8.31, -63.25, -8.85]); var zoomPoint = ee.Geometry.Point([-62.35, -8.06])  // Load the Sentinel-1 ImageCollection. var sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD') .filterBounds(roi);   // Filter by metadata properties. var IW_H = sentinel1  // Filter to get images with VV and VH dual polarization. .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV')) .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))  // Filter to get images collected in interferometric wide swath mode. .filter(ee.Filter.eq('instrumentMode', 'IW'))  // Filter IWs to get High res. .filter(ee.Filter.eq('resolution', 'H'))  // Filter IW-Highs to get 10m res .filter(ee.Filter.eq('resolution_meters', 10));  // Filter to get images from different look angles var col_desc = IW_H.filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'));  // Spatially mosaic the images in the collection and display var col = col_desc.mosaic(); var colVV = col.select(0) Map.addLayer(colVV, {min:-17, max:-3}, "VV"); Map.centerObject(zoomPoint, 20);   What am I missing?  Are these scenes not acquired sequentially? A function $f: \mathbb R \to \mathbb R$ satisfies equation $f(x+y)=f(x)f(y)$ for all $x,y\in \mathbb R $ Continuous function on closed unit ball Take a continuous mapping $f: \bar{B^{n}} \rightarrow \bar{B^{n}}$, where $\bar{B^{n}}$ is a closed unit ball in $\mathbb{R}^{n}$. Assume that $f(x) \neq x$ for every $x \in \bar{B^{n}}$. Define another function $r$ by following the directed line segment from $f(x)$ through $x$ to its intersection with $\partial B^{n}$, and let the intersection point be $r(x)$. Is it immediately evident that $r$ is a continuous function? Is so how does it follow? Thanks. As I understand it, there are several models for what the universe could look like from the “outside”. I don’t know if any of these are outdated, so if they are please tell me if they are.   Expanding bubble. This model says the universe will never stop expanding, and the universe will die because the energy all turns to photons and gets spread out so much. Bubble that will eventually collapse. In this model the universe will stop expanding, and collapse. Everything merges into super-massive black holes, and the universe dies with fire. The universe is a torus. I'm not clear whether the size of the universe in this model is changing, but the central idea is that space is donut-shaped.   Those are the major ones that I have heard of. My question involves what I have heard to be the most popular of the three, #2. In this model, eventually something will "touch" the edge of the universe. Obviously, the first thing to "touch" it would be photons as they travel at, well, the speed of light. This involves all forms of energy in the universe, but I thought it might be easier to explain for something without mass.  What happens if some form of energy "touches" the edge of the universe? Logically, the energy cannot be lost without violating the law of conservation of energy. The only thing I can think of, is that it would "bounce" or be refracted off the edge.  I realize that it sounds silly, however if model #2 is correct then this situation will arise some number of billions of years from now.  I can only assume that there is either a new model that accounts for this, there is some complex explanation, or that model #2 is incorrect. Trouble with gradient intuition Website home page design when there are multiple audiences I am in the process of creating a website which has two distinct audiences - in my case consumers and retailers.  When I first started the process just a few weeks ago I had followed the then model used by PayPal who too have to deal with distinct audiences.    However, having Googled around a bit for what the accepted wisdom is when dealing with website landing pages for segmented markets it appears to me that the current belief is that one just directs the visitor away from the landing page to other, segment focused, pages ASAP.  I have to admit that I am having trouble buying that philosophy.  To my mind it makes sense to provide at least some basic information - key benefits - for each segment on the landing page and then let viewers who linger long enough the opportunity to easily drill down to their own segment-focused page.  My own reasoning is that most first time visitors are liable to want to bounce away quickly and making them find and click on the segment page link is more likely to make them bounce than if they find enough to hold them on the landing page for a bit longer.  I'd like to have other views on this.  What are the pros and cons of the    Drive traffic to segment-focused page ASAP vs Provide some basic information - at least key benefits - for each segment on the landing page itself I am creating a model of a glass and I would like to put a drawing on it (a png picture).  I know how to do it using Blender Render, but not with Cycles Render. Help :) Is the axiom of choice used in the proof that every open set is the union of basis elements (Mukres, Lemma 13.1) According to :     By looking for trades that take place in between the bid and ask, you   can tell when a strong trend is about to come to an end. This is   because these trades are often placed by large traders who take a   small loss in order to make sure that they get out of the stock in   time.   A trader when buying needs to buy at the ask price and when selling needs to sell at the bid price. So how can a trade happen 'in between' the bid and ask? I need help running python in ubuntu  I can run python without a problem in my terminal but when I create a .py file I can't get it to run. Virtual member call in a constructor How can I vertically center a "div" element for all browsers using CSS? How do I press Ctrl+Alt+Delete in VirtualBox? I'm running VirtualBox with Windows Vista as host OS and Windows Server 2008 as guest OS. To login to Windows Server I have to press Ctrl+Alt+Delete, but my host OS reacts on that so I can not send it to VirtualBox. How can I do it? Is there a way to solve this integral?  $$\int \frac{dx}{\sqrt{-ax^2 + bx +c}}, \;\;\;\;\; \forall\; a,b,c \in (0,+\infty) \;in\;R$$  I have tried it by changing of variable and by parts, but no result. I don't know what else to do.  Thanks in advance. "All the good people" vs. "all of the good people" So I had asked a question prior to this one about recurrence relations, but apparently it was a bad one to ask. So I'm trying again to understand how to solve these babies... Here it is:  $$ 3a_{n+1}-4a_n=0, n&gt;=0, a_1=5 $$  What is the general process for solving a relation like this? I tried the following code to replace QQ with ZZ, but it doesn't do what I want:  var1=QQ sed -i 's/$var1/ZZ/g' $file   However, this code does what I want:  sed -i 's/QQ/ZZ/g' $file   How do I use variables in sed? How do I get my Sony A7 II to avoid over-exposure and look more like my Canon camera? Hai.  I have a question, I switched from Canon to Sony a while ago and I found out that if I shot bright places, like the sky, the cloud that is supposed to be seen clearly, looks like a blown-out highlight (like real crazy), as you can see on my picture.  I have to set a low exposure just so the highlight is not blown out, and it’s only happening on Sony, not on Canon. On Canon the object is visible, but the background (cloud) is still seen all just fine.  Do you guys know what to change on the Sony to get that good look? Is it the setting or the lens? (BTW, I’m using a Sony 35mm f/1.8 lens.)