Respondida
Creating multiple inputs depending on conditions
Of course, but I _strongly_ recommend against building the _N_ variables A1...AN. Ask the user for an array _A_ instead with N ...

más de 9 años hace | 1

Respondida
why does it keep saying "not enough input arguments" when i run my code?
The arguments listed in the function definition are simply "dummy arguments"; they're placeholders and names to be used internal...

más de 9 años hace | 0

Respondida
error in the code not getting removed
You have two matrix multiplications in the offending line |H+l1*eye(nh,nh))\(H'*Data.y);| So, the problem is one of the follo...

más de 9 años hace | 0

| aceptada

Respondida
Calculating bottom percentile and top percentile of a distribution using prctile()
Isn't top 30% simply (100-30)% -->70%???

más de 9 años hace | 0

Respondida
How to store values in a array from a loop?
... m=0; for i = 2:25 for j = 2:38 m=m+1; Z(m,:)=[Samples_X(i, j), Samples_X(i, j+1),Samples_X(i,j...

más de 9 años hace | 0

| aceptada

Respondida
“The exact method is impossible. Will be forced to use approximate method. ”in “regstats”function?
See the _*Algorithms*_ section under doc dwtest It is a normal approximation referenced back to the D-W article from B...

más de 9 años hace | 0

| aceptada

Respondida
while inside a loop.
What you're missing here is the definition of 'True' in Matlab for vectors/arrays in *if* and *while* and other logical tests. ...

más de 9 años hace | 0

| aceptada

Respondida
GUI - position axis label possible?
Not certain what you want labelled where but |*xlabel*| by default will be at the midpoint of the axes to which it belongs and b...

más de 9 años hace | 1

Respondida
How do I plot one matrix as a function of another?
[~,ix]=sort(distanceArray(:)); % get order vector of distances in the distance array plot(distanceArray(ix),intensityArra...

más de 9 años hace | 0

Respondida
Is it possible to loop a textscan?
Is the 'CPNC' string consistent throughout the file? If so, read the whole file as cellstring array and just do *findstr* ope...

más de 9 años hace | 0

Respondida
How do I get the position of the highest numbers of a vector?
>> [mx,ix]=sort(a,'descend'); >> N=4; >> num2str([ix(1:N) mx(1:N) ],'Posn %2d Value %7.4f') ans = Posn 2 Value 1.181...

más de 9 años hace | 0

| aceptada

Respondida
How to plot array of array in Matlab?
In A = [MinF, MaxF, ... , CoVF]; you've created one long row vector in A but then tried later to reference it by rows. ...

más de 9 años hace | 0

| aceptada

Respondida
Finding the 3rd largest element in an array.
Just go with the first option; the latter sorts the array three separate times. Unless the array size is humongous should be "a...

más de 9 años hace | 0

Respondida
How can i change my code by using the mod command?
After your error checking all you need is ... days={'Saturday','Sunday','Monday','Tuesday','Wednesday','Thursday','Frida...

más de 9 años hace | 1

Respondida
how to generate a sine wave with my data in excel sheet?
Why did you not put the data on either two rows or in two columns; seems far more logical structure. Still, no problem; just ...

más de 9 años hace | 0

| aceptada

Respondida
How can i use a symbol as a variable ?
From help isvarname ... valid variable name is a character string of letters, digits and underscores, with ... th...

más de 9 años hace | 0

Respondida
Subtraction matrixes with different dimensions
D = pdist2(X,Y); See doc pdist2 % note size of result will be length(X)*length(Y)

más de 9 años hace | 1

| aceptada

Respondida
How to create normal distribution with positive integers in matlab with bell shape graph?
Gargle is your friend... :) <http://www.sciencedirect.com/science/article/pii/S1674775515001031#tbl1> has a list of a half...

más de 9 años hace | 0

Respondida
interpolating across multiple axis
See doc interpn

más de 9 años hace | 0

Respondida
What causes a command not supported error?
_"...using these arguments: 'empty'."_ Apparently "you can't do that" for the iPad; |pause| w/o an argument is a complete pau...

más de 9 años hace | 0

Respondida
Reading from a variable length text file
Yet another... nColTot=16; % either known a priori or from scanning file first fmt=['%s' repmat('%f',1,N-1)]; % fo...

más de 9 años hace | 0

Respondida
Creating matrix of given pattern
For a much smaller size array so can see the results; size is actually immaterial to logic-- >> N=2; M=3; % pick si...

más de 9 años hace | 1

Respondida
How do I convert characters to a mathematical function?
As the other respondent says, it's a parser or some variation upon *eval* First, if you have control over the syntax generate...

más de 9 años hace | 0

Respondida
Calculate duration from cell with date hours with Matlab 2013a
If using version prior to introduction of |datetime|, just use date numbers directly... >> dn=datenum([char(A{:,1}) char(A{...

más de 9 años hace | 2

Respondida
Replace value with index in 2D array
>> [~,j]=find(A); >> A(A==1)=j A = 0 0 3 1 0 3 0 2 0 >>

más de 9 años hace | 0

Respondida
Pareto chart and XTickLabelRotation
Looks like an implementation bug. You can make the following fixup ... [H, ax] = pareto(y,names); linkprop(ax,'posit...

más de 9 años hace | 1

| aceptada

Respondida
How do I convert a character array A(N,1) to a string array B(N,12)?
Don't have |*string*| in R2014b so can only read documentation, and your posting isn't anything anybody can actually test as wri...

más de 9 años hace | 0

Respondida
Assign values to a matrix from a 2 dimensional array....
a(a==0)=1; % done! Look up "matrix addressing" in documentation

más de 9 años hace | 0

| aceptada

Respondida
Can Matlab read an xls with multiple list values
|*xslread*| is limited to reading a contiguous, rectangular area so if your values from the list aren't in such a pattern, "no c...

más de 9 años hace | 0

Respondida
Retrieval of Stock Price Help (explained below)
AFAIK all free feeds are on delay; the Yahoo financial page indicates the major markets are 15 min. delay altho the indices are ...

más de 9 años hace | 0

| aceptada

Cargar más