Answered
What's the differene between [a,b] and [a b] in matlab?
No difference. If a comma is used, then MATLAB catenates the elements horizontally. A space is equivalent to a comma. In SOME c...

11 dagen ago | 1

| accepted

Answered
Difference between Singular Value Decomposition and Smith Decomposition
How does this apply to MATLAB? This really is a question purely about linear algebra. Are they the same? No, they are not. Yes,...

12 dagen ago | 0

| accepted

Answered
Plot the Poisson CDF with the Standard Normal Distribution CDF
Note that a Poisson random variable will ALWAYS be a non-negative number. It CANNOT have mass on the negative end of the real li...

12 dagen ago | 0

Answered
Find invertible matrix pairs where both matrices are integers
It seems trivial. A = eye(3) inv(A) Both are entirely integer. As it turns out, A is idempotent, so it is its own inverse, b...

13 dagen ago | 1

| accepted

Answered
What to do when teacher asks you to pirate matlab
You want us to tell you how to steal the software that we all essentially paid for? Sorry, but we can't help you. Once the free ...

13 dagen ago | 0

| accepted

Answered
how to avoid conj
syms theta theta1 theta2 Xprime=[sin(theta1)*sin(theta2) ,sin(theta1)*cos(theta2) ,cos(theta1)*sin(theta2), cos(theta1)*cos(the...

13 dagen ago | 0

Answered
Find closest divisor of a number
Simple enough. I wrote an alldivisors code many years ago... vlen = 65536; div_vlen = alldivisors(vlen) Now, suppose that you...

13 dagen ago | 2

| accepted

Answered
how to calculate inverse of modulus function
The modular inverse you desire exists as long as a and N are relatively prime. If not, then there is a problem. The trick in MAT...

13 dagen ago | 3

Answered
Making a simple flower
What did you try? As it is, all we are asked to do is to write a complete code to solve your problem. And we don't do that here....

14 dagen ago | 0

Answered
delaunay() - why does it not work for coplanar points in 3-D?
Why should it work? For example, we can try this: XYZ1 = dec2bin(0:7) - '0' So we have the 8 vertices of a unit cube. There a...

14 dagen ago | 0

Answered
How to remove singularities/discontinuities on 3D plots?
There is no simple direct command to remove singularities. However, nothing stops you from setting the z axis limits. syms x y...

15 dagen ago | 0

Answered
Calculate argmin for the function in matlab
What have you tried? Why not? And why did you feel you needed a picture of the vector S? That just makes us type it in. Not gonn...

15 dagen ago | 0

| accepted

Answered
Has anyone worked with Giuga numbers?
What does this have to do with MATLAB? Anyway, the answer is easy. Don't use the symbolic toolbox, at least not unless the resu...

15 dagen ago | 1

| accepted

Answered
How to use a optimization toolbox in MATLAB Cody problem?
The problem is, CODY solvers are assumed to have equal capability to solve a problem. If I don't have the optimization toolbox, ...

16 dagen ago | 0

| accepted

Answered
Data fitting using GLM model
Trivial. Well, trivil, If we assume that A0(H10) was actually intended as A0*H10. r(H10,T,P,t)=a0*H10 + a1*t + a2*t^2 + a3*...

16 dagen ago | 0

| accepted

Answered
Good evening , I would like to know how to compare bet. two strings if they are equal or not while having a counter to keep track of equalities , given a list of airports
Easy. We see the set of flights. I've coupled the origins and destinations together here: [origins,Destinations] ans = 42×2 ...

17 dagen ago | 2

| accepted

Answered
Find the volume of solid generated by revolving the region bounded by the curve 𝑦 = √𝑥, 𝑦 = 0, 𝑥 = 2 about the line 𝑦 = 5.
Ok. I did it. Not too hard. Oh. Wait. Was this YOUR homework assignment, given to you? Is there a reason why we should do it for...

18 dagen ago | 0

Answered
How to create 15,24 25 26,33 34 35 36 37 in a triangle pattern?
You cannot create an array that does not have the same number of elements in each row. MATLAB does not allow this. Yes, you coul...

19 dagen ago | 0

Answered
Euler and FD method
What is dt? dt=0.248; What is tvec? Is tvec composed of integers? (No, because you used the colon operator with a stride of 0...

21 dagen ago | 0

Answered
My academic license expired on 2021-12-29 but I can't active the licence for the next year because the experiration date stays at 2021-12-29 ....
Answers is not customer support. We cannot help you to deal with your license problem. We cannot help you to rectivate a license...

21 dagen ago | 0

Answered
Numerical integration of discrete data using higher precision
I explained in your last question. NO. You cannot force trapz to give you higher precision. As for trapz giving 30% error here? ...

22 dagen ago | 2

| accepted

Answered
Euclidian distance showing different result for different formula
What you write in d is simply not Euclidean distance What can be wrong? Your belief that it is so? What you write in d1 IS a Euc...

22 dagen ago | 1

Answered
vpaintegral of discrete data
Sorry. vpaintegral CANNOT be used. It simply does not apply to data points, as you then have no function. And the high, multi-di...

24 dagen ago | 0

Answered
Recursive formulas - Numerical method need
Assuming all other parameters are known... Suppose you were to clear all the fractions? So cross multiply by everything in the ...

24 dagen ago | 0

| accepted

Answered
Double Inequality 3Dplot
Easy peasy. lb = [1 1 1]; ub = [2 2 2]; plotregion([],[],lb,ub) view(29,30) grid on box on plotregion can be found on t...

25 dagen ago | 0

| accepted

Answered
command "vpa" not work
vpa is not part of MATLAB, UNLESS you have the symbolic toolbox. So do you have a license for that? At the command line, type v...

25 dagen ago | 0

| accepted

Answered
Different eigenvectors calculated from Matlab and Python
Look at it this way. THERE IS NO ISSUE. While you say that R and Python produce the same result, does it matter? (It possibly me...

26 dagen ago | 2

Answered
5 equations in 5 unknowns with fsolve
Do you expect your function to do anything? LOOK AT YOUR CODE CAREFULLY. Read the code you wrote yourself. Too often, we forget ...

27 dagen ago | 0

Answered
Why is the cubic Spline Interpolation wiggly in flat areas?
Should not the cubic spline be able to be ABSOLUTELY flat in some areas? NO. Sorry, but that will not be the case. A cubic splin...

27 dagen ago | 2

| accepted

Answered
Complex number operation does not make sense
Welcome to the wonderful wacky world of floating point arithmetic. imag(-0.98*exp(-1i*1.1)*exp(1i*1.1)) When MATLAB reports a ...

28 dagen ago | 2

Load more