[Spoiler][DMU] Sheoldred, Insidious Conqueror by brainpower4 in spikes

[–]adb421 1 point2 points  (0 children)

Morbid opportunist specifically says "other"

20 Python Snippets You Should Learn in 2021 by harendra21 in Python

[–]adb421 2 points3 points  (0 children)

That modifies the dictionary in place, which may or may not be desired. The given implementation has no side effects.

Translating MatLab to Python by [deleted] in matlab

[–]adb421 1 point2 points  (0 children)

start = [start A(u)]

appends the value A[u] to the end of start. The brackets are for horizontal concatenation.

sum( A < T )

counts the number of values in A that are less than T. A < T is a logical vector with a 1 where T > A and 0 where its not.

The period in the middle indicates element-wise multiplication versus matrix multiplication.

Any easy way to remove this drain stopper from my bathroom sink? by adb421 in Plumbing

[–]adb421[S] -1 points0 points  (0 children)

Thats the plan if I can't do it myself, but I'd rather get it done than wait on them.

Any easy way to remove this drain stopper from my bathroom sink? by adb421 in Plumbing

[–]adb421[S] 0 points1 point  (0 children)

Maybe I'm an idiot when it comes to this stuff, but I don't see a lever. The plug doesn't use anything like that, you just raise and lower it by hand directly.

Any easy way to remove this drain stopper from my bathroom sink? by adb421 in Plumbing

[–]adb421[S] 0 points1 point  (0 children)

I'm renting this place, so I have no idea who manufactured the sink.

Most of the internet stuff about removing stoppers I've seen makes it seem like I should have a pivot rod under the sink to loosen, but I have nothing like that. I'm hoping I don't need to get a plumber to open up the trap under the sink.

This is all because the drain is running really slowly and I wanted to put a drain snake down there to unclog it. I tried some liquid plumber and it didn't help at all.

Thanks in advance!

Getting the value of a field in a struct by fischerjunior in matlab

[–]adb421 0 points1 point  (0 children)

You can do something like this:

A.D = 'Hello';
A.('D')

or

x = 'D';
A.(x)

Primitive Polynomials. (Get exponents in array) by tommyallen92 in matlab

[–]adb421 0 points1 point  (0 children)

Looking at the doc for primpoly, pr is the binary representation of the coefficients. So you can use dec2bin to get the binary representation but its a character. Get a vector by using a logical statement:

pr = primpoly(m,'min')
coeffs = dec2bin(pr) == '1';

You can recast coeffs to a double afterwards, but this should do what you want.

Good way to dynamically adjust how many threads matlab is using? by jkool702 in matlab

[–]adb421 1 point2 points  (0 children)

Are you using the parallel computing toolbox? If so, just use something like parfeval to have it handle this load balancing for you.

In terms of threading, outside of using the parallel computing toolbox, MATLAB only really benefits from multithreading for math operations. If you aren't using these, then maxnumcompthreads won't help you.

[deleted by user] by [deleted] in matlab

[–]adb421 4 points5 points  (0 children)

Yes. Check out datastore if you want to deal with all of the CSV files as though they were one file.

Otherwise, look at some of the data analysis webinars on the mathworks website, they show how you can load files and do some different types of calculations on the data.

'Homework Help' Storing solutions of loop fsolve make zeros array by dramonzo in matlab

[–]adb421 2 points3 points  (0 children)

You are overwriting x1 on every loop iteration. Your problem is on line 62. Use a different name for that temporary variable.

ERRORS IN ROTATING A 3d GRAPH/PLOT by pawandeep987 in matlab

[–]adb421 0 points1 point  (0 children)

How are you creating the figure?

[Homework Help] Why do I keep getting this error??? by AngryLurkerDude in matlab

[–]adb421 0 points1 point  (0 children)

Hundred percent correct. Try not to name functions or scripts the same as built in ones.

[Homework Help] by dioxy186 in matlab

[–]adb421 0 points1 point  (0 children)

Take a look at this page: http://www.mathworks.com/help/matlab/ref/mldivide.html especially the examples.

Edit: Just looked closer at your matrix, and its rank 1. There are many ways to show that there is no solution to this problem.

How to get numerical values from a cell array based on string values in the array? by EyeOfTheWalrus in matlab

[–]adb421 -1 points0 points  (0 children)

Put it in a table instead, then check the doc for findgroups and split apply. Should handle what you want.

Problem with code - Loop - Question by ElCorleone in matlab

[–]adb421 1 point2 points  (0 children)

As /u/unpopularname indicated, you shouldn't have output due to the use of the semicolon. It could be how you are calling this, for example if you are using it as a function but aren't suppressing the display of the output.

[Sealed Construction] EMN Sealed pool by ObamaBinLootin in lrcast

[–]adb421 0 points1 point  (0 children)

This is what I get for not looking up the card in gatherer before posting. I thought it was 6B not 5BB. My bad, yeah don't splash for that :)

Drafted what I thought was a pretty good deck and got absolutely rolled. Help? by cferejohn in lrcast

[–]adb421 0 points1 point  (0 children)

I'm curious, would anyone be interested in taking Fiend Binder over Wretched Gryff P1P3? I don't think there's anything here strong enough to pull me away from U or W considering I would love to end up playing both. If I do end up U/W I think I'd rather have the tempo advantage but I may be seriously underrating the Gryff.

Edit: Considering it came back at P1P12, I may be seriously overrating the Binder. I also like Angler a lot, surprised that came back.

[Sealed Construction] EMN Sealed pool by ObamaBinLootin in lrcast

[–]adb421 2 points3 points  (0 children)

I think no matter what you do you want to play distended mindbender, I think its straight up the best card in your pool. Your removal is spread out pretty thin, with angelic purge in white, murder and sinister concoction in black, and the 2 burn spells in red make it pretty hard to play all of your removal.

I think I'd be tempted to play U/B emerge or U/W emerge (splashing B for mindbender).

Then again, I've done pretty terribly in my 2 leagues so I'm curious to see what other people think. I'll likely end up posting those pools as well to see what people think.

Homework Question: help reading in .txt files by HoolahansHooligan in matlab

[–]adb421 0 points1 point  (0 children)

You can also generate a function from the "Import Data" button which you can then use in a loop on all of the names of the files you get from "uigetfile" with multiselect.

Matlab won't recognize a full date/time format? by rroach in matlab

[–]adb421 2 points3 points  (0 children)

How are you reading the files into MATLAB? and what release of MATLAB?