Community Profile

Contact

Top 5% contributor

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

3 Answers

0

Asked 2 years ago

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

accepted

Answered 2 years ago

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

Asked 3 years ago

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

2 Answers

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

1 Answers

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

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

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

I am using fmincon to solve a minimization problem with nonlinear constraints. The problem is that, it is giving me a wrong an...

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

I am trying to solve a system of equations whose answer will depend on arbitrary values. For example, consider the following ...

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

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

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

When I try to run this code: A = zeros(30000, NV); counter = 1; for k = 1:P for n = GN(:,k) for i =...

Asked 1 year ago

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

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

I am trying to find the optimal Lagrange multipliers for this problem: min 100*(V4 - V2 + (V1 - V3)^2)^2 + (V3 - V1 + 1)^2 ...

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

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

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

0 Answers

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

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

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

When I try to solve a linear program using matlab,after using linprog(f,A,b,...) I can find the Lagrange multiplier associated w...