Last seen: Today Active since 2021

Followers: 0   Following: 0

#### Feeds

View by

Question

How to define a function whose number of outputs depend on an input parameter value?
Say for M = 4, I have a code below. function [c,ceq] = Constraint(M) c = []; for i=1:M ceq_{i} = i; end...

17 hours ago | 1 answer | 0

### 1

Question

How do I define piecewise constant function in for loop?
For example, say I have data points given by , and corresponding output points. Now I want to define a piecewise constant func...

7 months ago | 1 answer | 0

### 1

Question

How do I multiply a given function handle with the independent variable?
I have pre-defined n number of function handles f_{i} which are functions of t for i = 1 to n. How do I define a new function g_...

1 year ago | 2 answers | 0

### 2

Question

How to solve large system of nonlinear equations using fsolve?
I have a large system of nonlinear equations in matrix form. Somewhat like X*A+X.*X==0; where is matrix of unknowns, is sc...

1 year ago | 1 answer | 0

### 1

Question

How do I change the font of the mathematical symbols in the figure in the overleaf file?
The package that I have used in my overleaf file for the mathematical equations and symbols is \usepackage[cal=boondoxupr, ...

1 year ago | 1 answer | 0

### 1

Question

How do I plot this set as 3d region in matlab?
This is the set I need to plot- . My main purpose is to see how this set is convex, so I am trying to plot this graph in MATLA...

1 year ago | 2 answers | 0

### 2

Question

Writing code for given general matrix in MATLAB
How do I write a code for the following matrix of order cM X cM? Here, where are all known scalars and 's are function handl...

2 years ago | 1 answer | 0

### 1

Question

Alternate way of defining given function using function handle for fmincon
I have an objective function which is of the form J = where is a matrix of arbitrary constants which I have to determine alon...

2 years ago | 1 answer | 0

### 1

Question

Creating a row vector of function handles
I have pre-defined function handles f_{i} using cell arrays for say i =1 to 8, so total 8 function handles. Now how do I create ...

2 years ago | 1 answer | 0

### 1

Question

Creating a function in MATLAB
I need to create a function with input i and outputs j and k. So i varies from 1,2,3... and i,j and k are related as , where j =...

2 years ago | 1 answer | 0

### 1

Question

Defining sequence of functions in MATLAB
Hello, The Haar mother wavelet is defined as- Now we can define a sequence of functions - where So for i=1, j=0 and ...

2 years ago | 1 answer | 0

### 1

Question

Solving large system of linear equations
How to solve a large system of linear equations in MATLAB? In particular I have 31 equations and 31 unknowns and I can write the...

2 years ago | 1 answer | 1

### 1

Question

How can I know more details about the function spap2?
The built-in function spap2 returns the B-form of the spline. My main goal is to know how exactly it calculates the coefficients...

2 years ago | 1 answer | 0

### 1

Question

Writing summation inside function handle
Hey, I have this term u = @(x) c(1)*f(3*(x-t(1)))+c(2)*f(3*(x-t(2)))+c(3)*f(3*(x-t(3)))+c(4)*f(3*(x-t(4)))+... c(5)*f(3*(...

2 years ago | 1 answer | 0

### 1

Question

Writing code to evaluate B-form of the spline without using any built-in functions that directly give the B-form
Hello, my task is to write a code to find out the B-form of the spline f given knots, degree of the polynomial, data sites x an...

2 years ago | 1 answer | 0