回答済み
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...

9年以上 前 | 0

回答済み
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...

9年以上 前 | 0

回答済み
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...

9年以上 前 | 0

| 採用済み

回答済み
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. ...

9年以上 前 | 0

| 採用済み

回答済み
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...

9年以上 前 | 0

回答済み
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...

9年以上 前 | 1

回答済み
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 ...

9年以上 前 | 0

| 採用済み

回答済み
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...

9年以上 前 | 0

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

9年以上 前 | 1

| 採用済み

回答済み
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...

9年以上 前 | 0

回答済み
interpolating across multiple axis
See doc interpn

9年以上 前 | 0

回答済み
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...

9年以上 前 | 0

回答済み
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...

9年以上 前 | 0

回答済み
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...

9年以上 前 | 1

回答済み
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...

9年以上 前 | 0

回答済み
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{...

9年以上 前 | 2

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

9年以上 前 | 0

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

9年以上 前 | 1

| 採用済み

回答済み
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...

9年以上 前 | 0

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

9年以上 前 | 0

| 採用済み

回答済み
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...

9年以上 前 | 0

回答済み
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 ...

9年以上 前 | 0

| 採用済み

回答済み
How can I Name matrices by giving input ???
See the FAQ <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F <How can I create var...

9年以上 前 | 0

回答済み
Real-time heart rate calculation
I'm going to put this as an Answer to emphasize the point again...your timing code of just a single read in a tight loop shows t...

9年以上 前 | 1

回答済み
How to write the values at an axes in a usual plot in Matlab R2014a in Latex style?
Works with R2014b; I suspect that was the release in which the additional property was introduced; I wasn't aware of it until th...

9年以上 前 | 0

回答済み
How do I change the default axis color and axis label text to black?
Read <http://www.mathworks.com/help/matlab/creating_plots/default-property-values.html <DefaultPropertyValues>> for the "how" wh...

9年以上 前 | 2

回答済み
How to create a new vector with AM/PM labels from vector of times
Still learning way around the |datetime| object; may be more direct route... dtm=datetime(num2str([0:23].','%02d:00'),'inp...

9年以上 前 | 0

回答済み
Why using textscan, if i use more than 4 columns, i get the first 4 columns with 2301 rows and the rest with 2300?
'Cuz the file format is extremely irregular with the header information at the beginning of each section and you've told *textsc...

9年以上 前 | 0

| 採用済み

回答済み
Convert .txt/.mat to .wav format
load('data.mat') will leave whatever the variable in the file name is as the variable in the workspace. Clearly it wasn't ...

9年以上 前 | 1

| 採用済み

さらに読み込む