Answered
creating circular cavity for spiral antenna
First, I had to check which it was. In one place, you wrote circularCavity. In another, you wrote cavityCircular. Google is my f...

8 years ago | 0

| accepted

Answered
How to perform double integration with vectors as integral limits
So, you essentially have multiple, independent integrals over different domains. And you want integral2 to loop over the differe...

8 years ago | 0

Answered
I am from 2nd year of mechanical engineering,.. So is it worth to study matlab software??? Because I don't know any of technical things so is this software useful for me at this point
No. Or maybe. Don't bother learning a language that you have no immediate plan to use. You won't remember much when you do need ...

8 years ago | 1

| accepted

Answered
How to put constraints to an equation[constant]?
It depends on what you want to do with it. If you just want to create a function that returns 1/2 in the interval x>=2 & x<=4, i...

8 years ago | 1

Answered
How do I make a rand function generate numbers between 0.527 and 1.527? And how do I make sure the problem runs for 10,000 rounds?
Think about what you are doing, about what happens. Take your time. Think. Play with it. Start with rand. It produces numbers wh...

8 years ago | 1

| accepted

Answered
How to estimate parameter values from the nonlinear function
The simplest way to apply positivity constraints on the parameters is to use a tool that will allow you to enforce them. That mi...

8 years ago | 0

Answered
how to change NaN values using ratio
Be clear about your goal. vec = 1:12; vec([3 4 5 7 8 11]) = NaN vec = 1 2 NaN NaN NaN 6 NaN ...

8 years ago | 0

Answered
How to take the standard deviation into account to get correct confidence bounds when fitting data using the Curve Fitting Toolbox?
Using fit? You cannot do so. You might try using weights, where the weight would be something like the inverse of the standar...

8 years ago | 1

| accepted

Answered
I was trying to solve below simultaneous differential equation and I had the warning "Unable to find explicit solution" Can someone explain?
Not all differential equations have an analytical solution. dsolve looks for exactly that. If it cannot find such a solution, it...

8 years ago | 0

Answered
Curve Fitting Polynomial (Plot not matching original data) (Normalisation?)
Congratulations! You are the 10 millionth person to make this mistake! Your reward will be a commensurate one, where you will...

8 years ago | 1

| accepted

Answered
I want to plot a surface plot of 2d data (rectangle)
NO. You don't have a surface. You have a single set of points, apparently z(x,y). But here, ALL of your points lie along the lin...

8 years ago | 1

| accepted

Answered
How to get polynomial equation from continuous curve.
As has been pointed out, there is no polynomial equation that will represent any particular curve. However, some curves will be ...

8 years ago | 1

Answered
How to obtain the determinant of a large matrix?
A matrix of that size, with symbolic parameters in almost every element? DET will be virtually impossible to compute in a finite...

8 years ago | 1

Answered
matrices A*x =B where x> 0
You can use lsqnonneg, or lsqlin to solve the non-negatively constrained least squares problem. HOWEVER, you cannot enforce a...

8 years ago | 3

Answered
Specify a tolerance for backslash operation or linsolve while A is non-square? (QR solve)
What do you mean by "tolerance"? A QR solution has no need for a tolerance, nor does linsolve, as they are not iterative met...

8 years ago | 2

| accepted

Answered
[Fixed-Point Toolbox] How to speed up fi object matrix multiplication?
Why would you be even remotely surprised that the code runs more slowly than a highly optimized code that works on doubles? A ma...

8 years ago | 1

Answered
linear system of equations
It is not clear what you are trying to do, since the code you have written produces this: A = [ 0, 0, 0, 0] [ 0, 0, 0...

8 years ago | 2

| accepted

Answered
Double Integral of a function that contains factorials
This is not really a question about MATLAB, but of mathematics in general. The problem with your integral is factorials are n...

8 years ago | 0

| accepted

Answered
How to interpret the outputs of the function "runstest.m"?
This is a problem of appreciating the terminology, and the double negative way things get worded. Do two negatives make a positi...

8 years ago | 4

| accepted

Answered
Diffrence between cubic spline (csaps) and smoothing spline in curve fitting toolbox
If you read the docs somewhere below fittype, you will find this comment: Note The smoothing spline algorithm is based o...

8 years ago | 1

Answered
Does wblrnd use the inverse tranform method to generate random numbers?
The answer to many questions about MATLAB, is to just read the code. So, I did this... type wblrnd Then look at the code...

8 years ago | 0

| accepted

Answered
Answers given as equation
Do you mean this? vpa(SurfaceAreaOfASphere) ans = 1256.6370614359172953850573533118*[ft]^2

8 years ago | 2

| accepted

Answered
parallel computing sig problem
So, you simply cannot put those 500 lines of code inside a function? Or if not as a function, as a script m-file? There is ab...

8 years ago | 0

Answered
Computing Divergence of a vector field numerically
First, divergence computes a NUMERICAL approximation to the gradients necessary. It has no clue as to the real derivatives, or t...

8 years ago | 0

Answered
Generate poisson numbers which sum a certain value?
I frequently see this happen, where someone wants to generate random numbers, subject to some constraint, that essentially inval...

8 years ago | 2

| accepted

Answered
Numerically integrate over function that gives out a matrix
While integral offers the option of integrating an array valued function, integral2 does not. However, nothing makes a loop a...

8 years ago | 0

| accepted

Answered
How can i find the first inersection point of tow functions?
You can't use the intersect function to find the intersection of two curves. Just because the name is similar does not mean it w...

8 years ago | 0

| accepted

Answered
Integrating bivariate normal distribution in polar coordinates efficiently
Why do you need to re-express the PDF in polar form? It is one line of code to convert polar form into cartesian form to do the ...

8 years ago | 0

Answered
How Do I Create/Fix My Code For Collatz Conjecture Using A For Or While Loop?
I'm not sure what assume(x>0) has to do with anything, because you are working with the variable n. But why have you not just...

8 years ago | 0

Load more