Answered
How to change the heaviside function -- and how to use the new function with symbolic objects?
Here is a numerical version of what you wish to do. First, the function: function y = heavy0(x) y = 0*x; y(x>0) = 1; N...

15 years ago | 1

Answered
How to change the heaviside function -- and how to use the new function with symbolic objects?
@Condor, I think you are mistaken that the function |heaviside| uses the same code as the other functions we have considered. |h...

15 years ago | 0

Answered
How to change the heaviside function -- and how to use the new function with symbolic objects?
Here is a different way you could approach this problem: fzine = (x + abs(x))/2; delta = fzine+15+12*x; simplify(solve(delta)...

15 years ago | 0

Answered
How to change the heaviside function -- and how to use the new function with symbolic objects?
The symbolic toolbox cannot evaluate |X > 0| for a symbolic variable |X|. You can make a small change in your function so it can...

15 years ago | 1

Answered
error in edge command
You have the wrong kind of quotes around |zerocross| and should not have quotes around |Laplacian|. Try this: [BW,threshold...

15 years ago | 0

| accepted

Answered
Matlab letter "h" question
An array is just a variable with a lot of components. For example, you could type h1 = 1:10; and this creates a vector |h1|....

15 years ago | 0

Answered
Help: Matlab2010a figure output
Let's summarize what we know so far: # The print command is creating a matrix with the correct dimensions and type, but you c...

15 years ago | 0

| accepted

Answered
Finding volume using quad function
To follow up on a comment - if you are using a MATLAB editor, you should see something like this: <<http://www.mathworks.com/he...

15 years ago | 0

Answered
Convolving in Matlab
You should convert to double: W(j,:) = conv(double(B),double(A(j,:))); You can use |conv2|. As for the type, if I enter some...

15 years ago | 1

| accepted

Answered
How to enlarge matrix by putting average of surrounding numbers in between of every number of original matrix
You may not be able to get what you want using just interp2. The following code nb = 2*size(a,1)-1; [ia,ja] = meshgrid(1:2:nb...

15 years ago | 1

Answered
Sort cell array according to number of elements
[~,I] = sort(cellfun(@length,A)); A = A(I);

15 years ago | 2

| accepted

Answered
what are built-in functions?
A lot of MATLAB builtins are based on <http://www.netlib.org/lapack LAPACK>. You might find <http://www.mathworks.com/company/ne...

15 years ago | 1

Answered
Adding a newline character
Unfortunately, I don't have the Report Generator, and the online documentation about the |rptgen| classes is not very helpful. H...

15 years ago | 0

Answered
Adding a newline character
Try sprintf('%s\n',My_Array{i})

15 years ago | 0

Answered
MATLAB in unexpected places
And let's not forget the famous musical group <http://www.last.fm/music/DJ+Matlab DJ Matlab>! <<http://userserve-ak.last.fm/s...

15 years ago | 2

Answered
MATLAB in unexpected places
<http://www.facebook.com/pages/I-Hate-MATLAB/46813120149 I Hate MATLAB>. (3,873 people like this.) You can choose between <http...

15 years ago | 1

Answered
MATLAB in unexpected places
<http://www.matlabinc.com/ Matlab - Quality Custom Finishing>: "For more than three decades, Matlab has set the standard for qua...

15 years ago | 0

Answered
MATLAB in unexpected places
I can't resist posting a link to a picture from the site Walter linked to: http://web.archive.org/web/20100731213321/http://www...

15 years ago | 0

Answered
Help: Matlab2010a figure output
Try print -dtiff April05.tiff or print -dtiffn April05.tiff (see the list of printer drivers in <http://www.mathworks.c...

15 years ago | 1

Answered
Mupad export to LaTeX
The only solution I have found is to use third-party commercial software that incorporates MuPad (for example, <http://www.macki...

15 years ago | 0

| accepted

Answered
Attack of the spammers?
My new favorite: plz give me ful program

15 years ago | 1

Answered
Warning: Explicit solution could not be found. But in the command line it works!
Change the last line to C2_sol=solve(Z_eq-50,C2); I think the problem is that |solve| determines what the symbolic variables...

15 years ago | 2

| accepted

Answered
periodic functions
If I understand your question, you want a function like this: function p=piecewise2d(x,y) p = piecewphi(x).*piecwphi(y);

15 years ago | 0

Answered
improper integral
I don't think |quad| ever allowed infinite limits. |quadgk| does. The answer you need depends on how old your MATLAB version is....

15 years ago | 0

| accepted

Answered
covariance of a matrix which is not a square matrix
As was true of <http://www.mathworks.com/matlabcentral/answers/4280-covariance-of-3-d-matrix your previous post>, your question ...

15 years ago | 0

Answered
creating an empty cell
dlmwrite('myfile.csv',A,'coffset',1) dlmwrite('myfile.csv',B,'-append')

15 years ago | 3

Answered
Gaussian fiting
1. Polyfit wouldn't make much sense because a Gaussian is not polynomial and would be badly approximated by polynomials. 2. T...

15 years ago | 0

| accepted

Answered
How to collect the calculation history during the solving of ODE's
If you just want the value of B at each point in the solution, you could calculate it afterwards using a function that inputs C ...

15 years ago | 0

| accepted

Answered
Numerical integration "backwards"
You seem to be talking about equations for some physical phenomenon like fluid flow. In general, you can't integrate physical eq...

15 years ago | 0

| accepted

Answered
call other program in matlab
You could start by reading <http://www.mathworks.com/help/techdoc/matlab_env/f0-12994.html#f0-38522 Running external programs>.

15 years ago | 1

Load more