Feeds
질문
How to optimize a parameter as well as independent variable
I have a function to minimize. For example, f = a*x^2 + 2*x. Parameter a is also a function of x. For instance, a(x) = x-4. How ...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
how to convert symbolic expression and use solve function to solve equations
I used diff(fun,x) to find out analytically some equations. And I wanted to solve these equations using solve function. But I ca...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
why solve function gives three results instead of one
I ran the code below and try to solve a Lagrangian multiplier problem. I hope to get one result from this problem, but I unexpec...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
a function of function problem
I have an expression f in terms of y (independent variable), a and b(parameters). I would like to take the derivative of f with ...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to output multiple results via function
Maybe this is a basic question. Please help me with it. I define a function with a couple parameters. function f=fun(y,lambda...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
how to draw 3D plot
Hi, I am a newbie for 3D plot. I have a dataset including 1000 rows and 3 columns. I treat each row as one observation, which ha...
거의 11년 전 | 답변 수: 1 | 0
1
답변질문
how to merge two matrices via one common column
Hi there. My question is that I have two matrices, say, A and B, A have two columns, 1 and 2, B has two columns, 3 and 4. Column...
11년 초과 전 | 답변 수: 2 | 0
2
답변질문
how to read a cell array into a matrix dataset or several vectors
HI, please help me with this question. I use textscan to read in a 1X20 cell dataset A. When I open it, it looks like such forma...
11년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to compare two vectors with numbers?
I have a question. I have two vectors A and B, both have a bunch of numbers. A is master and B is slave. Now what I want is to s...
11년 초과 전 | 답변 수: 2 | 1