Respondida
I have a 2D matrix (81,000,000 x 2). Each row has a radius value and an intensity value. The radii are not in a monotonic in this 2D matrix. I want to sort 1st column from min to max and have column 2 move with it.
doc sortrows Or, of course, you can do it yourself via [~,ix]=sort(A(:,1)); % return index to sorted position of fi...

alrededor de 8 años hace | 0

Respondida
Aligning 2D Point Cloud data with X-Axis
Well, that's somewhat of a different problem statement.. <https://www.researchgate.net/publication/303329343_Least-squares_Fi...

alrededor de 8 años hace | 0

Respondida
Aligning 2D Point Cloud data with X-Axis
I'll repeat the Comment made in previous followup-- Actually, it's a fignewton of a visual optical illusion effect; if you co...

alrededor de 8 años hace | 0

Respondida
Deriving specific rows from a large text files
Read as table or timetable; deal with the asterisks as needs must depending on whether they're real or not... Two alternative...

alrededor de 8 años hace | 1

Respondida
Axes limits - plotv
Sure, it's still just drawn on a normal axes object xlim([-1.5 1.5]); ylim([-1.5 1.5]);

alrededor de 8 años hace | 1

| aceptada

Respondida
Help speeding up a plot
At a minimum w/o digging more deeply 1) Before beginning simulation define color vector C=[repmat([0.6 0.3 0],8,1); ...

alrededor de 8 años hace | 0

| aceptada

Respondida
How can remove a certain element from all the rows of a matrix
Well a "matrix" with differing numbers of elements by row must be a cell array, _not_ a matrix in Matlab, just to get the termin...

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 1

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

| aceptada

Respondida
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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 1

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

alrededor de 8 años hace | 1

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 1

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

alrededor de 8 años hace | 1

| aceptada

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

| aceptada

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

alrededor de 8 años hace | 0

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

alrededor de 8 años hace | 2

| aceptada

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

alrededor de 8 años hace | 1

| aceptada

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

alrededor de 8 años hace | 0

| aceptada

Cargar más