A résolu


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

plus de 11 ans il y a

Réponse apportée
How to sort and open up text files titled in a range of numbers
You can use the dir function to get all the files, then extract the time stamp and compare the time stamps of the files with a m...

plus de 11 ans il y a | 0

Réponse apportée
plotting 2 matrices with 1 dependent variable
Not sure, but maybe you're looking for the reshape function? >> reshape([1 2 3 1 2 3],3,2) ans = 1 ...

plus de 11 ans il y a | 0

Réponse apportée
Truncating elements of Vector for XTick and YTick
That's almost the same question as this one: http://www.mathworks.de/matlabcentral/answers/142939-how-can-i-change-the-scale...

plus de 11 ans il y a | 0

Réponse apportée
How to input points and numbers into GUI
A "please be patient" with three exclamation marks is somehow funny... You should have capitalized that sentence ;-) One poss...

plus de 11 ans il y a | 0

Réponse apportée
How can I change the scale of my boxplot
First plot your data and then set the labeling. It should then conserve the limits.

plus de 11 ans il y a | 0

Réponse apportée
Can I get a sample Matlab code for an optimization problem using Firefly Algorithm?
http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=firefly+optimization

plus de 11 ans il y a | 0

Réponse apportée
Launching a different script than the one you're calling
Well, there's something, but I wouldn't recommend it: At the "Run" button (green triangle on white rectangle) theres a drop ...

plus de 11 ans il y a | 0

Réponse apportée
How to reconstruct Matlab code into c++ code
You can use the Matlab Coder: http://www.mathworks.com/products/matlab-coder/ Best regards, Michael

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I change the scale of my boxplot
Dear Tania, as far as I know, there's no dynamic way to do so. But you can use set(gca,'yticklabel',num2str(get(gca,'yt...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
matching texts in two cell arrays
I'm totally sure that much better solutions will be given, but one reads as: index = cellfun(@(a) strmatch(a,longcellarray...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
How to plot a number of points whose coordinates are given as Input by the user in a GUI Table?
I think that's what you need: function test2 figure, h=uitable('data',rand(4,3),'columneditable',true(1,3),'cellEditCallb...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
how to work with the listbox?
You need to use the callback function. A simple short example is the following (Copy this into a new m-file.): function te...

plus de 11 ans il y a | 0

Réponse apportée
plot / names for points
I always add a space: strcat({' '},names) Best regards, Michael

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
While Loop not converging??
If you have imaginary numbers, maybe the problem comes from the acos in the calculation of F? acos is rad based (not degree). Co...

plus de 11 ans il y a | 0

Réponse apportée
hi members i have error using my matlab code "Subscripted assignment dimension mismatch" plz help me out.
I cannot reproduce the error. M=[1 0;0 2]; % mass matrix C=[1.6 -0.8; -0.8 0.8]; % damping matrix K=[5 -4;-4 4]; % s...

plus de 11 ans il y a | 0

Réponse apportée
Problem with fsolve -- Failure in initial user-supplied objective function evaluation
Actually, I'm a bit puzzled why that specific error appears. However, a few questions arise: (I): Why is there no input vari...

plus de 11 ans il y a | 0

Réponse apportée
as showing the coordinates of the corners in the image?
There's a Matlab function ( <http://www.mathworks.de/de/help/images/ref/corner.html> ). If your Matlab version does not supp...

plus de 11 ans il y a | 0

Réponse apportée
How to do numerical fit
Please check out the help for the "fit"-function, there is a very helpful and intuitive example. Easiest way is to save the ...

plus de 11 ans il y a | 1

Réponse apportée
changing fileextension of .in to .txt
I don't know what your code is, but when I save a textfile "example.in" containing just the line "1" and then open the file, I g...

plus de 11 ans il y a | 0

Réponse apportée
changing fileextension of .in to .txt
Dear Cyros, what do you mean "matlab doesn't support"? You can open a file with random extension by fopen('filename.extensio...

plus de 11 ans il y a | 0

Réponse apportée
How to do numerical fit
Dear Alessandro, The fitting procedure can also handle non-analytical functions (that's what you need, if I got you correctl...

plus de 11 ans il y a | 2

| A accepté

A résolu


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

plus de 11 ans il y a

A résolu


inner product of two vectors
inner product of two vectors

plus de 11 ans il y a

A résolu


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

plus de 11 ans il y a

A résolu


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

plus de 11 ans il y a

A résolu


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

plus de 11 ans il y a

A résolu


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

plus de 11 ans il y a

A résolu


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

plus de 11 ans il y a

A résolu


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

plus de 11 ans il y a

Charger plus