Answered
Using Consolidator with Zeros
Your suspicion is totally wrong about 0. Although I have no idea what you actually did. As I show below, you never needed to use...

10 years ago | 0

| accepted

Answered
Exp Fit Error: Inf computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
You need to look at your data. THINK about what is happening. Don't just throw a modeling tool at it and expect magic to always ...

10 years ago | 1

| accepted

Answered
Line integral over a scalar field
Um, not only is what you are doing inefficient but also horribly inaccurate, since it forces the solution to lie exactly at some...

10 years ago | 3

| accepted

Answered
How to generate a random symmetrical matrix with a diagonal line of 0s.
1. Generate a matrix (A) with random numbers in it only in the upper triangle. Only you know the distribution of those elements ...

10 years ago | 0

Answered
Using Solve function for polynomial
You cannot use solve to solve this because in general there is no exact solution. (And polynomials are still not involved.) I...

10 years ago | 0

| accepted

Answered
how can I expand a real function by hermite polinomials?
In the obvious way? :) Hermite polynomials form an orthogonal set of functions over a specific domain, with a given weight fu...

10 years ago | 0

Answered
Is there any matlab function for K-means++ with handling missing data?
WANTING to cluster your data is fine, but nothing says that you can always get what you want. We all want lots of things, many o...

10 years ago | 2

| accepted

Answered
How do I discretize a closed surface in 4 dimensional space?
Well, you asked ONLY to create a set of points on the surface. You said nothing about connectivity of those points. Just pick...

10 years ago | 1

| accepted

Answered
a program that computes and plots the convolution of the functions
Ok, at least you made some effort. I'll keep my answer at least somewhat similar to the code you started. function convl(x,...

10 years ago | 1

| accepted

Answered
Pseudorandomization of stimuli so some repeat within specified intervals
Um, your goals are VERY imprecisely stated. That means no answer is possible. It also means you really don't know exactly what y...

10 years ago | 0

Answered
Best fitting a plane (ax + by + cz = 0) where c could be 0
This is an errors in variables problem anyway. So a standard regression will yield biased estimates. The trick is to use an orth...

10 years ago | 4

| accepted

Answered
How to make a program that calculates this integration? Thanks I appreciate.
To be honest, I'd probably do the inner integral (I assume that is on y) by hand, so we get that as: (16 - 3*x^2 - z^2) - (...

10 years ago | 0

| accepted

Answered
BondData in "Clustering Corporate Bonds"
If you downloaded the submission, then you downloaded BondData.mat. The list of included files shows: Machine Learning/Clust...

10 years ago | 0

Answered
Associate an array to every element of a matrix
Is there a reason why you cannot simply use a 3-dimensional array? Thus, if A has dimensions 2x2xn, then it can store n such ...

10 years ago | 2

| accepted

Answered
fmincon local minimum message may refer to a global minimum?
If it KNEW the solution was a local minimum versus a global one, then why would it not return the global solution? No, fminco...

10 years ago | 1

| accepted

Answered
How to call an external function in linprog optimization
You cannot do so using linprog. That would effectively allow the constraint to be some general NONlinear constraint, something n...

10 years ago | 0

| accepted

Answered
How to keep eigenvalues consistent between matrix iterations?
The simple answer is to use my eigenshuffle code, which is designed to solve this problem. It uses the eigenvectors to resolve t...

10 years ago | 0

Answered
matlab taking too much time
Why not learn to use the profile tool? That will tell you where the bottlenecks lie, where you need to work to improve your code...

10 years ago | 0

| accepted

Answered
How can i generate .mat file from eclipse (java) ?
Why bother? For example, there are many tools in MATLAB that can read an ascii based text file of some ilk. Anything from loa...

10 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions
Um, don't exceed the dimensions of this matrix? READ THE ERROR MESSAGE. Index exceeds matrix dimensions. Error in Decision...

10 years ago | 0

Answered
Out of memory error while using eye function.
help speye

10 years ago | 1

Answered
is matlab enough to simulate energy efficient routing protocol for wsn?? I am a PhD scholar and my guide says that matlab calculations is not enough to justify our work. How could i satisfy my guide about matlab simulation of wsn??
Can you convince someone? Perhaps. Did you try hard enough, providing good arguments? How do we know? If they have responded ...

10 years ago | 0

Answered
polyfit with time vector.
You think you have 5 points. In reality, you have ONE point, with 5 replicates. dxp = [ 7.3633 7.3633 7.3633...

10 years ago | 0

| accepted

Answered
How to solve a system of equations in the matlab?
A = [0 1 -1 0 1 -1 0 0 -1 0 0 1 0 0 1 -1]; b = [-40;160;-330;210]; A is NOT a full ra...

10 years ago | 0

Answered
How to make sure that if creating a diagonal matrix from another, the matrices are the same size?
Wanting existing code to magically know what you want it to do is nice, but is hardly likely to be successful in general. Someti...

10 years ago | 0

| accepted

Answered
Using symbolic matrix operations correctly?
As you have defined them, X and A are SCALAR symbolic objects, not general matrices. So the trace operation is a no-op, essentia...

10 years ago | 0

| accepted

Answered
ERROR: Z must be a matrix, not a scalar or vector
READ THE ERROR MESSAGE. What is the variable grid? (Hint, a vector) What shape are each of the variables xAxis, yAxis, zAx...

10 years ago | 0

| accepted

Answered
Solving numerically a parametric function, for all possible combinations of parameters
What does your question have to do with numerical integration? Need I quote you? "Numerical integration of a parametric funct...

10 years ago | 0

Answered
Stack two vectors of different size to a matrix
These problems are always simply solved by meshgrid, or ndgrid. It depends on the exact order you prefer. [llon,llat] = ndg...

10 years ago | 0

Answered
What is it in matlab???''In an assignment A(I) = B, the number of elements in B and I must be the same. ''
What shape is x? In this line: y(i+1)=2*y(i)-y(i-1)+x*dt^2; you are working with scalar elements of y on the left. But i...

10 years ago | 0

| accepted

Load more