Respondida
Problem with convergence of nonlinear equation systems with constraints ( using solve() )
A common fallacy that people fall to, is that just because you don't know the value of some variable, that it MUST be symbolic. ...

más de 3 años hace | 0

Respondida
why I get error when Start my code with %?
%% Section 1 % ka=0.8; Am=1; fm=2; t=0:0.001:1; mt=Am*sin(2*pi*fm*t); Ac=2; fc=50; ct=Ac*cos(2*pi*fc*t); St=(1+ka.*m...

más de 3 años hace | 0

Respondida
how to solve this
You already solved it. So where is the problem? If I had to guess, it is why the circle you just plotted does not appear circula...

más de 3 años hace | 0

Respondida
Fast Evaluation of Multivariate Polynomials
You have clearly not looked quite EVERYWHERE. Had you done so, you might have found my polyfitn. In there, is a polyvaln code, w...

más de 3 años hace | 1

Respondida
Sorting of points (2D) clockwise with respect to the center of gravity
I'm confused. Have you already subtracted off the center of gravity from the columns of data? I don't see that operation. If not...

más de 3 años hace | 0

Respondida
The Chinese Remainder Theorem
Since I was going to post this on the FEX anyway, I've attached a simple code to implement the basic C.R.T. Note that all you re...

más de 3 años hace | 0

Pregunta


Solving systems of linear congruences in MATLAB
I've noticed many questions over the years where someone would like to find all integer solutions to a problem. And often it is ...

más de 3 años hace | 0 respuestas | 1

0

respuestas

Respondida
How to compute the difference of the integrals of two functions (f(x) and j(x)) only over the portions where f(x)>j(x)
I don't see why it should be a struggle. Start at the beginning. Break the problem down into small pieces. Then solve each of th...

más de 3 años hace | 1

Respondida
How can i equally distribute a list of values into 3 approximately equal groups.
DON'T WRITE YOUR OWN CODE to solve problems that are already well known and solved by others who understand the problems and how...

más de 3 años hace | 0

Respondida
Temperature conversion script doest work with negative input value
Nope. Works just fine. For example, with F = -459 (approximately absolute zero) you should get approximately -273. F=input('Inp...

más de 3 años hace | 0

| aceptada

Respondida
Convergence can't be reached in lsqcurvefit
Not every model you pose will always fit every set of data. But first, we should look at your model, as well as your data. G_pr...

más de 3 años hace | 0

Respondida
I need an activation key for license 4xxxx
Answers is not customer support. We cannot help you. In this respect, even if someone COULD help you, they would not post an act...

más de 3 años hace | 0

Respondida
Spline with clamped end conditions using griddedInterpolant
You cannot do so. There is no capability for that in griddedInterpolant. But I fail to see the problem. Just use spline, which D...

más de 3 años hace | 1

Respondida
Plotting multiple figures using subplot
help subplot

más de 3 años hace | 0

Respondida
isprime function seems to have poor performance
As a followup, to this question, I've now learned where the time has gone. In R2018 or so, the symbolic toolbox isprime call wa...

más de 3 años hace | 3

Respondida
what's wrong with this code?
When you tell us that something does not work, you NEED to tell us what happens. Was an error generated? SHOW THE COMPLETE ERRO...

más de 3 años hace | 0

Respondida
Which optimization method is better for problems with random steps
No optimizer is good in this case. That is, all of the classical optimizers ABSOLUTELY assume that your objective is a well def...

más de 3 años hace | 0

| aceptada

Respondida
Trapezoidal integration without built-in functions
The fact is, trapezoidal integration in a higher number of dimensions in R^d, MUST take O(N^d) operations. Sorry, but it will be...

más de 3 años hace | 0

Respondida
How to Restore source code from Standalone-App - Executable file (.exe)
https://www.mathworks.com/matlabcentral/answers/362964-possibility-of-decompiling-exe-to-m-files I would strongly suggest you s...

más de 3 años hace | 0

Respondida
how do I solve a 2nd order differential equation with multiple first derivatives
As you have written it, this problem is unsolvable. (Had you read the docs for a tool like ODE45, the basic procedure is explic...

más de 3 años hace | 0

Respondida
Error and Warning solving equations.
Admittedly, it is a mess of stuff to paste in. :) Wo = 3584.74 * 9.8; Vm = 268.76/3.6; Rm = 680 * 10^3; rho = 1.225; l_tr...

más de 3 años hace | 0

| aceptada

Respondida
How to can I solve a cubic equation with wide ranges of T and P?
MATLAB does not offer an interval arithmetic solution for roots. (Nor will it ever do so, I predict.) This would get pretty comp...

más de 3 años hace | 0

Respondida
Attempted to access Son(0.000673333); index must be a positive integer or logical.
How should MATLAB understand this part of your code? Son (6.73333*10^-4) Should MATLAB know that you want to multiply a va...

más de 3 años hace | 0

Respondida
Presenting faces at random without repetition
Pick the 10 images to be shown immediately, as 10 numbers from the set 1:23, WITHOUT replaceemt. randperm will do that for you. ...

más de 3 años hace | 0

| aceptada

Respondida
excluding a number before sending x vector to optimization?
You don't tell us WHICH heuristic algorithm you are using, so that means it is a homebrew algorithm of your own choosing or crea...

más de 3 años hace | 1

Respondida
plotting of 2D surfaces
Totally CONFUSING. X= [1 0.9932 0.9735 0.97 0.9702 0.9479 0.915 0.913 0.9002 0.8877 0.8893 0.8927 0.881...

más de 3 años hace | 0

Respondida
Precision and indices must be positive integers
Why did this line gather an error? kd = (Ppeak-0)/(times(end) - t); The end operator must be used within an array inde...

más de 3 años hace | 0

Respondida
Determine positions of projected points onto an ellipse
Simple. Just download my distance2curve utility, found on the file exchange. For some example data, I'm not sure what you mean...

más de 3 años hace | 2

Respondida
Can someone explain to me why the x parameter at a certain point becomes negative and why certain arrays start filling with complex numbers?
Look carefully at what you are doing. I can only guess what your variables might mean. ind = 130:160; table(x(ind)',y(ind)',ve...

más de 3 años hace | 0

Respondida
I'm writing a code to find the intersection points of two circles.
You had a problem in the use of syms here, causing an error. syms x y A = [x y]; B = [x y]; C = [x y]; D = [x y]; AB = nor...

más de 3 años hace | 0

Cargar más