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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 2

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 3

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

fast 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

Mehr laden