Réponse apportée
For new matlab/simulink users, do you know about the (interactive) video tutorials?!
Just wanted to mention that a new tutorial was added recently: <http://www.mathworks.com/academia/student_center/tutorials/compu...

presque 15 ans il y a | 1

Réponse apportée
How to multiply a vector with each column of a matrix most efficiently?
The first question has been addressed, so I'll just throw out a couple of points about the second question. * The newer the v...

presque 15 ans il y a | 2

| A accepté

Réponse apportée
Throws to get yatzy?
Try this: function [nr_throws] = nr_throws() nr_throws=1; % First throw throw = randi(6,1,5); most_common=mode...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Ordering answers to calculations with lowest first
results = zeros(16,1); for k = 1:16 results(k) = %do calculation end disp(sort(results)) Is that what you mean? ...

presque 15 ans il y a | 0

Réponse apportée
solving system of ODE's
Although I'd generally agree with Jarrod about using |ode45| or similar, from the wording of the question, it sounds like your p...

presque 15 ans il y a | 0

Réponse apportée
Datenum failed
Assuming you haven't looked at every string individually, I'd guess the mostly likely cause is a malformed string somewhere in t...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
matlab certification
RoJo is correct. You receive confirmation of any MathWorks training courses you complete, but there is currently no MathWorks...

presque 15 ans il y a | 3

Réponse apportée
TUTORIAL: how to ask a question (on Answers) and get a fast answer
Do (if possible): * Give examples. * Provide standalone code. If not possible, give a thorough explanation of what the miss...

presque 15 ans il y a | 7

Réponse apportée
i need to read matrix from a png file
*answer* (1) Yes, a |for| loop will do the job. You need a string in each pass through the loop to represent the file name. Yo...

presque 15 ans il y a | 1

Réponse apportée
altering matrices
convn(A,B,'same') where |A| is your matrix, and |B| is a mask that determines the weightings of points for averaging. ...

presque 15 ans il y a | 2

| A accepté

Réponse apportée
Find the Error - FZero Function. Constant loop.
You're calling |fminsearch| with the same initial guess every time. So you get the same |NCons| and |NFirm| every time. So you...

presque 15 ans il y a | 0

Réponse apportée
Sorting Algorithm
In the spirit of Sean's answer... this works for the given example: [~,idx] = unique(Array1); Array2(idx) *EDIT* (and may ...

presque 15 ans il y a | 0

Réponse apportée
Hello , by matlab , compute the product of :
disp(1*0.6366)

presque 15 ans il y a | 1

Réponse apportée
Contributors metainfo: reputation and more
Various congratulations are in order. # Walter's 1500th answer # Walter breaking 2500 rep # Matt Fig's 500th answer # Paul...

presque 15 ans il y a | 1

Réponse apportée
finding coordinates or locations in matrix?
[row,col] = find(...)

presque 15 ans il y a | 4

| A accepté

Réponse apportée
'fname' variable or function?
This is a common error when someone runs a function as a script. That is, running Rebuild2 via the interface (the Editor "play ...

presque 15 ans il y a | 0

Réponse apportée
Get Unique Instance Identifier
Dumb question: why can't you just use the cell index?

presque 15 ans il y a | 0

Réponse apportée
Insert zeros in a vector - Random
Perhaps I misunderstand, but you should be able to do simply: spikes(SpikeTimes*10) = 1; Example: x = [1 2 7 14 17] y =...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
PCA matrix indexed by Day
How are the matrices stored? Chances are, this is probably time for an old-fashioned |for|-loop, possibly using 3-D arrays.

presque 15 ans il y a | 0

Réponse apportée
Problem of robust fitting using the "robustfit" function
There really is no "right" answer, because it's a matter of how you view the problem. |robustfit| uses the residuals to calcula...

presque 15 ans il y a | 0

Réponse apportée
Pearson Calculation using MATLAB
Your |y| values are all the same. Hence y_i - mean(y) = 0 for each i. The formula for covariance is cov(x,y) = sum_i[(x_i-m...

presque 15 ans il y a | 0

Réponse apportée
Data Return Using @
|t| is not determining the parameters |mu|, |sig|, and |df|. They are arguments to the function defined by |t|; they are passed...

presque 15 ans il y a | 0

Réponse apportée
Calculating Mean inside a loop
If you have Statistics Toolbox, you can use |grpstats|. In general, if you're doing a lot with variables in groups, you might w...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
variable coefficient
All the solvers can handle variable coefficients - they are completely ignorant of the details of the equations. All they requi...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
please help me to rewrite this code correct
A few problems leap out at me right away: # |x1 = x0 - f\diff(f)| Slashes in MATLAB are interpreted as "solve the system of eq...

presque 15 ans il y a | 0

Réponse apportée
Changing grid lines to a solid line instead of dashed
set(gca,'GridLineStyle','-') You can't change the gridline color independently of the axis color. The closest you can do is: ...

presque 15 ans il y a | 0

Réponse apportée
How to move from one gui page to another by clicking push button?
I do this for things like help windows: # Set the |'Tag'| property in each window # In the callback, use |findobj| to find the ...

presque 15 ans il y a | 2

Réponse apportée
Optimization Simple search
Can you explain what you want beyond |min(x)|?

presque 15 ans il y a | 1

Réponse apportée
common colorbar
Hard to say without seeing the code, but it looks like there's some condition that makes it possible for |layoutColorbar| to com...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How to save statitiscs displayed in workspace as text file?
Do you mean you want a list of variable names, sizes, classes, bytes used,...? If so, you could do |vars = whos|, then save/wri...

presque 15 ans il y a | 0

| A accepté

Charger plus