Pregunta


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 ...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

más de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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,...

más de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

más de 10 años hace | 2 respuestas | 2

2

respuestas

Pregunta


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 ...

más de 11 años hace | 0 respuestas | 0

0

respuestas

Respondida
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 ...

más de 11 años hace | 0

Pregunta


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

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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. # ...

más de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

más de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

casi 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

casi 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 12 años hace | 0 respuestas | 0

0

respuestas

Respondida
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...

alrededor de 12 años hace | 0

Pregunta


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(...

alrededor de 12 años hace | 11 respuestas | 3

11

respuestas

Pregunta


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...

alrededor de 12 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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...

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Respondida
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...

alrededor de 12 años hace | 0

Pregunta


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...

alrededor de 12 años hace | 5 respuestas | 0

5

respuestas

Respondida
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...

alrededor de 12 años hace | 0

Pregunta


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 ...

alrededor de 12 años hace | 4 respuestas | 0

4

respuestas

Pregunta


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...

casi 13 años hace | 3 respuestas | 0

3

respuestas