답변 있음
how to use large numbers
Depending on what you are doing, you can use any of several tools. For example ... The symbolic toolbox: sym(17)^173 ans = 7...

18일 전 | 1

| 수락됨

답변 있음
is max built in functions
Yes. max is definitely a built-in function. As such, use of it will have been (sadly) outlawed by your assignment.

19일 전 | 0

| 수락됨

답변 있음
Calling a multivariable system of equations
I think you do not understand functions. And, well, I suppose this is a not uncommon problem for new users. There are at least t...

19일 전 | 0

답변 있음
I need to have eigenvalues of this matrix including symbols "m" and "n"
Actually, it is pretty easy, and the solution arrives almost immediately. A=[0 1/sqrt(3*n*m) 1/sqrt(3*n*m) 1/sqrt(3*n*m) 1/sqrt...

20일 전 | 0

답변 있음
How to find integral of this function.
No, that is not going to have any closed form solution. One suggestion in the comments was to try vpaintegral. If it does not ...

20일 전 | 0

| 수락됨

답변 있음
how to numerically define 1/x^2+0.4/(60-x)^2
If x is a vector or array, then you are trying to compute element-wise operations. But / and ^ and * are all operators that are ...

20일 전 | 0

답변 있음
Extrapolating rate constants from reaction data
l,k, m are just scalar symbolic variables. When you write solve(k) for example, it solves the problem k == 0 What is the ...

21일 전 | 0

답변 있음
how to use Discretize syntax
Funny. Actually, both of the other answers have missed an important point. While they properly describe how to use discretize, b...

21일 전 | 1

답변 있음
Using Polyfiti, Polyval, and plotting
Ok, now that I know where you are coming from, I'll pose this as an answer. It looks correct to me. The call to polyfit will cr...

22일 전 | 1

| 수락됨

답변 있음
all combinations of numbers
It is often true that people decide to do something unimaginably huge, because something small seemed easy enough. Computers are...

23일 전 | 0

답변 있음
Double for Loop to find root of polynomial
lambda=2; Quadratic_For_Omega_Squared=@(L,M)[1,-(L^2 +2 * M^2 +1 -lambda), +M^2 * (L^2 +M^2 -lambda)]; L=1:-0.1:0; M=1:-0.1:0...

23일 전 | 0

| 수락됨

답변 있음
I need to plot hyperbolas with ellipses
Well, first, you need to write down the equation for the hyperbola. Seems silly, or maybe obvious, but you can't do anything wit...

23일 전 | 0

답변 있음
taylor series expansion for acos(1-x)
Actually, the expansion you ask for does NOT exist. Why not? Because. I hope that is a good enough answer.. ;-) Seriously, the ...

23일 전 | 1

| 수락됨

답변 있음
Looking for a code in Matlab optimization
No. There is no direct code to do so, at least not that I know of. Should I write it? sigh. But if you spend some time reading,...

23일 전 | 2

| 수락됨

답변 있음
How to find the two Y values for my function with one known X value? please help
There must be a million ways. Here is a trivial one. f=@(x,y)2x*y - 6*y - 6*x + 4*x^2 + 6*y^2 - 12; syms Y Ysol = solve(f(2...

24일 전 | 0

답변 있음
After a condition of X amount of iterations, if fail then do another function?
I'd echo the point made by Rik, that a variable named true, that may in fact be false is a really, really bad idea. It is asking...

24일 전 | 2

| 수락됨

답변 있음
if year is divisible by 400 - then is a leap year if year is divisible by 100 - then is not a leap year if year is divisible by 4 - then is a leap year
Hint: What does the mod function tell you? Specifially, if mod(Y,4)==0, what would that tell you? Similarly, what would it tell ...

26일 전 | 1

답변 있음
how to program integration method with a variable step ?
Note that trapz allows you to provide any spacing your heart desires, because you can give it a vector of values for x and y. So...

26일 전 | 0

| 수락됨

답변 있음
Using a For Loop to calculate the pi for a taylor series
I had to look online to find a formula for pi that used an alternating sum of reciprocals of cubes of odd numbers. There had to ...

26일 전 | 2

| 수락됨

답변 있음
nested calls to fmincon
Um, yes, you can use nested calls to fmincon, but with a huge, massive caveat. fmincon requires differentiability of the object...

26일 전 | 1

답변 있음
How to draw a 3D graph with constraints?
The simple answer is to just use meshgrid. [x,y] = meshgrid(linspace(0,1,100)); keepind = (x + y) <= 1; x(keepind) = NaN; ...

26일 전 | 1

| 수락됨

답변 있음
How to create a complex normal i.i.d.?
Is it correct? It is what it is. You are creating a rotationally symmetric complex random variable, where if we define the varia...

26일 전 | 0

| 수락됨

답변 있음
How to write a function for this simple purpose?
Here are other approaches that are nicely vectorized, but do not require you to set explicit tests for each bin. For example, su...

27일 전 | 1

답변 있음
Matlab Solver - fmincon, minimization problem with constraint
" Q1. Although the weight for w1 is greatly increased, there is a very small tendency to minimize the function for J1. What ...

27일 전 | 0

답변 있음
Deconvolution of a Convolved Gaussian and Expoential curve
As I recall from long ago, numeical deconvolution is a variation of a first kind integral equation. https://epubs.siam.org/doi/...

29일 전 | 0

답변 있음
How can i creat varibales, varible1, viable2, into loop
Simple answer, don't do it. You even state that you are a beginner. So instead, learn to use MATLAB properly. Use vectors, use a...

29일 전 | 0

답변 있음
Numerical Multiplication in MATLAB
So what is your problem? If you think the result should always be an exact integer, that just means you don't appreciate floatin...

29일 전 | 1

| 수락됨

답변 있음
Solution when number equations is less than than the number of variables
There is no unique solution in general. That is, infinitely many possible solutions. In this case, you have TWO variables, and...

30일 전 | 0

| 수락됨

답변 있음
Mean of the third dimension
Not entirely sure what you are asking. Do you want to compute the mean for each year for each combination of X and Y? That woul...

30일 전 | 1

| 수락됨

답변 있음
I need help with my code using gaussian elimination.
Well, we COULD try to help you solve it using Gaussian elimination, but actually we can't. In fact, nobody can. rank(A) ans = ...

30일 전 | 0

Load more