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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 3

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

Cargar más