Monday, May 29, 2017

How to sort a character cell array in Matlab

use
unique()

[Solved][Matlab]Deletion requires an existing variable

I was trying to set something=[];
and got the error


cause: I forgot to define that "something" before setting it to []. In other words, setting something to empty is not considered a way to define that variable

Thursday, May 25, 2017

[Solved][Mac] How to prevent Excel from converting your strings to dates

1. command + a to highlight all
2. command + 1 to format
3. select "Text"
4. Then type your content onto Excel

Monday, May 22, 2017

[Mac]Google Search Shortcuts: no longer need a mouse

How to move cursor to the address box:    command + l
How to move cursor to google search box at google.com:   directly type anything and you'll be there
How to open the first/second google search result: press tab, now you can use arrow to go up down, then command + enter to open that result in a new page

Saturday, May 20, 2017

[Solved]Charter Spectrum cannot log in. Ask for zip code and then Address. Cannot find address match

Short answer: use 63139 as ZIP code




Full explanation:
Charter Spectrum is merging its websites now. When you attempt to log in you will be asked to type a Zip code and then provide your address. However, your address will never be matched to their database and you will not be able to log in.

The reason is the ZIP code they asked for is NOT your zip code but their company's zip code, which should be 63139

After typing it you should be able to log in.

This bug will be fixed soon.

Wednesday, May 10, 2017

Multithreading in Matlab

parfor
https://www.mathworks.com/help/distcomp/parfor.html


spmd
https://www.mathworks.com/help/distcomp/spmd.html

Tuesday, May 9, 2017

[Linux] How to delete/remove the first line of a file

tail -n +2 file.txt > file.stdout



for more: https://unix.stackexchange.com/questions/96226/delete-first-line-of-a-file

Monday, May 8, 2017

[Solved]What does Matlab Boxplot do?

If you don't understand what the "error bars" the Matlab Boxplot does, you should read this.

Short answer:
Red line in the middle = median
Box edge = First and third Quantile
Whister ends = The default value for 'Whisker' corresponds to approximately +/–2.7σ and 99.3 percent coverage if the data are normally distributed


For more please read :
https://www.mathworks.com/help/stats/boxplot.html
and
http://www.purplemath.com/modules/boxwhisk.htm

Friday, May 5, 2017

Mac book doesn't have sound. Speaker has a cross on it and can't change volume

This occurred to me after I unplugged my Mac from an HDMI projector.

Solution:
System Preferences -> Sound -> Output -> Select internal speakers

how to tell whether your kindle is getting charged

After you plug in your USB cable, watch the tiny light next to it:
If it's orange, it's getting charged
If it's dark, something is wrong

Wednesday, May 3, 2017

[Mac][PC]Microsoft Office Word/Powerpoint can't delete words.

This happens especially when you are tracking your changes. Sometimes you can modify your texts by "highlight and type". Fixes:

Mac,

TOOLS>TRACK CHANGES> HIGHLIGHT CHANGES>OPTIONS> SHOW ALL> EDIT> CLICK "DELETE SELECT TEXT WHEN YOU TYPE" 


PC,
Tools>Options>Edit and check Typing replaces selection


For further information, please read this:
https://www.cnet.com/forums/discussions/backspace-button-won-t-delete-text-in-ms-word-308881/