回答済み
How to position a table within a figure?
You can retrieve the figure position vector from which you can get the width and height of the figure (3rd and 4th elements, res...

5年以上 前 | 0

回答済み
how to check all boxes in uitable column with a button?
Just put the code to set the column variable all to TRUE in the callback for your pushbutton...trivial example from uitable doc....

5年以上 前 | 1

回答済み
How to transform a cell array, which contains dates but not in the datetime format, into datetime array
>> dt=datetime(tstr,'InputFormat','yyyy-MM-dd''T''hh:mm:ssXXX','TimeZone','America/Chicago') dt = 3×1 datetime array 08...

5年以上 前 | 1

| 採用済み

回答済み
unique is giving the same expression twice
I didn't notice the data attached for this case -- the same exercise as above shows: >> sort(categories(A)) ans = 29×1 cell...

5年以上 前 | 3

| 採用済み

回答済み
Substitue values with text
% create sample data table T=table(randi([30,70],10,1)+rand(10,1),'VariableNames',{'Early'}); T.Final=T.Early+(randi([-20,20],...

5年以上 前 | 0

回答済み
Matching columns of timetables
ix=ismember(energy_tt.RowTimes,date_tt.Start_time_1); energy_tt.Power(ix) = 11; Also see the synchronize function

5年以上 前 | 0

| 採用済み

回答済み
How can I convert a multidimensional array to csv ?
csvwrite is deprecated in favor of writematrix for arrays but is not documented for table inputs (at least thru R2019b). Having...

5年以上 前 | 1

回答済み
How can I re-open a closed figure from a stored plot handle?
No. All the plot_data array contains is the handles to the chart surface objects that were created by surf. However, even thou...

5年以上 前 | 1

| 採用済み

回答済み
How to change the xticketlabe of a bar chat
You can either just set xticks where you want them or use the x vector in bar if there are other than just ordinal positions for...

5年以上 前 | 0

| 採用済み

回答済み
smoothed scatter plot matlab like excel
fXY=fit(X,Y,'smoothingspline'); plot(fXY,X,Y,'b-') fXYv=fit(Xv,Yv,'smoothingspline'); plot(fXYv,Xv,Yv,'r-') Above needs Curv...

5年以上 前 | 0

回答済み
How to read satellite data with .dim and .data folder in Matlab
I was looking for the support site for the source of the data -- generally there will be links to how to use the data with MATLA...

5年以上 前 | 0

回答済み
How to read csv file containing text and numbers in the same cells
Wowsers! That's a nice file format for reading visually, but surely a pain to postprocess. Can you not set the machine up to o...

5年以上 前 | 2

| 採用済み

回答済み
How to check if a multi-column row of a matrix exists in another matrix
"...there are no easy, single line solutions to this." Au contraire, good buddy! :) >> C=A(~ismember(A,B,'rows'),:) C = ...

5年以上 前 | 0

| 採用済み

回答済み
Undefined function or variable
As noted above I don't know for certain whether the Date2Num is just a missing m-file or an attempt to use a Python function. Y...

5年以上 前 | 1

| 採用済み

回答済み
Monthly maximum in data
t = datetime(2018,1,1:500)'; rsq = [rand(500,1) day(t) month(t) year(t)]; Alternatively for the same data structure above: ma...

5年以上 前 | 1

回答済み
How to do a Loop statement from cell to double?
Use ordinal categorical variables -- t1989=readtable('1989.xlsx','Range','10:40','ReadVariableNames',0); % get in a set of ...

5年以上 前 | 2

| 採用済み

回答済み
Redefining a variable in a multidimensional array
There isn't a time vector explicitly stored in the 3D array; each slice(*) in the array is associated with the corresponding tim...

5年以上 前 | 0

| 採用済み

回答済み
Forcing a scalar to be represented as a 1x1 vector
By the table in the documentation, >> jsonencode({c}) ans = '[4]'

5年以上 前 | 2

| 採用済み

回答済み
Use text in table to make variables
Do NOT even think about doing this.

5年以上 前 | 0

回答済み
Replacing empty cells using for loop
Short answer is, "you can't". A double array cannot have an empty element; it is either empty or full. A cell array is the on...

5年以上 前 | 1

| 採用済み

回答済み
How do position coordinates work on a subplot?
It appears that those [x,y] positions are the image indices from the upper left of the image. If you look at the two examples a...

5年以上 前 | 1

回答済み
using fwrite for multiple data type at once
The precision, skip, machinefmt optional inputs to fwrite have not been vectorized (as you have discovered), so you can't interm...

5年以上 前 | 0

回答済み
How can I import multiple .CSV files in MATLAB and SISTEMATICALLY process the data of each file?
See <Importing-all-files-from-a-specific-folder?> from yesterday. There's a section in the doc with examples on processing mult...

5年以上 前 | 0

回答済み
Importing All Files from a specific Folder
datapath=uigetdir([],'Select Data Directory'); d=dir(fullfile(datapath,'*.txt'); for i=1:numel(d) txt_file = fullfile(data...

5年以上 前 | 0

| 採用済み

回答済み
How can I draw a six graph together in one figure using plot and hold on?
Replace for Q=1,6; plot(T,K(:,Q)); end with hL=plot(T,K); plot (like almost all MATLAB functions) operates by column and t...

5年以上 前 | 0

回答済み
How to calculate the quantiles/percentiles values for each hour?
Use grouping variables and splitapply or put into a table or timetable and then rowfun and/or retime (timetable) are also option...

5年以上 前 | 0

回答済み
Error using tiledlayout syntax instead of subplot when referencing axes handles
tiledplot is only able to put one axes object per tile, sorry. Another user wanted two y-axes just yesterday... <Answers/72148...

5年以上 前 | 0

回答済み
Get supersets from cell array of doubles
I misread the problem statement originally and the second idea didn't really help all that much. It's fairly straightforward, t...

5年以上 前 | 0

| 採用済み

回答済み
Insert time depending on sample time and measurement points into existing table
In "the MATLAB way", don't use loops where not needed...since you have end points and number, use linspace ST = 3; ...

5年以上 前 | 1

| 採用済み

回答済み
Inserting Array into Another Array
ix=true(size(a)); ix(x)=false; z(ix,1)=a;

5年以上 前 | 0

| 採用済み

さらに読み込む