How can i call the first point that appears in a matrix with a certain value?
A=[1 2 3; 4 5 6;7 6 9;6 4 7;9 0 10;3 4 6] firstappearance = find(A == 6,1,'first') So the first appearance of a 6 in that matr...

11 días ago | 0

how to Invert a matrix and how to delete a row and a column?
You would need to delete almost every row and column. What does it mean to invert a matrix of arbittraily small size then? And ...

11 días ago | 0

| accepted

what this functions exactly do (fwrite) and (ubitN)?
help ubitN ubitN is not part of MATLAB, not is it in any MATLAB toolbox. You need to contact the source. Ok, someone will sure...

11 días ago | 0

| accepted

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 días ago | 1

| accepted

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 días ago | 0

| accepted

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

13 días ago | 0

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 días ago | 1

| accepted

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 días ago | 0

| accepted

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 días ago | 0

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 días ago | 2

| accepted

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 días ago | 3

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 días ago | 0

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

15 días ago | 0

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 días ago | 0

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 días ago | 0

| accepted

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

16 días ago | 1

| accepted

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 días ago | 0

| accepted

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 días ago | 0

| accepted

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

18 días ago | 2

| accepted

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 días ago | 0

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 días ago | 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...

21 días ago | 0

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

21 días ago | 0

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 días ago | 2

| accepted

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

23 días ago | 1

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 días ago | 0

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 días ago | 0

| accepted

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 días ago | 0

| accepted