MATLAB code speed
I have a code implemented in MATLAB for content aware searching. i am planning to contact sites like google to have it implemented to search images on their site. but my code has some for loops which cuases the code to take some ime for completion. this would be the biggest hurdle to cross. is there anyway i can reduce... 5 Mar 2010 12:48
How to achieve ultimate summing speed?
Hi, I'm stuck with the following problem: I have a large matrix R, say of size 2000 by 500, and a threshold value k. For each row, I seek the numbers of elements that are below k. Hence, the output would be a 2000 by 1 vector. So far, I've used "Q = SUM( R < k , 2 )", which proved to be much faster than every... 17 Mar 2010 09:05
spm_select
When I try to select some files using the command: f = spm_select('FPList', fullfile(data_path,'functional'), '^PS.*\.img $'); From the data_path, which has the directory 'functional' in it (which holds the files) It comes up with: ??? Error using ==> spm_select Inappropriate usage. Error in ==> batch... 5 Mar 2010 12:47
Tensor Product
Hi, I have a 5xN matrix, A, which I want to multiply by a Nx1 vector, b, such that the first element of b multiplies all of the first column elements of A. Another way to say this is that I want to perform a tensor product called the Tracy-Singh or Khatri-Rao product. (The motivation for doing this is to save on... 5 Mar 2010 12:48
matlab function
matlab displays a mismatch error in normal m file and in function file for the following code: a(n,:)=a(m,:) but when n and m are replaced by constant scalars like 3 and 4 no error is displayed. ... 13 Mar 2010 15:20
String operation
Hi I have a string with 3 words in it "BLUE RED GREEN" I want it all to be in lower case except the first letter of each word . i.e "Blue Red Green" I know how to convert it all to lower case but im unsure how to keep each of the first letters as capitals. Thanks ... 6 Mar 2010 15:09
Call by reference / references
Dear Loren, The burning question I have is, why not just allow the programmer to force call-by-reference is desired? I can't think of a good reason not to have this feature in the language (although you may know of the reason). I am constantly up against this problem, and constantly getting "out of memory errors" in s... 5 Mar 2010 11:39
reading HDF5 dataset subset
Hi, I've tried your solution with R2008a (7.6.0) to adapt for my case and I get an error: ??? Could not read dataset. So, I've copied your code to see if it was my problem and I get the same error. ??? Could not read dataset. Error in ==> testhyperslab at 20 rdata = H5D.read(dset,'H5T_NATIVE_INT',mem_sp... 8 Mar 2010 04:14
xpc, tcp/ip connect error
Hi, I use xPC Target and after a few minutes, in my simulation I have an error: Executing the "CheckData" command produced the following error: TCP/IP Connect error I don't know how to fix this. Any help is appreciated. Marc ... 5 Mar 2010 11:39
Online training in Neural Networks
Hi! I have a question I could not sort out by the matlab documentation. I train a neural network, a feedforward MLP, and it seems that all the learning algorithms such as the backpopagation as well as the scaled conjugate gradient algorithm apply batch learning (updating of the weights are done after all the patt... 5 Mar 2010 19:36