Réponse apportée
Q: solving ax=0 with regularization?
There is a package called <http://www.mathworks.com/matlabcentral/fileexchange/52 regtools> in the File Exchange that might help...

plus de 14 ans il y a | 0

Réponse apportée
Amend code to save file in a different format
You could use this code: fid = fopen('example.txt','w'); fprintf(fid,'%i %i %i %i %i %i %i\n',D); fclose(fid); If you ...

plus de 14 ans il y a | 0

Réponse apportée
Hole filling by interpolation method?
If your data are irregularly spaced, you could try using <http://www.mathworks.com/help/techdoc/ref/triscatteredinterpclass.html...

plus de 14 ans il y a | 0

Réponse apportée
Sym
Use <http://www.mathworks.com/help/toolbox/symbolic/vpa.html vpa>, e.g., c = vpa(a*b,4)

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Colorbar in an other figure...
The *really* simple way to do it is to just grab the bar with the mouse and move it. Do you want to automate this? If you do ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Display Text Without Formatting
You can replace all the occurrences of |href| by |HREF| for display: str = {'<a href="test">TEST1</a>';'<a href="test">TEST...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
text to annotate figure
Sounds like you might want to use <http://www.mathworks.com/help/techdoc/ref/legend.html legend>.

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Get the "handle number" of a standard handle class
Setappdata seems best because of the limitations on using the UserData property (see <http://www.mathworks.com/support/tech-note...

plus de 14 ans il y a | 1

Réponse apportée
visualization of 3D matrix: how do I swap the y and z axis?
You can use <http://www.mathworks.com/help/techdoc/ref/permute.html permute> to rearrange the order of the dimensions and <http:...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Matlab Array Division
It's just d2 = 200./d1; Note the dot. This is element-by-element division (see <http://www.mathworks.com/help/techdoc/re...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to remove this error Improper assignment with rectangular empty matrix.
I can't reproduce your exact error message, but it is probably occurring because either |va| or |vb| are empty (there weren't an...

plus de 14 ans il y a | 0

Réponse apportée
nicer outcome from fprintf
There are two approaches you could use. One is just to specify the width of each field: fprintf(fid{i},'%12s\t%12s\t%9.6f\n...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
what is the normalizings in generalized eigvalues in matlab
The documentation for |eig| says that the vectors are not normalized. *EDIT*: <http://www.mathworks.com/help/techdoc/ref/qz.h...

plus de 14 ans il y a | 0

Réponse apportée
wrapping
You could save the changes when you unwrap and then reverse them: pw = unwrap(pold); pdiff = pw-pold; ... % change pw her...

plus de 14 ans il y a | 1

Réponse apportée
What are the rules for naming script files?
Check out <http://www.mathworks.com/help/techdoc/matlab_prog/f10-60729.html Variables> and the documentation for <http://www.mat...

plus de 14 ans il y a | 0

Réponse apportée
Handles and Function outputs?
This code is solving |rho*Cp*(du/dt) = d/dx(k du/dx)| (a heat transport equation). The terms |c, f, s| returned by |pdex1pde| co...

plus de 14 ans il y a | 0

Réponse apportée
For loop of symbolic variables extracting symbolic coefficients
See <http://www.mathworks.com/matlabcentral/answers/242-how-to-generate-symbolic-variables-dynamically-at-run-time How to genera...

plus de 14 ans il y a | 0

Réponse apportée
matrix values as text on plot
You could do all the text commands in a loop, for example: A = randn(20); x = linspace(0,1,20); y = x; pcolor(x,y,A); col...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Why your question is NOT "urgent" or an "emergency"!
Just for curiosity, has anyone seen a genuinely urgent question?

plus de 14 ans il y a | 2

Réponse apportée
program that calls itself
See <http://www.matrixlab-examples.com/recursion.html Recursion - a conceptual example>.

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
symprod error
Are you sure you have the Symbolic Toolbox? Try typing |ver| and see if it is one of the ones listed. If it is listed, maybe ...

plus de 14 ans il y a | 0

Réponse apportée
font problem ??
The default interpreter is actually TeX, and maybe that is causing your problem. Try this: h2=ylabel('$k^2/(2 \pi)$') set(...

plus de 14 ans il y a | 0

Réponse apportée
Help with fsolve in for loop!
The source of the error is probably your references to |x(1)| and |x(2)|, because you have defined |x| as a scalar in |syms x|. ...

plus de 14 ans il y a | 0

Réponse apportée
Semiautomatic complex-step differentiation of real-valued functions
There is another implementation in <http://www.mathworks.com/matlabcentral/fileexchange/11870-numerical-derivative-of-analytic-f...

plus de 14 ans il y a | 1

Réponse apportée
LEGEND TITLE
There is a lot of information buried in layers of handle graphics. You can do the following: hleg = legend('820mm','750mm',...

plus de 14 ans il y a | 4

| A accepté

Réponse apportée
problem with command solve inside a function.
When I try running this function function [a,tt] = runtest(ka,landa) [a,tt] = test(ka,landa); I get the same answer for...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
lsqcurvefit command window exit flag suppression
You could include |options| in your call to |lsqcurvefit| and set |Display| to 'off': opts = optimset('lsqcurvefit'); opti...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
contourf with no isoline
Here is an example of how to do it: [C,h] = contourf(peaks(20),10); set(h,'LineColor','none')

plus de 14 ans il y a | 8

| A accepté

Réponse apportée
Integration problem
You can calculate integrals with limits of |-Inf| or |Inf| using <http://www.mathworks.com/help/techdoc/ref/quadgk.html quadgk>....

plus de 14 ans il y a | 0

Réponse apportée
rearranging the data in separate columns when difference of 10 is found in vectors
You could do this using a cell array: % preallocate array n = ceil(max(x)/10); y = cell(n,1); % populate it for ...

plus de 14 ans il y a | 0

Charger plus