Change a for loop into arrayFun in Matlab, if possible.
$10-30 USD
Cancelled
Posted almost 10 years ago
$10-30 USD
Paid on delivery
I have a small for loop that I would like to convert to the arrayfun statement in Matlab. Not sure if this is entirely possible, but I would like to use as little for loop as possible. It should be very simple for experts of Matlab.
Thanks.
Avoiding for loops in any programming language is necessary so as to reduce execution time. Fortunately in Matlab there are many ways to do such thing. I could do what you want if 1) you gave me instructions and 2) gave me your m-file. I trully hope you choose me. If the price is not good for you, we could discuss it. Anywho. I would like to thank you.
Yours trully,
Ilias G. Patelakis
Hi.. I am MS in signal processing. I have 8+ years of experience with MATLAB. May I know the details. I am online only. If the task is eay, I can solve it now.
Let me know
Regards
Sumit
hi, i' m expert in matlab, mathemtics, physics,...
i have a lot of experiences in this fileds.
i will help u well.
pls, hire me.
i will try to help u.
best regards.
Hi, Interested. Can you send me the code. I'll do it within 2 hours.
##########################################################################################################################
Hi, this is where exactly I am strong at. This is what I have done hundreds of times. my colleagues comment is that if at all anything is possible without a for loop in matlab I would do it. I have converted a 300 lines code to less than 50 lines using array functions which runs in time lesser than 1/4th the original time. please let me know more details. I can help you right away.
Thanks,
Aman
I could take a look at your code. Using arrayfun is not necessarily faster then using for loops. It would be much more efficient if you can just use matrix math and avoid both for loops and arrayfun. Before accepting I would want to take a look at your code to make sure it can be improved. If it can't, I'll let you know so you don't waste your money. Thanks for your consideration.
It is entirely possible in matlab for for-loops to become matricies, however depending on the calculations involved it may add to complexity for some constants multiplying through null values that were generated due to two matricies operations