Réponse apportée
I want to add a push button or a clickable link into a cell of table
You can use HTML to format a string in a |uitable|, however the <http://www.mathworks.com/matlabcentral/newsreader/view_thread/2...

presque 14 ans il y a | 0

Réponse apportée
I want information on dateticks
datetick('x','mmm-yy')

presque 14 ans il y a | 0

Réponse apportée
how to shorten this equation?
Sum for each row the odd columns (form1) and the even columns (form2): form1 = sum(K(:,1:2:end),2); form2 = sum(K(:,2:2:...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Functions
You should use a dedicated .m file for a function, i.e. the first line of a function is always (except comments): |function o...

presque 14 ans il y a | 0

Réponse apportée
find repeating numbers
unNum = unique(data(:)); [n,bin] = histc(data(:),unNum); With your example you're not likely to find any repetition (y...

presque 14 ans il y a | 1

Réponse apportée
TEXTSCAN - .csv - mutliple columns to a vector/double/matrix
I don't get strange results but expected behaviour of textscan. cell2mat(data(:,2:end)) or when importing: data = t...

presque 14 ans il y a | 0

Réponse apportée
Memory Pre allocation, Dataset Array
One way: n = 300; names = arrayfun(@(x) sprintf('C%d',x),1:n,'un',0); dataset([{zeros(30,n)},names]) Or d...

presque 14 ans il y a | 1

Réponse apportée
Cannot call java class from Matlab
I tried your example but I added the path manually to |$matlabroot\toolbox\local\classpath.txt| (on a new line simply add): ...

presque 14 ans il y a | 0

Réponse apportée
Need to Automate multiple sinwave regressions of a dataset
I suggest to use non-scalar structures: % Some random inputs y = rand(501,1); sincos = rand(5,1); n ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Galois Field
Check this submission: http://www.mathworks.com/matlabcentral/fileexchange/12542-galois-field-array-to-decimal-array-conversion

presque 14 ans il y a | 1

Réponse apportée
Read .txt file with header
str = urlread('http://web.gvdnet.dk/GVD002139/151.txt'); data = textscan(str, '%s%s%f%f%f%f%f%f%s%s', 'HeaderLines',9,'Col...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
reshaping 2D matrix into 3D - specific ordering
[r,c] = size(a); nlay = 3; out = permute(reshape(a',[c,r/nlay,nlay]),[2,1,3]); Yes, MATLAB does 'think' along rows...

presque 14 ans il y a | 11

| A accepté

Réponse apportée
Rare examples of confusing error messages
The guilty one: foo('') Undefined function 'foo' for input arguments of type 'char'. No inputs: foo Undefin...

presque 14 ans il y a | 2

Réponse apportée
Implementing `dTgSen' command of Gauss in Matlab
Is this what you're looking for: <http://www.mathworks.co.uk/help/techdoc/ref/ordschur.html |ordschur|>

presque 14 ans il y a | 0

Réponse apportée
Simple but elusive array question
[r,c,v] = find(a); out = accumarray([v,c],1,size(a));

presque 14 ans il y a | 3

| A accepté

Réponse apportée
using if to find a value in one variable, but then give you the value of a second variable
[val,idx] = max(Q) This is the row-wise maximum, i.e. along the rows for each column. |idx| says on which row the max is f...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Vectorization
diff(M) <= 0

presque 14 ans il y a | 1

| A accepté

Réponse apportée
extraction from notepad
Soluion with |textscan|: fid = fopen('C:\Users\Oleg\Desktop\test.txt'); out = textscan(fid,'%3s%*[^=]%f','Delimiter','='...

presque 14 ans il y a | 0

Réponse apportée
cell array in matlab..
One of the many solutions: cellfun(@(x,y) str2double(x(y+1:end)),c, regexp(c,'=')) Let us know if the timings are fine...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Generating numbers from a multivariate standard normal distribution
http://www.mathworks.com/matlabcentral/answers/23173#answer_30456

presque 14 ans il y a | 0

Réponse apportée
replacing the strings with a specific length in a cell
n = 3; idx = cellfun('prodofsize',a(:,2)) >= n; a(idx, 2) = {'m'}; Note, however that cellfun is a concealed loop.

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Max / Min of sparse matrices
For the max you should not have any problems: % Find the max (along columns) [mmax,Imax] = max(A,[],2); [rmax,~,m...

presque 14 ans il y a | 0

Réponse apportée
slicing multi-dimensionsal arrays
Your input: A = cat(3, [1 2; 3 4], [10 20; 30 40], [42 3.14; 97 21]); 1. The |squeeze| removes all singleton dimensions:...

presque 14 ans il y a | 0

| A accepté

A résolu


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

presque 14 ans il y a

Réponse apportée
to retrieve data from a n*n matrix
*a)* data = x(:,1:end-1); histc(data(:),1:max(data(:))).' *b)* Why would you want to separate it when yuo can index i...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Matlab won't plot anything. please help why?
I did not preallocate, up to you. Keep things not dependent on the iteration outside of the loop. Also, this can be achieved...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Problems Generating Scrambled Quasi-Monte Carlo Numbers in Parfor Loops
Give a look at: http://blogs.mathworks.com/loren/2011/07/07/simpler-control-of-random-number-generation-in-matlab/ Especi...

presque 14 ans il y a | 0

Réponse apportée
Estimate the common logarithm of 10 using linear interpolation.
step = 0.1; log10(8:step:12)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Bootci usage: passing vectors into function
% Inputs y = randn(100,1); v1 = 1:10; v2 = 10:-1:1; % Only 'x' is the input since we fix v1 ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Use cells or char with if command
String comparisons should be carried out with <http://www.mathworks.co.uk/help/techdoc/ref/strcmp.html |strcmp|> if strcmp(...

presque 14 ans il y a | 1

Charger plus