Answered
extract data from table matlab
More than likely you don't need to actually build a new table for each; instead use grouping variables to process the column by ...

5 years ago | 1

| accepted

Answered
Storing Live streamed data
Open a file before beginning the process and write whatever it is that is wanted...formatted data is simple to read but bulky, s...

5 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

| accepted

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

5 years ago | 2

| accepted

Answered
Use text in table to make variables
Do NOT even think about doing this.

5 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Load more