Respondida
is this is a bug for fft program?
See the documentation for doc transpose % .' doc ctranspose % ' You're transposing the output of the fft() which is complex;...

más de 7 años hace | 1

| aceptada

Respondida
How to extract certain column of date-time data from a text file?
And, w/ all you considered, you neglected probably the easiest... :) Putting your first sample data into a file I named 'jie.da...

más de 7 años hace | 0

| aceptada

Respondida
Why are spaces ignored when a character string is scanned?
WAD (Working As Documented). From the documentation-- .... This table lists available conversion specifiers for character inp...

más de 7 años hace | 0

Respondida
How can I rename a colum? How can I show several matrices/vectors within one Boxplot?
use optional named labels parameter--boxplot(z,'labels',{'A','B','C','D'}) boxplot([base testing resting]) % each is assumed to...

más de 7 años hace | 0

Respondida
How can I include Tukey (HSD) result in my boxlpot as "a" and/or "b" indicating whether there is a significant difference or not between the groups?
Kinda' a fun one... :) First, make sure your boxplot is gca, then the following seems to be pretty robust...the one probably un...

más de 7 años hace | 1

| aceptada

Respondida
How to define the variable which contain multiple double data?
You were almost there...since each element in the struct array has just 2 columns, they can be catenated vertically--so convert ...

más de 7 años hace | 0

| aceptada

Respondida
How to create new .txt files named like the saved models in a folder and show Diag. View. information of each model in these files seperately?
Oh, probably more nearly what you're looking for would be something otoo-- PATH = 'C:\Users\xxx\Documents\Saved_Models'; dSlx ...

más de 7 años hace | 0

| aceptada

Respondida
getting this message "Operands to the || and && operators must be convertible to logical scalar values." trying to allocate a value to a cell.
app.HSV =0:15; % app.HSV app.tcof = 0:400000; app.invf =0:1; are all vect...

más de 7 años hace | 0

| aceptada

Respondida
I need to help with this code error in undefined function or variable 'ArrayRT1' and plot (ArrayRT1,ArrayRT,2ArrayRM1,ArrayRM2) ,grid
I run your code and find-- ... RTM = 40000 Undefined function or variable 'ArrayRT1'. Exploring, one finds th...

más de 7 años hace | 0

Respondida
Does intrp2 provide 'bicubic' interpolation ?
The 'cubic' method for interp2 is bicubic; it just uses the word 'cubic' to keep consistency in interface with interp1 I don't ...

más de 7 años hace | 0

Respondida
Extract and replace data in the middle of a large text file
I don't suppose is a fixed-length record file by any chance, is it? You can, of course, have grep return the byte offset to the...

más de 7 años hace | 0

| aceptada

Respondida
Switch case option valid for two cases?
But, presuming 'ps' means to do both 'p' and 's', you need that case as well as written anyway because in Matlab the switch bloc...

más de 7 años hace | 0

| aceptada

Respondida
Finding Particular Values In 3D Plots
"... finding the average value of the data in the z-direction throughout all time (i.e. the average z-value for the 1000 frames)...

más de 7 años hace | 1

| aceptada

Respondida
Heatmap font size. Can you change axis and cell label fonts independently?
>> hHM = heatmap(tbl,'Smoker','SelfAssessedHealthStatus'); >> hHM==gca ans = logical 1 >> So, the Answer to the Q? i...

más de 7 años hace | 0

Respondida
How to conditionally assign characters for a new column in a table
Expanding a little on Walter's comment... Lat = [49, 50, 51, 52].'; % create the right orientation in t...

más de 7 años hace | 0

| aceptada

Respondida
Label contour plot elevation marking with text
By using clabel instead, yes...but takes some munging-on there, even. Using the example from countour as starting point-- x = ...

más de 7 años hace | 0

| aceptada

Respondida
Plot matrix with columns of same color
You mean x=1:100; y=randi(420,numel(x),4); c={'r','g','b','k'}; figure hAx=axes; hold on xlim([0 11]) arrayfun(@(i) plot...

más de 7 años hace | 1

| aceptada

Respondida
How to write elements of a nested cell array to an excel?
Since all aren't same size, the trivial solution of xlswrite(cell2mat(WS)) is out unless you augment the shorter to the length...

más de 7 años hace | 0

Respondida
generate a sequence from matrix
Interesting...kinda' cute solution...altho note that the suggested answer is wrong; the minimum for row 7 is the 3 in column 2, ...

más de 7 años hace | 0

| aceptada

Respondida
How to truncate textscan reading
You can't on read. Just round() the data to whatever precision you want after reading it in. x=round(x,1,'significant'); See ...

más de 7 años hace | 0

| aceptada

Respondida
A Peak in y-axis dwarfing the other plot points
You have basically one of three choices -- Set ylim where you want it and let the rest of the graph go off the top and not be s...

más de 7 años hace | 1

| aceptada

Respondida
display every value of a matrix in histogram
Ah! The question isn't about a histogram at all...or, it is, but not a histogram of the data but just plot the counts computed ...

más de 7 años hace | 0

| aceptada

Respondida
create matrix from other two matrices
t=reshape([reshape(temp_n1,8,[]);reshape(temp_n2,3,[])],[],1);

más de 7 años hace | 0

| aceptada

Respondida
display every value of a matrix in histogram
hist(val,unique(val))

más de 7 años hace | 0

Respondida
Polynomial of Random Variables
Then b=[1 0 0 1 2]; % coefficients 4th order poly P=polyval(b,normrnd(mu,s,m,n)); % generate mxn rand p...

más de 7 años hace | 0

| aceptada

Respondida
how to have labeled and unlabeled ticks on the x axis
DOH! figure hAx=axes; xlim([0 2500]) hAx.XMinorTick='on'; Now, this may or may not produce the desired number of minor tick...

más de 7 años hace | 0

Respondida
how to have labeled and unlabeled ticks on the x axis
Actually, the expedient way may be to have two axes...the one with the desired tick labels and the second overlays it with the o...

más de 7 años hace | 4

Respondida
How to detect change in mean value of a signal
The linear or similar trend is probably detectable as Jan says by fitting linear trend line and testing for nonzero slope..._IF_...

más de 7 años hace | 0

Respondida
how to have labeled and unlabeled ticks on the x axis
Not quite as easy as one might think...at least unless somebody else can come up with more expedient route... figure ...

más de 7 años hace | 0

Respondida
Extracting data from matlab figure into .txt file
How on earth was that figure created??? In a loop plotting a new complete line for every iteration of each point, apparently......

más de 7 años hace | 1

Cargar más