Beantwortet
what does pc1 and pc2 represent?
For example... load fisheriris whos [COEFF, SCORE, LATENT] = pca(meas); So the first component is huge compared to the other...

mehr als 3 Jahre vor | 1

Beantwortet
How can I use Newton’s Method when I have a 2D domain?
Don't write code for Newton's method, when you can use fzero. Just put a loop around it, and call fzero for each pair of dC/dx a...

mehr als 3 Jahre vor | 0

Beantwortet
How plot the average sum of three dices versus the number of experiments?
Simple. 3 (fair, so unbiased) dice, numbered 1:6 on the 6 faces. (Not one of those gaming dice with 20 faces or so.) Done over ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Minimize a function with special constraints
If linprog tells you the problem is unbounded, then it is. What does that mean? Unbounded means there is some direction you can...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Combinations with a condition
Easy enough. x = 0:6; [x1,x2,x3] = ndgrid([0 3 6]); x123 = [x1(:),x2(:),x3(:)]; ind = ismember(sum(x123,2),3*x); x123(ind...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
automatic circles that enclose clusters of similar data something like lineCoeff = polyfit(x, y, n) (regression line)
incircle has nothing to do with your problem. Sorry. You would first want to use some sort of clustering algorithm on your dat...

mehr als 3 Jahre vor | 1

Beantwortet
fminsearch does not minimize my function
Probable user error. Various possibilities exist, the most common are: Your function is improperly coded, so it does not do wha...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
symsum and a divergent series
Is it possible? Well, yes. And, sometimes, no. But you can always use Mathematica. What else can I say? When symsum returns a ...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
LINPROG requires the following inputs to be of data type double: 'f'.
Apparently some or all of the arguments to LINPROG were not doubles. Which ones? In your code, we see this: yp= @(x) x*trareg1...

mehr als 3 Jahre vor | 0

Beantwortet
How to find the angle between two hyper planes?
Will you please learn to use arrays? You have moved from 2-3 to now 6 dimensions in your questions. When you are one day trying ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Is there any Matlab finction to compute an integration using Rmberg method?
Not exactly. For example, if you look up Romberg integration, you will find it is based on Richardson extrapolation, but at leas...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Excel Solver least squares vs MatLab optimization
fminsearch is never a tool you want to use if you want any kind of strong convergence. Sorry. But comparing anything to fminsear...

mehr als 3 Jahre vor | 0

Beantwortet
Problems with the parallel inversion of a large, sparse and linear system in Matlab
You should NEVER be inverting a large sparse linear system. The result will generally not be sparse, so you will then gain nothi...

mehr als 3 Jahre vor | 0

Beantwortet
curve fitting using least square method form equation , y = (1 + a sin(2x))/ (b + cx^2) where a, b, c are unknown real constants.
Hint (since this is homework): What is your model? WRITE IT DOWN. What happens when you mutiply by the term in the denominator? ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
TriscatteredInterp on a multi-core computer
A long dead question. But even today, you won't easily find tools like triscatteredinterp, or griddeInterpolant, that will work ...

mehr als 3 Jahre vor | 0

Beantwortet
Solving a 2nd order ODE for specific parameters
Did you try it? What did you try? For example, I started with what you said. YOU CANNOT use ODE45 to solve a problem where the p...

mehr als 3 Jahre vor | 0

Beantwortet
difference between Matlab v7.9 and v6.5
which abstractAngleConv -all That is part of the mapping toolbox, but not something that is accessible directly to a user. So y...

mehr als 3 Jahre vor | 0

Beantwortet
adjusting the peak of a spline in curve fitting
Um, you are not being very clear here, probably because you don't totally appreciate what you are asking. Certainly you have not...

mehr als 3 Jahre vor | 0

Beantwortet
I think I need a for loop,
[x,y] = meshgrid(1:3,[2 3 5]) z = x+y If you need it as a 9x1 array, then just unroll the arrays into vectors. z = z(:) Star...

mehr als 3 Jahre vor | 1

Beantwortet
Maximum of 2D data interpolation
You will NEED to use a spline based method of interpolation here, specifically spline or cubic. NOT makima, or pchip. Those inte...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to use if/then to assign a year to a set of dates?
Easy peasy. :) data = [8 7 2000 12 9 8 2000 14 9 9 2000 13 3 11 2001 11 8 3 2001 17 12 15 2001 14 2 2 2002 10 5 1 2002 9...

mehr als 3 Jahre vor | 2

Beantwortet
invalid use of operator
Looks great. Except, what you have written is not valid MATLAB syntax. Why do you think you needed to include the :end in there...

mehr als 3 Jahre vor | 0

Beantwortet
I need help to determine the distribution type for my set of data
You CANNOT know what distribution any set of nummbers were generated from. That is provably imposssible. For example: x = 0.432...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to solve nonlinear equation using fsolve as the message shows No solution found
I would not be at all surprised if it was poor starting values that might cause the problem. syms x y F1 = -9.135789053E+00-lo...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Deconvolution results a single value
Convolution of two vectors yields a new vector that is longer than either of them. So if the vectors have length N and M, then t...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Files added to path won't run unless I rename them first.
Never use the directory structure that comes with MATLAB to store your own files. Why not? MATLAB caches those directories at s...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
manipulation of yearly, quarterly, monthly, weekly and daily dates using datenum
I don't see the problem. It mainly looks like you need to understand the concept of leap years. That would be crucially importan...

mehr als 3 Jahre vor | 0

Beantwortet
Cubic Spline not printing
It has been a month since you asked the question, so I'll post an answer. Note that your data has x=[1 2 6 3 5 6 7 8 9 7 6 5 ...

mehr als 3 Jahre vor | 0

Beantwortet
Does the built in function singular value decomposition (svd) do the correlation matrix for you?
The SVD does NOT perform the re-scaling involved in a correlation matrix. It just uses the array you give it, with no preemptive...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
finding fold curve in 3D surface
You have a surface, generated using meshgrid. I would split that surface into a triangulated mesh. So two triangles per rect in ...

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden