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...

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...

9 days 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....

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....

10 days 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...

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...

11 days 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...

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...

11 days 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...

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...

11 days 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...

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...

12 days 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, ...

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, ...

12 days 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*...

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*...

12 days 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 ...

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 ...

14 days 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...

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...

14 days 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...

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...

15 days 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...

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...

17 days 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...

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...

17 days 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? ...

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? ...

18 days 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...

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...

19 days 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...

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...

20 days 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 ...

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 ...

20 days 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...

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...

21 days 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...

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...

21 days 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...

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...

22 days 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 ...

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 ...

23 days 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...

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...

23 days 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 ...

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 ...

24 days ago | 2

Answered

how can i solve this problem?

You have 20 nonlinear equations in 20 unknowns. Do you seriously expect a symbolic solution? And of course, there will very poss...

how can i solve this problem?

You have 20 nonlinear equations in 20 unknowns. Do you seriously expect a symbolic solution? And of course, there will very poss...

24 days ago | 2

Answered

how can i make if condation

Numbers no not have a character component. They are just numbers. But you can always call East a POSITIVE direction. West is the...

how can i make if condation

Numbers no not have a character component. They are just numbers. But you can always call East a POSITIVE direction. West is the...

24 days ago | 0

Answered

Packing identical cylinders into a rectangular prism

Sorry, but no, there is no simple mathematical formula to perform maximal circle packing of a known radius circle into a given d...

Packing identical cylinders into a rectangular prism

Sorry, but no, there is no simple mathematical formula to perform maximal circle packing of a known radius circle into a given d...

25 days ago | 0

Answered

how to find unknown within equation having unknown

R and L are known, with X being an unknown. syms X L R Xsol = solve(R/X==( 0.8*log(L*X/10e-06)+33),X) The script w there is t...

how to find unknown within equation having unknown

R and L are known, with X being an unknown. syms X L R Xsol = solve(R/X==( 0.8*log(L*X/10e-06)+33),X) The script w there is t...

25 days ago | 0

Answered

How I can Convert Decimal number into binary number then to matrix binary number ?

Easy peasey. B = dec2bin(123125) B = [repmat('0',rem(length(B),2)),B] reshape(B,2,[])'

How I can Convert Decimal number into binary number then to matrix binary number ?

Easy peasey. B = dec2bin(123125) B = [repmat('0',rem(length(B),2)),B] reshape(B,2,[])'

27 days ago | 1

| accepted

Answered

Inconsistency in behavior of SVD

F = zeros(1000,1800); F(:,1:600) = 37; F(:,601:1200) = 255; F(:,1201:end) = 102; %A tricolor flag, eg France or Italy [U,S,V] ...

Inconsistency in behavior of SVD

F = zeros(1000,1800); F(:,1:600) = 37; F(:,601:1200) = 255; F(:,1201:end) = 102; %A tricolor flag, eg France or Italy [U,S,V] ...

27 days ago | 1

Answered

detecting strawberries that might deteriorate soon through image analysis

This is simply not a question about MATLAB at all, but image processing and modeling. Until you have an idea what the algorithm ...

detecting strawberries that might deteriorate soon through image analysis

This is simply not a question about MATLAB at all, but image processing and modeling. Until you have an idea what the algorithm ...

27 days ago | 0