回答済み
Change axes x in stackedplot
See yesterday's news...<how-can-i-change-the-pspectrum-time-units> and, while it doesn't look related from the title, it's got t...

約6年 前 | 0

| 採用済み

回答済み
find first and last index below threshold in a vector
Use find

約6年 前 | 1

| 採用済み

回答済み
What frustrates you about MATLAB? #2
Stuff like <heatmap-axis-labels-printing-vertically> and <how-can-i-change-the-pspectrum-time-units>. Introducing all these mos...

約6年 前 | 2

回答済み
How to change strange cell array within a table to double or categorical array
Well, it'd be easier to be sure if could actually know for sure what the data storage is, but guessing on account of the " surro...

約6年 前 | 0

| 採用済み

回答済み
Locating characters in a string array
As the other respondent says, you don't need a corollary array unless the lookup isn't 1:1 with position (which your description...

約6年 前 | 1

回答済み
Extrapolate using half the slope than in original data
You've got to match the two at the breakpoint...w/o data so didn't use but the endpoints to roughly match your figure... x=[1 2...

約6年 前 | 1

| 採用済み

回答済み
How to change strange cell array within a table to double or categorical array
Use the optional valueset, and perhaps catnames inputs to categorical to define as desired.

約6年 前 | 0

回答済み
What exactly does tStat of fitlm function refer to?
Well, it's the basic linear model hypothesis test statistic that each coefficient in the model is significantly different from t...

約6年 前 | 0

| 採用済み

回答済み
How can I change the pspectrum time units?
t = seconds(0:length(x)-1)/fs; will fix it.

約6年 前 | 0

| 採用済み

回答済み
Heatmap Axis Labels Printing Vertically?
Oh, TMW has done it again -- they've buried stuff inside opaque (to the user) objects that should be visible. I wish they would...

約6年 前 | 0

回答済み
Issue with finding intersection between randomly generated matrices
The results for intersect are correct .. >> (A(16,:)-A_new(3,:)) ans = 1.0e-13 * 0 0 0.1421 >> The ...

約6年 前 | 0

| 採用済み

回答済み
How to check each number in a user given vector
if nargin<3 GNSSflag = [0 0 0 0]; GNSS = {'GPS','GALILEO','GLONASS','BEIDOU'}; [indx,tf] = listdlg('ListString',G...

約6年 前 | 0

回答済み
Remove the legends for some lines in a plot
If you only want the scatter points in legend, set the 'Annotation' property to not show the lines... plot(fittedX, fittedY...

約6年 前 | 0

回答済み
Matlab command for plotting complex number?
See https://www.mathworks.com/help/matlab/creating_plots/plot-imaginary-and-complex-data.html

約6年 前 | 0

| 採用済み

回答済み
Merge datetime with another cell for export
Sure... >> c={datetime(now,'ConvertFrom','datenum'),pi} c = 1×2 cell array {[25-Jun-2020 08:22:52]} {[3.14]} >> wr...

約6年 前 | 0

| 採用済み

回答済み
How to combine 2 Fits done with cftool
%% Fit: 'untitled fit 1'. [xData1, tmp] = prepareCurveData( Fqr, Prem ); yData1 = tmp+pi/2; % Set up fittype and options. ...

約6年 前 | 0

| 採用済み

回答済み
How to compare the colums ( 2nd and 3rd) of 2 .csv files based on a condition
Has to be a more direct way, but following works if I understand the request -- tF1=readtable('file1.csv'); tF1.condition=categ...

約6年 前 | 0

回答済み
How to add the year to the stairs plot
Use a datetime for your time variable and you'll get time plots automagically along the x axis and can set xlim() values with da...

約6年 前 | 0

回答済み
I want to plot Linear Equations but dont know how to do it on matlab
Since you're still new, let me make some suggestions on coding -- First, use newer features -- if you'll read the doc for xlsre...

約6年 前 | 0

回答済み
Speed up FFT calculation
"The signal matrix is 36350x2048, 36350 being the number of signals and 2048 being the zero padded length of each signal. " Use...

約6年 前 | 0

| 採用済み

回答済み
Error when trying to plot multiple box plot's in the same graph.
Your orientation for kcnt1Table is wrong -- as is you'll have 13 boxes, not six; boxplot treats each column as variable. You do...

約6年 前 | 0

| 採用済み

回答済み
Calculate average for each hour in day
IIUC, retime is not the tool for this; it bins data into desired time segments such as hourly but averages within those bins. T...

約6年 前 | 1

| 採用済み

回答済み
How to simplify the for loops and if statement in this code
Straightahead w/o trying to save some recomputations that could be done by complements-- k=[sum(A==B & A==0,'all') sum(A==B & A...

約6年 前 | 0

| 採用済み

回答済み
Creating a mesh plot with data in a timetable
OK, the above conversation branched another route -- time=datenum(Time); % convert to datenum since they're doubles...

約6年 前 | 0

| 採用済み

回答済み
Using bar3 and color coordinating the height depending on the value
They're all the faces color vertices data -- it's a convolved mess to fiddle with manually, fer shure, good buddy! :( Your cod...

約6年 前 | 1

回答済み
Creating a mesh plot with data in a timetable
That form for meshz doesn't use any x-,y-coordinates at all -- it just plots against the ordinal position numbers of the Z array...

約6年 前 | 0

回答済み
extract year from date and add to a table
Nothing, really. It's an undocumented edge case of incorrect input to the function datenum that for some reason instead of thro...

約6年 前 | 0

| 採用済み

回答済み
How i accumulate multiple variables?
out=out(:); % just reshape to column vector Use k=2*(i-1)+j; % for index vector where i,j ==> a(:,1), a(:,2), resp...

約6年 前 | 0

| 採用済み

回答済み
percentage of up days every 12 days
However, the neatest solution is probably nD=12; % number days for moving percentage dCP...

約6年 前 | 0

回答済み
Converting C++ to MATLAB: statement
A[index1d(x,y,z)] = A[index1d(x,y,z)] + B[i]*W; in C/C++ Presuming conformance of dimensions, etc., A(index1d(x,y,z)) = A(i...

約6年 前 | 1

| 採用済み

さらに読み込む