Answered
shifting time in timetable
Not sure what the "want" really means--the present time just a day later for each observation or what, precisely? On the pres...

8 years ago | 0

| accepted

Answered
How to change a font (any other property e.g. title) of histogram subplot axes using subplot handle
It's a sequencing issue; you set the axes properties before the call to create the histogram object and it has its own internal ...

8 years ago | 0

Answered
How can I enter a transfer function without writing down the exponents?
num=8.75*[4 0.4 1]; den=conv([100 1]),[1 0.24 1]); convolution of polynomial coefficient vectors is same as multiplicati...

8 years ago | 1

Answered
How to read one row at a time from Excel and increment?
Use Matlab as it is designed; a MATrixLAB instead... data=xlsread('XXXX'); S=std(data,2,'omitnan'); M=mean(data,2,'o...

8 years ago | 0

Answered
extracting numbers with different decimal extention
I'm sure there is |regexp| but I'm just not adept-enough w/o a lot of time and effort...the "dead-ahead" solution-- >> ...

8 years ago | 0

Answered
running x.m file many times. I want to store values separately.
N=25; % or whatever max number is n=5; % or whatever number observations/iteration is p=zeros(N...

8 years ago | 0

| accepted

Answered
why 'getnameidx' does not work?
_"getnameidx will be removed in a future release. Use contains instead..."_ I don't have the Financial TB to test but seems t...

8 years ago | 0

| accepted

Answered
I have a simple plotting gui via user input using buttons and wish to save figure on the axes as an jpg image using a pushbutton. what do I need to write on the pushbutton callback?
... fn='yourchosenfilename'; saveas(gcf,fn,'jpeg') See doc saveas % for more details

8 years ago | 0

| accepted

Answered
Why does my for-loop substitute only one value throughout 31 iterations?
function my_fsolve2() % Constant Parameters A = 6.24; B = 5.68e-5; C = 1.7e-3; D = 6.55...

8 years ago | 0

| accepted

Answered
Is it possible to import an excel sheet with date&time and separate sheets by date
Sure, just read in and use the datetime data to group by day. See very similar Q? asked here <https://www.mathworks.com/matlabc...

8 years ago | 0

| accepted

Answered
find unique sets of values in matrix, eliminate duplications
Well, until the last step...you lost me there as to what you actually want as final result but can at least identify who you're ...

8 years ago | 1

Answered
Processing array where the elements are sometimes min/sec and sometimes hour/min/sec
OK, thanks to Peter for triggering the idea on how to add the missing hour substring dynamically! :) >> et=cellfun(@(s) du...

8 years ago | 1

Answered
How to find value on the graph
Alternatively to just finding point in the dataset.. ix=find(abs(B)==1); % find the breakpoint locations in ...

8 years ago | 0

Answered
How to use splitApply to get the coefficients of fitlm?
|splitapply| can only take a function handle, not an anonymous function. You'll have to write an intermediary function that cal...

8 years ago | 0

Answered
Processing array where the elements are sometimes min/sec and sometimes hour/min/sec
I won't claim it's elegant and certainly not "most" so, but... function et=raceDuration(tstring) % return durations ...

8 years ago | 1

Answered
Populating values in a vector based on function
function [real_time] = time_from_videos_to_second_convertor(time_data_observation,frame_rate_played_video,real_time_vec) f...

8 years ago | 1

| accepted

Answered
How to get monthly average
t=readtable('month.xlsx'); t=table2timetable(t); mn=retime(t.Var1,'monthly',@mean); I didn't download the file so if ...

8 years ago | 0

Answered
Rows in a matrix with a certain outcome
>> sum(ismember(sort(x,2),[.6 .7 1],'rows')) ans = 2 >> Generalize the set looking for instead of using the hardco...

8 years ago | 0

| accepted

Answered
different operations for same string
Sounds pretty French to me! :) function s=strfutz(s) % futz with characters in string % generate the test pr...

8 years ago | 0

| accepted

Answered
How can I store my looping delimiter output into a new matrix row with each iteration?
See where this gets you... zip_files = dir('*.zip'); F=[]; for k = 1:numel(zip_files) F=[F, unzip(zip_files(k).n...

8 years ago | 0

Answered
How to set table VariableNames from a cell?
OK, there was enough of a hint that you used _Regression Learner_ App. I'd never even opened it before, but since you used "Chu...

8 years ago | 2

| accepted

Answered
Split a large intraday 1 minute data for each DATE into MATRIX for each DATE?
Presuming this is in a |timetable| from the |timeseries| in Trading TB, |retime| is one way to apply a function. Alternativel...

8 years ago | 1

| accepted

Answered
I call a function but i keep receiving that the input i place are not assigned
function[deg] =C_dec(O1,O2) c_dec =01 + (02/60); The return value in the function definition is "deg"; you calculate...

8 years ago | 0

| accepted

Answered
How to extract data from a table based on a specific variable
# Convert the categorical variables from character representation to |categorical| # Use |findgroups| and |splitapply|, |grpsta...

8 years ago | 0

| accepted

Answered
Create index vector from grouping variable
|gr2idx| is used with the Statistics Toolbox implementation of a categorical variable type. Unfortunately, while it was useful ...

8 years ago | 0

| accepted

Answered
Operands to the || and && operators must be convertible to logical scalar values
OK, this took a little while to debug... :) The problem is in function |trapecios|, if the input argument is <1 then L=1...

8 years ago | 1

Answered
Error in plotting graph
From <https://www.mathworks.com/help/matlab/ref/graph.html> graph(s,t) ... s,t — Node pairs ... Node pairs, ... graph...

8 years ago | 1

Answered
grpstats for non-numerical data
Convert those variables to |categorical| which is what they are, really, not string. Then, internally to Matlab, they _are_ num...

8 years ago | 0

Answered
Splitting Cells Contents into A Uniform Dimension
opts = matlab.io.text.FixedWidthImportOptions; % create a basic import object to fill in opts.DataLine=2; opts.Variable...

8 years ago | 0

Answered
How can I get Curve fitting coefficients in a matrix from fit function fittype?
% move model definition outside loop; it's invariant ftype=fittype('Bmax*(P0+x+Kd-sqrt((P0+x+Kd).^2-4*P0*x))./(2*P0)',... ...

8 years ago | 0

| accepted

Load more