Answered
Find minimum enclosing circle
So let me use my own code to solve your problem. im = imread('IMG_3108.jpg'); [redpixr,redpixc] = find((im(:,:,1) > 140) & (...

4 years ago | 0

Answered
Smoothing just part of the data
Um, No. Why should there be? In fact, extracting the part you want to smooth, and then overwriting that smoothed fragment back ...

4 years ago | 0

Answered
Matrix dimensions must agree when doing an elementwise operation
How many elements are there in the vector a? (101) How many elements are there in the vector b? (101) How many elements are th...

4 years ago | 1

Answered
what is the time complexity of function 'reshape'
Essentially, almost zero time (a small constant amount that is almost negligable.) All reshape itself does is modify a flag atta...

4 years ago | 1

Answered
Error in solving using Ode45 initial condition are y(1) = 0, y(2) =0 and y(3) =0.
Sorry, but not easily. ODE45 is an INITIAL value solver. This is a variation of boundary value problem, where you have values at...

4 years ago | 1

Answered
Linear constraints not satisfied during optimization using fmincon
First, learn to use function handles. myfun = @(x) (0.0114*x(1)+0.01032*x(2)+0.0228*x(3)+0.0081*x(4))+15*((log(0.0114*x(1)))+(l...

4 years ago | 0

| accepted

Answered
Getting odd output, want to understand the meaning of it
syms Ed m V L En Eqn = (Ed-m-(1/2)*(V))*(2/L)^(2/(0.1+2))*(m+Ed)^(0.1/(0.1+2)) - m*En*(m*L)^(-2/(0.1+2)) == 0 S = simplify(so...

4 years ago | 1

Answered
I am trying to create this matrix ; How can i do this using for loops or without loops?
Without loops? Trivial. A=[0 0 0 0 0 0 0 0 0 ; 1 1 1 0 0 0 0 0 0 ; 1 1 1 1 1 1 0 0 0 ]; A As you can see, that works nicely. ...

4 years ago | 0

Answered
logarithmic binning data in matlab
It is not clear what you mean by logarithmic binning. Looking at your data however, tells me that you were told to do something...

4 years ago | 0

Answered
MATLAB license renewal Master License 3XXXXXXXXXX
It was renewed. You don't need to download anything at this point. You can just keep on using MATLAB.

4 years ago | 1

| accepted

Answered
How can i save the values i get in a for loop in a matrix?
Pretty basic, really. You probably need to spend some time with the MATAB Onramp tutorial. N = 100; SavedData = NaN(1,N); % Pr...

4 years ago | 2

Answered
i am getting this error "Brace indexing is not supported for variables of this type" at line which contains (S_bar{i}=R{i}*T_1{i}*R_1{i}*S{i}*T{i});.
Is S a regular matrix? S=[1/E1 -mu_12/E1 0;-mu_12/E1 1/E2 0;0 0 1/G12]; Yes. You then you assume it is a cell array for some r...

4 years ago | 0

Answered
How can I fit a smooth curve to this data and get the equation of the curve?
It is a bad idea to name your variables with the same name as an existing and useful MATLAAB function. Power is one such example...

4 years ago | 0

| accepted

Answered
Solving a highly non linear equation in Matlab
This is a differential equation. An ODE, because it involves derivatives wrt only one variable. It is high order, and nonlinear,...

4 years ago | 1

Answered
When chromaticity diagram meets a line
Describe the diagram border as a polygon. That just means you need to get the sequence of points on the boundary, IN SEQUENCE, a...

4 years ago | 0

| accepted

Answered
How to plot a set as the constraint in 2D?
Think clearly about what you are asking to plot. sqrt(x1^2 + x2^2) < x1 Do you agree that x2^2 is ALWAYS a positive number,...

4 years ago | 1

| accepted

Answered
How to convert variables in a function handle ?
Um, not easily, and yes, sort of. If you want to actually modify the function handle, then that would take some effort and text...

4 years ago | 0

Answered
How to create a matrix using Booleans that looks like this:
There are always a million ways to solve such a problem, however, there is no need to use booleans at all. Best is if you learn ...

4 years ago | 0

Answered
How to solve trigonometric equation x*cos(x)+sin(x)=0 with function fsolve?
This is just a variation of a problem I've seen given many times. It is one of the simplest equations I can think of that has no...

4 years ago | 0

Answered
Why are there variations in values when using floor function?
Do you understand that it is impossible to represent most fractinos as floating point numbers, and do so exactly? That is, is th...

4 years ago | 0

Answered
Spline Interpolation for Motion Profile
You can't get an "equation" for a spline. Well, you can, IF you understand splines in some depth, but it is a bit of a piecewise...

4 years ago | 0

Answered
How to make matlab give me a numeric answer to a matrix with infinite solutions
MCh =[ 1 0 -1 0 5 0 0 -1 0 2 -3 -1 0 1 -4 0]; rank(MCh) You wish to solve the 4x4 homoge...

4 years ago | 0

| accepted

Answered
null() fails for a symbolic numeric 5x5 matrix
It is often difficult to know what a compiled code has done under the hood, especially when symbolic operations are involved. Ho...

4 years ago | 0

Answered
generating random numbers from poisson distribution
Since the request has now morphed to do so without using poissrnd, that makes it very likely homework. In that case, you might ...

4 years ago | 0

| accepted

Answered
the meaning of a sentence in command window
I think you are perhaps confused. And the answers are a bit confusing too. And, of course, we don't know any characteristics of ...

4 years ago | 1

Answered
Find rows with common values using intersect
Intersect is the wrong way to approach this, I think. And at the same time, the solution is probably going to seem easy, once yo...

4 years ago | 0

Answered
Optimization of weighted sum
First, LEARN TO USE ARRAYS!!!!!!!! Don't create 8 different numbered variables. Why does that make sense, when you can create O...

4 years ago | 2

Answered
Associating another Person's Academic MatLab License with my name.
You can contact Mathworks, and ask them. To be honest, the answer is your scheme is probably not legal, since it is essentially ...

4 years ago | 0

| accepted

Answered
I need to find the length of the longest strictly increasing subsequence array from a given array I just need a tip to start. Any type of help will be appreciated
Can you use diff on your vector? What property does the result of diff have on strictly increasing sequences? Will all elements ...

4 years ago | 0

Answered
error in integration of function
You don't understand. You define x. i and N are numbers. i = 1; N = 100; h = 1/N; x = (i-1)*h; What is x now? A number. Gr...

4 years ago | 1

Load more