Community Profile

photo

Del


Active since 2012

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Nested for loops - FOR expression comma separated list Error
When I try to run this code: A = zeros(30000, NV); counter = 1; for k = 1:P for n = GN(:,k) for i =...

10 years ago | 1 answer | 0

1

answer

Question


Display precision in Matlab
I am trying to convert this cell array into a matrix of doubles. How do I make matlab display the numbers the way they are witho...

11 years ago | 1 answer | 0

1

answer

Question


convert Matlab array to Latex
I have an array of cells which I want to convert into a latex table. I know for a simple array I can use the following comman...

11 years ago | 1 answer | 1

1

answer

Question


How can I create a LaTeX table from a MATLAB uitable
I have a uitable, and I want to use it in latex. When I use it as a .fig figure, or .eps figure, the image is not very clear on ...

11 years ago | 0 answers | 0

0

answers

Question


Using ln function with symbolic variables
I am using symbolic variables, and I would like to use an ln function. But I keep getting an error. Is it possible at all to inv...

11 years ago | 0 answers | 0

0

answers

Question


Overlay curves on an existing surface plot
How to add/overlay curves on an existing plot that was done by a surf() function? I have tried doing that before, but some of th...

11 years ago | 1 answer | 0

1

answer

Question


How can I manually fill in colors (or shade) a part of a feasible region?
How to shade part of a graph with colors? I have tried using something like this (look at the very last figure): [A B]...

11 years ago | 0 answers | 0

0

answers

Question


changing width for certain columns in a uitable?
in uitable, do all columns have to have the same width? I have a table, and I would like certain columns to be wider than oth...

11 years ago | 1 answer | 0

1

answer

Question


Changing the default tolerance for fmincon
I am doing a computation using fmincon, and it says tolfun=1e-06 and options.TolCon = 1e-06. I am trying to have a tolerance of ...

11 years ago | 3 answers | 0

3

answers

Question


Why are the first order necessary conditions of optimality not satisfied for this problem?
I am trying to find the optimal Lagrange multipliers for this problem: min 100*(V4 - V2 + (V1 - V3)^2)^2 + (V3 - V1 + 1)^2 ...

11 years ago | 1 answer | 0

1

answer

Question


What is the easier way of listing several symbolic variables?
is there a way to list symbolic variables without having to type each one of them? I mean, sometimes I am dealing with several v...

11 years ago | 2 answers | 0

2

answers

Question


Why is fmincon giving me a wrong answer depending on which initial feasible point I am using?
I am using fmincon to solve a minimization problem with nonlinear constraints. The problem is that, it is giving me a wrong an...

11 years ago | 2 answers | 0

2

answers

Question


Finding an initial feasible point x0 for fmincon
How to find an initial feasible solution x0 for solving a minimization problem with non linear constraints (fmincon)? For sma...

11 years ago | 3 answers | 0

3

answers

Question


creating a simple table and edit it.
What is the best way to create a simple table in matlab? I read somewhere that you could use Mytable = ModelAdvisor.Table(2,...

11 years ago | 1 answer | 0

1

answer

Answered
How to add a legend to an existing plot?
ok, now what if I already have the figure, called Error_vs_points.fig , but I want to add a legend to it?

11 years ago | 0

| accepted

Question


How to add a legend to an existing plot?
I have a figure and it has 2 curves. When I add the legend from the 'insert menu', it only shows data1 and data2. I don't think ...

11 years ago | 2 answers | 0

2

answers

Question


How to plot using data stored in a .mat file?
I have created a .mat file (variable) and it contains 2 columns, each one has 11 numbers. I want to plot column 1 (X axis)agains...

11 years ago | 1 answer | 0

1

answer

Question


How to save MAtlab output in a file that you can reopen later?
I have some results in Matlab which are mainly cell arrays and numbers. I want to save these results(either in a .txt file or an...

11 years ago | 1 answer | 0

1

answer

Question


using "solve" and getting rid of unknown parameters
I am trying to solve a system of equations whose answer will depend on arbitrary values. For example, consider the following ...

11 years ago | 2 answers | 0

2

answers

Question


evaluating the value of the gradient at some point.
I have syms x1 x2 f=x1^2+4*x2^2-8*x1-16*x2 f = x1^2 - 8*x1 + 4*x2^2 - 16*x2 grad_f=gradient(f) ...

11 years ago | 1 answer | 0

1

answer

Question


checking if every component of a vector is nonnegative
What is the easiest way to check whether a vector a is >= 0? I know you could type a>=0 and get a vector of ones if that'...

11 years ago | 2 answers | 0

2

answers

Question


Assigning a value to a new iterate and keeping track of iterate numbers.
Here is what I want to get: x2 = a1 solution is x* = x2 x*=[3 4]. Here is the code that I have: x1=[1 2]; ...

11 years ago | 2 answers | 0

2

answers

Question


How to keep track of iterate numbers in variable names?
How to create a unique variable for the outputs of a for loop? So for example: for k=1:4 product=k*3 end I want ...

11 years ago | 3 answers | 0

3

answers

Question


Concatenation with array of different dimensions
How do you concatenate arrays with different dimensions? So for example, if I have a1=[1;2]; a2=[4;1;9]; a3=[5]; and what...

11 years ago | 2 answers | 0

2

answers

Question


How do you find the lagrange multipliers for a quadratic program
When I try to solve a linear program using matlab,after using linprog(f,A,b,...) I can find the Lagrange multiplier associated w...

11 years ago | 0 answers | 0

0

answers