Réponse apportée
finding values common to 3 different single-column matrices
Out = <http://www.mathworks.com/matlabcentral/fileexchange/28341-set-functions-with-multiple-inputs intersectm>(A,B,C)

environ 15 ans il y a | 2

Réponse apportée
positive solutions to Ax=b
x = lsqlin(A,b,[],[],[],[],0) Least squares with lower bounded x's to 0.

environ 15 ans il y a | 4

Réponse apportée
cell array or multidimensional array?
Cell arrays have significant overhead and they are slower wrt do a double nD array but they can mix datatypes.

environ 15 ans il y a | 1

Réponse apportée
ismember() returning without unique indexing
[tf,loc] = ismember(b,a); loc.' = 2 2 4 4 4 4

environ 15 ans il y a | 2

| A accepté

Réponse apportée
boxplot - different group sizes
Say you have: A = rand(20,1); and you want the first 5 value to be for one group, then the rest 15 for the second. Create an...

environ 15 ans il y a | 0

Réponse apportée
creating a unique variable for the outputs of a for loop?
See this FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F The example taken f...

environ 15 ans il y a | 0

Réponse apportée
Why do you come to "MATLAB Answers"?
*abcegi* Listed in alphabetical order, you wanna how I rank them, no wayyyyy.

environ 15 ans il y a | 1

Réponse apportée
problem with for loop
for ii = 10.^(1:5)

environ 15 ans il y a | 1

Réponse apportée
xlswrite - clear cells and write multiple values
The easiest would be to write to a new sheet (see xlswrite options) Or using activex as explained in this post (clears all shee...

environ 15 ans il y a | 0

Réponse apportée
matlab challenge- searching range of data to see if certain values exist
# Import the file with xlsread (is that an xlsx?) # Convert dates into serial dates # Use logical indexing/ismember to locate...

environ 15 ans il y a | 1

Réponse apportée
How to plot with initially undefined number of lines in a .m file
Yes you can make it dynamic with: myPlot(X,Y,legend,axis,title) For say *n* graphs: * X,Y are m by n double arrays, or ...

environ 15 ans il y a | 0

Réponse apportée
Actxserver Excel Save as function
function saveAsExcel % Figure S.fh = figure('units','pixels',... 'position',[500 500 200 100],... 'menubar...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
trying to reaccunting the subcarriers
subcarrierIndex = 0:52;

environ 15 ans il y a | 0

Réponse apportée
Excel reading - xlsread
Use the second output of xlsread. [data, text] = xlsread(...); The first three columns and the first row is interpreted as c...

environ 15 ans il y a | 1

Réponse apportée
Problem in appending matrices in vertical form
* no trace of finalData declaration (where does it come from) * you don't need the inner loop. Keep just the command inside.

environ 15 ans il y a | 0

Réponse apportée
How do I use CFTOOL?
From the fitting panel save to workspace the model and: 1. Use the following code to get the mathematical expressiona and the...

environ 15 ans il y a | 2

Réponse apportée
dividing a column matrix based on the no
A = [0 0 0 1 1 1 1 0 0 0 0 2 2 2 2 0 0 0 0].'; Split sequence (transforming in string) out = regexp(sprintf('%d',A) ,'(1...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
A simple way to view what code a gui/toolbox (such as PDE Toolbox) is using/doing?
No simple way with lots of code written by somebody else (and sometimes even by yourself if you didn't comment it) Set a breakp...

environ 15 ans il y a | 0

Réponse apportée
Place(s) of greatest deviation
Y = [0 0 0 0.5 0.5]; X = [0 0 0 1 1]; absdiff = abs(X-Y); pos = find(max(absdiff) == absdiff); % or [trash,pos] =...

environ 15 ans il y a | 0

Réponse apportée
Datenum Problem
Your textscan is not consistent with the lines you posted: textscan(fid,'%s %s %*f %*s %*f For: s s s ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How to import multiple .xlsx files all within the current directory in an organizational manner?
I don't understand what's your problem. Your approach for importing multiple files is correct. You cannot have a "handle" to a ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
how to plot percentage on y axis
Here's an example of how to set % values for the Y axis:ù % Example input L = 0:.1:1; % Plot plot(1:numel(L),L);...

environ 15 ans il y a | 0

Réponse apportée
Using ranksum function
Use *<http://www.mathworks.com/help/toolbox/stats/signrank.html signrank>*: p = signrank(x) performs a two-sided signed rank ...

environ 15 ans il y a | 1

Réponse apportée
Regression Estimates, Maximum Likelihood, Ordinary Least Squares
When the errors are distributed normally then OLS (easiest) = MLE (numerical solution) * <http://en.wikipedia.org/wiki/Ordina...

environ 15 ans il y a | 2

| A accepté

Question


Datenum incoherent documentation
>> datenum('13/03/2011',24) ans = 6819 >> datenum('12/03/2011',24) ans = 734840 datenum('13/...

environ 15 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Create time intervals of a time vector
Vector of 9:00 - 17:30 with 15 mins increments (24 hours a day, 96 quarters a day) dv = 9/24:1/96:17/24+2/96; Visualize resu...

environ 15 ans il y a | 4

| A accepté

Réponse apportée
Toeplitz Matrix
toeplitz([1 2 3 0 0 0],[1 0 0 0])

environ 15 ans il y a | 2

Réponse apportée
Monte Carlo
This example is what you're looking for: <http://www.vertex42.com/ExcelArticles/mc/MatlabMCExample.html> MC is computationally ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
finding neighbor value
*EDITED* To make it flexible n = distance from center A = randi(170,17,13); center = [8 7]; n = 2; % Bound...

environ 15 ans il y a | 0

Réponse apportée
read different file formats then return their values
fid = fopen('fullpath/namefile.cep'); % In read mode by default data = textscan(fid,repmat('%f',1,15),'Delimiter',' '); ...

environ 15 ans il y a | 0

| A accepté

Charger plus