質問


Mapping locations of similar rows in two matrices
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 ...

約11年 前 | 2 件の回答 | 0

2

回答

質問


Can this be vectorized?
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...

約11年 前 | 1 件の回答 | 0

1

回答

質問


On dependent properties: Is this poor Object Oriented Programming?
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...

11年以上 前 | 2 件の回答 | 0

2

回答

質問


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

11年以上 前 | 1 件の回答 | 0

1

回答

質問


Exploiting symmetry in multidimensional arrays
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,...

11年以上 前 | 2 件の回答 | 0

2

回答

質問


What is the fastest way to determine whether a string is a number?
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...

11年以上 前 | 2 件の回答 | 2

2

回答

質問


saving and loading objects
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 ...

12年以上 前 | 0 件の回答 | 0

0

回答

回答済み
structures, cells or high dimensional arrays
I plan to formally test the three versions. But a more simple question is the following: suppose we just have 2 dimensions. Why ...

12年以上 前 | 0

質問


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

12年以上 前 | 1 件の回答 | 0

1

回答

質問


structures, cells or high dimensional arrays
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. # ...

12年以上 前 | 2 件の回答 | 0

2

回答

質問


How to avoid using a global variable in this case
Dear all, I have the following problem. I wrote some code where I overload various operators (+ - * /) and I would like to ke...

13年弱 前 | 2 件の回答 | 0

2

回答

質問


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

13年弱 前 | 2 件の回答 | 0

2

回答

質問


assignment of an object to a vector
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...

13年弱 前 | 1 件の回答 | 0

1

回答

質問


How to use matlab container.map?
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...

約13年 前 | 0 件の回答 | 0

0

回答

回答済み
Is it possible to write several statements into an anonymous function?
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...

約13年 前 | 0

質問


Is it possible to write several statements into an anonymous function?
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(...

約13年 前 | 11 件の回答 | 3

11

回答

質問


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

約13年 前 | 3 件の回答 | 0

3

回答

質問


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

13年以上 前 | 2 件の回答 | 0

2

回答

回答済み
detecting the existence of alphabetical elements
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...

13年以上 前 | 0

質問


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

13年以上 前 | 5 件の回答 | 0

5

回答

回答済み
regular expressions resources and regular expression problem
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...

13年以上 前 | 0

質問


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

13年以上 前 | 4 件の回答 | 0

4

回答

質問


How to avoid writing a script function ?
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...

14年弱 前 | 3 件の回答 | 0

3

回答