Community Profile

Contact

Top 10% contributor

us, Your solution is very appealling to me, esp the brevity of it. I looked at mine again. I works only on row vectors so ...

11786 views

Responded 6 years ago

us, Thank you for your reply. I hadn't considered the boundary conditions (arrays with variable length digits) as I was looking...

Hi per, Thats a very novel approach you have taken. It didn't occur to me to use the sscanf format specifier with padding. How...

Thank you for your reply Per Unfortunately, it has confused me a little. I believe sprintf and sscanf take string inputs whils...

While playing with something unrelated I found I could do num2str(1234)*1+'0' => [1, 2 ,3, 4] Now to work out if i can avoid c...

Hello, I've been doing project euler exercises as a way of revising matlab. For a number of the problems I have come up with so...

Posted 6 years ago

Actually, the description lisp-like is not correct. Maybe lambda expression evaluator is a better one

9124 views

Bruno Thank you for pointing me to this function. It has actually answered my question. An anonymous function is a closure whi...

Bruno, Please create an m-file and put the following code in it function res = sumv() end then run it. I get an answer of 15, ...

Hi Bruno, I see where you are having issues with iff and its use for recursion. You are correct that iff will evaluate both con...

Bruno I encourage you to read the entire post. The recursion does work when declared inside an m-file (My query is about scope ...

Hello, I have been playing with anonymous functions. As you cannot have if or while statements, I am trying to see if I can emu...

40:pi/3); vectors here will be pi/2, the 2*pi/3, resp., Roger, Thank you for your help. This is exactly what I wanted. Sin...

1797 views

Responded 7 years ago

Hi, I am currently working on a project that has a doubly- nested for loop. I wish to vectorize the loop as its takes too long...

Posted 7 years ago