Respondida
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)

alrededor de 15 años hace | 2

Respondida
positive solutions to Ax=b
x = lsqlin(A,b,[],[],[],[],0) Least squares with lower bounded x's to 0.

alrededor de 15 años hace | 4

Respondida
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.

alrededor de 15 años hace | 1

Respondida
ismember() returning without unique indexing
[tf,loc] = ismember(b,a); loc.' = 2 2 4 4 4 4

alrededor de 15 años hace | 2

| aceptada

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

Respondida
problem with for loop
for ii = 10.^(1:5)

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 1

Respondida
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 ...

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 2

| aceptada

Respondida
trying to reaccunting the subcarriers
subcarrierIndex = 0:52;

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

Respondida
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.

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 2

Respondida
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...

alrededor de 15 años hace | 0

| aceptada

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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] =...

alrededor de 15 años hace | 0

Respondida
Datenum Problem
Your textscan is not consistent with the lines you posted: textscan(fid,'%s %s %*f %*s %*f For: s s s ...

alrededor de 15 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 15 años hace | 0

| aceptada

Respondida
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);...

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 2

| aceptada

Pregunta


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

alrededor de 15 años hace | 2 respuestas | 0

2

respuestas

Respondida
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...

alrededor de 15 años hace | 4

| aceptada

Respondida
Toeplitz Matrix
toeplitz([1 2 3 0 0 0],[1 0 0 0])

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

Respondida
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',' '); ...

alrededor de 15 años hace | 0

| aceptada

Cargar más