回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 1

| 採用済み

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

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

8年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 2

| 採用済み

回答済み
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年弱 前 | 1

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

回答済み
What is the code for defining a binary array in Matlab?
IDL Data Types Data Type Description Type N...

8年弱 前 | 0

回答済み
Where am I going wrong in my for loop? I am getting NaNs
... T_num = nan(length(z),length(t)); % initialized to NaN T_num(:,1) = T_av; %initial temperatur...

8年弱 前 | 0

回答済み
Averaging second data to minute data
Convert to |timetable| and use |retime| tt_secs=array2timetable(data(:,2),'rowtimes',datetime(data(:,1))); % convert to ti...

8年弱 前 | 0

回答済み
How to import .dat data
fid=fopen('yourfile.dat','r'); data=cell2mat(textscan(fid,'','CollectOutput',1,'CommentStyle','#')); fid=fclose(fid); ...

8年弱 前 | 1

| 採用済み

さらに読み込む