Community Profile

Contact

Top 5% contributor

I plan to formally test the three versions. But a more simple question is the following: suppose we just have 2 dimensions. Why ...

0

Answered 1 year ago

I have a solution to my own question but I don't know whether it is the best strategy: Create an anonymous function that is more...

Answered 2 years ago

Dear all, thank you SO much for a prompt reply. I now have many suggestions but don't know which one is the best. I will test th...

Dear all, I would like to detect whether a string contains an alphabetical letter. A simple way of solving this problem is writ...

5 Answers

Asked 2 years ago

Thank you both. That is one big problem solved. The biggest remains though: how do I become as good as you guys are with regular...

Thank you guys, I was aware about the mat2cell trick but I also agree that it seems pointless to put data in a structure and was...

1599 views

Responded 4 years ago

Hi all, I have the following problem: I have a structure, say 'M', with fields 'names' and 'parameters'. There are k fields and ...

Posted 4 years ago

Hi all, I don't know anything about regular expressions and I have two questions: # What is the most effective way to learn ...

4 Answers

Hi, I have a string x and in order to determine wether it is a number one can do the following try flag = isnumeric(ev...

2 Answers

1

Asked 8 months ago

Hi all, I would like to write the following statements into a function z=zeros(5); z(1,1)=x(1)*cos(x(2)); z(3,4)=log(...

7 Answers

Dear all, I am slowly making progress on my learning of regular expressions. At the moment, I am trying to solve the following p...

3 Answers

Dear all, I have the following problem: I would like to avoid writing a function as an m-file. Instead (and ideally) I would li...

Asked 3 years ago

Dear all, I have two matrices A and B of respective sizes [na,m] and [nb,m], with na>=nb. Both matrices have the same number ...

Asked 4 months ago

Hi, I have a class C1 with a dependent property d and another class C2 which inherits from C1. When property d is called fro...

Asked 6 months ago

Dear all, In a symmetric matrix A of size [n,n], for two indices i and j such that 1<=i<=n and 1<=j<=n we have that A(i,j)=A(j,...

Dear all, I have to deal with arrays of dimension 4 or 5. So far, I can only think of 3 ways to represent such arrays. # ...

Asked 1 year ago

Dear all, I have the following problem. I wrote some code where I overload various operators (+ - * /) and I would like to ke...

Hi all, I have a function "myfunc" to minimize subject to a set of nonlinear constraints written in a function "myconstr". Th...

Hi, I would like to write two functions: 1- replace all occurrences of 'a(number)' and 'bb(number)' with respectively 'a_nu...

Dear all, Is there any way to have control over the variables entering the workspace of an anonymous function? I have been ex...

1 Answers

Dear all, I have two vectors A and B of respective sizes na and nb, with na>=nb. All elements in B are unique while the eleme...

Dear all, I have noticed using functions, nested functions and sub-functions considerably decrease the speed of execution. I...

Hi all and happy new year! I have the following simple problem. I have a function say res=myfunc(a,b,c) res=zeros(2...

Hi all, I would like to extract parts of a string. In particular, I would like to extract all elements between two limits LI...

Asked 3 months ago

Dear all, Suppose I have the following function function varargout=myfunc(f,varargin) atmp=cell(500,4); iter=0;...

Asked 7 months ago

Dear all, I am facing a problem I have not seen before. I have overloaded the plot function for a certain class. Up until 201...

0 Answers

Dear all, This, I guess, would be a simple question to most of you but it is not obvious to me. I have been developing a class ...

Hi all, I have the following problem. I have a potentially large number of objects. The objects are the nodes of a tree. Each br...

Dear Steve, Thanks a lot for the prompt reply. the example you gave works fine. In my application, I don't know what created t...

709 views

Responded 7 years ago

Hi all, Has anyone experienced this problem: "Non-scalar function handles will not be supported after ..."? first I had a func...

Posted 7 years ago