Answered
3D plot time on x-axis, data from each column on z-axis and # of column on y-axis
waterfall(T,[1:numel(T)].',UH_V) maybe?

6 years ago | 0

| accepted

Answered
Maximum value from data
findpeaks uses more logic internally than just height; it will consider points inside the peak width as being part of the larger...

6 years ago | 0

| accepted

Answered
How to Fit Points on a Previous Plot
If I understand what you're after from the code that doesn't quite work-- plot(pro(:,1),pro(:,2)) hold on iz=arrayfun(@(z)fin...

6 years ago | 0

| accepted

Answered
Convert Table to Matrix
The phone rang...and Chris got back first, but my next response was to be-- opt=detectImportOptions('tex_file.txt','FileType',"...

6 years ago | 0

Answered
How to Fit Points on a Previous Plot
I'm betting you're forgeting your above note that increasing depths are larger negative numbers and have something like the foll...

6 years ago | 1

Answered
How can I change this code to get the line when plotting the graph? Because I tried adding commands related but still there is no line when I am running the codes
You're creating a new animatedline object every time, not adding points to the ones intended...that's not how the examples in th...

6 years ago | 1

| accepted

Answered
I want to resize font of the power of ten of plot.
hAx=gca; hYAx=hAx.YAxis; % handle to Y axes numeric ruler object hYExpText=hYAx.NodeChildren(1); % han...

6 years ago | 0

| accepted

Answered
How to obtain FRF if sampling frequency for INPUT and OUTPUT data is different?
You'll need to resample one or both to a corresponding time base. This will introduce some error into the estimation; if the sa...

6 years ago | 1

Answered
Avoid exponential values as y-axis label in App Designer
The 'exponent' property is a property of the NumericRuler axis object, not the main axes. app.UIAxes_nomcashflow.YAxis.Exponen...

6 years ago | 0

| accepted

Answered
How do I store data that meet conditions of an if statement
Don't need any loops nor the explicity xy array that is duplicate of existing data. data=nan(size(x,1),2); % initi...

6 years ago | 1

Answered
Help with splitting data
>> datetime(extractAfter(c(contains(c,'D_')),'D_'),'InputFormat','yyyyMMdd') ans = 4×1 datetime array 29-Jul-2017 1...

6 years ago | 2

| accepted

Answered
Reading specific lines from multiple text files
Ya' gotsa' skip the text to get to the floating point value... ... T=cell2mat(textscan(fid,'%*s%f',1,'HeaderLines',linenum-1))...

6 years ago | 0

| accepted

Answered
creating a menu for a .MAT file.
Your data doesn't go into the menu; it is simply a selection mechanism for the user to pick a specific action; one then has to w...

6 years ago | 1

Answered
How do I convert dates from excel into Matlab
tData=readtable('yourfile.xlsx','ReadVariableNames',0); tData.Properties.Variablenames={'Day','Hour','WindDir','Speed'}; tData...

6 years ago | 0

Answered
How can a copy a MATLAB code into word?
See if doc publish leads to joy...

6 years ago | 0

Answered
how to set different xlabels for all subplots in for loop at once?
YLABS=["Fuel/g", "time/s","distance/m", ...]; % define the ylabel strings for i=1:length(DATA1(1,:)) hAx(i)=subplot(4,4,i)...

6 years ago | 0

Answered
Extract Data From Imported Excel Sheet Containing Specific Numeric Values
Rather than duplicating the same data in multiple places, use grouping variables to process the data by the desired categories/g...

6 years ago | 0

| accepted

Answered
Improve the performance of a function based on str2double
Variations upon a theme -- this is almost 2X as fast as my previous...here it times out as just a fraction ahead of the original...

6 years ago | 1

Answered
Position of two subplots with bar and plot charts
You're messing with the wrong thing -- it's xlim you want to make the same... ... figure hAx(1)=subplot(2,1,1); ...

6 years ago | 0

| accepted

Answered
problem with 'extract' function
What do you get when you type ver at command line? extract wasn't introduced until just now in R2020b so if you have a releas...

6 years ago | 1

Answered
Improve the performance of a function based on str2double
"Deadahead" solution without any attempt to use anything fancy...regular expressions are known to be expensive; I've never compa...

6 years ago | 1

| accepted

Answered
extract data from table matlab
That's messy...that they didn't put the data into separate columns makes it rougher...almost do have to separate out the T senso...

6 years ago | 1

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 ...

6 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...

6 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...

6 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....

6 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...

6 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...

6 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],...

6 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

6 years ago | 0

| accepted

Load more