Comments on: Searching for permutations of a string in a list in MATLAB https://blogs.mathworks.com/videos/2014/03/07/searching-for-permutations-of-a-string-in-a-list-in-matlab/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Fri, 28 Mar 2014 19:10:58 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Ryan https://blogs.mathworks.com/videos/2014/03/07/searching-for-permutations-of-a-string-in-a-list-in-matlab/#comment-34907 Fri, 28 Mar 2014 19:10:58 +0000 https://blogs.mathworks.com/videos/?p=1363#comment-34907 I like the webcam addition. Need some better lighting!

]]>
By: Brad Stiritz https://blogs.mathworks.com/videos/2014/03/07/searching-for-permutations-of-a-string-in-a-list-in-matlab/#comment-34397 Tue, 11 Mar 2014 16:40:14 +0000 https://blogs.mathworks.com/videos/?p=1363#comment-34397 Thank you, Doug! That was my first effort using OCR to grab your code.. :o

]]>
By: Doug https://blogs.mathworks.com/videos/2014/03/07/searching-for-permutations-of-a-string-in-a-list-in-matlab/#comment-34350 Mon, 10 Mar 2014 14:09:42 +0000 https://blogs.mathworks.com/videos/?p=1363#comment-34350 Get rid of the space after double:

>>  [double('a') double ('z')]
Error using double
Not enough input arguments.
 
>> [double('a') double('z')]

ans =

    97   122
]]>
By: Brad Stiritz https://blogs.mathworks.com/videos/2014/03/07/searching-for-permutations-of-a-string-in-a-list-in-matlab/#comment-34307 Sun, 09 Mar 2014 03:46:48 +0000 https://blogs.mathworks.com/videos/?p=1363#comment-34307 Hi Doug, I had some trouble with your code in R2013b. As you can see below, I’ve isolated the error to where the alphabet integer-equivalent vector is generated. What do you think is going on?

Thanks,
Brad

>> needleBig = 500;
haystackBig = 125000;

>> randi([double(‘a’) double (‘z’)], needleBig, 3);
Error using double
Not enough input arguments.

% Test elements of the command individually..
>> double(‘a’)
ans = 97

>> double (‘z’)
ans = 122

>> [double(‘a’) double (‘z’)]
Error using double
Not enough input arguments.

% Is there a problem generating the vector manually? The following statement executes OK, so it’s not clear what the issue is?
>> [97 122];

p.s. since you asked for feedback, IMHO your window-in-window concept would convey a nicer impression with even lighting. (It’s a little gloomy-looking at present)

]]>