Respondida
I am supposed to write a cod to show a given numebr in two elements ; power of 2 and muliple of 5 i.e: nu=2^x+5*y or nu=2*x-5*y
Since you have written some code, at least tried to show an effort, I will give you a couple of hints. First, you will not be a...

alrededor de 3 años hace | 1

Respondida
Can anyone duplicate my matlab crash?
No problem encountered on two machines, but I don't have that release on my machine, and I think it is probably too old to run o...

alrededor de 3 años hace | 1

Respondida
systems of equations, with constraints
This is a question more about understanding the mathematics of the problem, than of understanding how to solve it in MATLAB. Unt...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to describe a function with a sum of discrete values?
Just use cumtrapz to perform the cumulative integral. help cumtrapz

alrededor de 3 años hace | 0

| aceptada

Respondida
change class syms to double
If your sym variable still contains ANY symbolic parameters, then nothing can change it to a number. A double connot store a sym...

alrededor de 3 años hace | 0

| aceptada

Respondida
Generating random points between two n-dimensional boxes
In 2-dimensions, I posted a solution on the FEX that would work. But 2-d is trivial. You triangulate the domain, then generate r...

alrededor de 3 años hace | 0

| aceptada

Respondida
Adjust the parameter of the Uniform Random Number Module
rand ALWAYS generates numbers in the interval (0,1). ALWAYS. You cannot change that. However, if you bother to read the docs for...

alrededor de 3 años hace | 0

Respondida
how to convert a real number/or integer into fixed number of bits?
I'm confused, by a confusing question. You want to convert a real number into a representation as a fixed number of bits, so co...

alrededor de 3 años hace | 1

| aceptada

Respondida
find maximum distance between a point (outside of polygon) and a polygon?
You DON'T need QUADPROG!!!!!!! There is no need to quadratic programming to solve the maximum distance to polygonal region. Al...

alrededor de 3 años hace | 1

| aceptada

Respondida
Why some points do not satisfy the condition?
So often this mistake is made. Are those the EXACT values of those coefficients? To me, that would seem a surprise, that they we...

alrededor de 3 años hace | 0

Respondida
How to repeat a vector over and over?
So write a function that does it for you. vec = 1:4; repvec(vec,7) vec = [0;1]; repvec(vec,8) function newvec = repvec(vec,...

más de 3 años hace | 1

| aceptada

Respondida
Pentadiagonal matrix to solve for Pressure variable
WHY? Don't write code to do what was already written well by world class experts in linear algebra. You are using MATLAB. So use...

más de 3 años hace | 1

Respondida
I cannot the error in the bisection method...
Get used to using the dotted operators for some things. That allows MATLAB to use vectorization in tools like fplot. f = @(x) x...

más de 3 años hace | 0

| aceptada

Respondida
Hello! How to define on which plane lies a given point with coordinates? I have coordinates of plane and normal
Does a point lie in a plane? This is quite easy to do. The equation of a plane is a simple one. In fact, it works in any number...

más de 3 años hace | 0

| aceptada

Pregunta


Should equationsToMatrix handle inequalities?
equationsToMatrix is a very nice tool. It works great to unpack an equality relation, like this: syms x y EQ = x + 2*y == 3 [...

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

1

respuesta

Respondida
polynomial curve fitting error
Is there a good reason why you called the script you wrote polyfit? Yes, I suppose you had a very good reason, because you wan...

más de 3 años hace | 0

| aceptada

Respondida
How I can check if planes are parallel to each other in 3d?
planes(:,:,1) = [0 3 3; 0 0 3; 0 3 0; 0 0 0; 0 0 0]; planes(:,:,2) = [0 0 3; 3 0 3; 0 0 0; 3 0 0; 0 0 0]; planes(:,:,3) = [3 0...

más de 3 años hace | 2

| aceptada

Respondida
What is the command for calculating expectation in MATLAB?
As a hint, generally, expectation and mean are terms with a similar meaning. Is there a function in MATLAB to compute a mean?

más de 3 años hace | 0

| aceptada

Respondida
How can I restore image if I need to use command "interp2"
What does restore mean to you? Does it mean to some how recover the exact original image, after having interpolated it to some ...

más de 3 años hace | 0

Respondida
Write a Gauss-Seidel preconditioner for ML
Learn what a sparse matrix is. And how to build them, how to use them. help sparse help spdiags The point being, you don't wa...

más de 3 años hace | 0

Respondida
3D Surface of revolution from a 2D perimeter
Ok. (I should probably write code to do this in general, for any arbitrary polygon.) Quad elements. I'll show how to do it for ...

más de 3 años hace | 0

| aceptada

Respondida
Solving a set of 8 non-linear equations using symbolic toolbox results in empty sym 0 by 1
NO. The equation POSSIBLY has a solution. In theory, it MIGHT have a solution. But having a theoretical solution does not mean i...

más de 3 años hace | 0

Respondida
Find Indefinite Integral from Array Values
Sorry. there is no need for them to be exactly the same. Cumtrapz is a simple variation of a fixed stepsize Euler integration,...

más de 3 años hace | 1

Respondida
How can I find a multiplication coefficient between two signal?
Your need is to solve the problem signal2 = constant*signal1 Where the variable "constant" is unknown. This is easy to solv...

más de 3 años hace | 0

Respondida
Equation solution is not found for all array element
For SOME of these sub-problems, no solution was found. I would suggest that when the result from vpasolve is empty, you could ...

más de 3 años hace | 0

| aceptada

Respondida
How to reduce dimensionality of a rectangular matrix
Your matrix has size 640000 by 288. So there are only 288 pieces of distinct information in your data. You CANNOT use PCA to do ...

más de 3 años hace | 0

| aceptada

Respondida
Symbolic acos( cos(theta) ) does not return theta.
Is it true, that acos(cos(theta)) ALWAYS returns theta? TRY AN EXAMPLE. acos(cos(10)) So it is not true. It works the other wa...

más de 3 años hace | 0

Respondida
curve fitting of two equation to two data sets simultaneously
Are the values of x the same for the two vectors y1 and y2? You don't show any data, so it is difficult to help more, as there ...

más de 3 años hace | 0

Respondida
Create a single variable to store multiple correlation coefficients
A = rand(300,7); B = rand(1,300); C = corrcoef([A,B']); C = C(8,1:7) The correlation coefficiens of each column of A, agai...

más de 3 años hace | 1

Respondida
How do I remove every row that has a zero in it?
TSLA = rand(366,7); TSLA(TSLA(:,4) == 0,:) = []; One line. No loops.

más de 3 años hace | 0

| aceptada

Cargar más