Respondida
Find common 4-letter substrings in a list of strings
May be something more clever, but the "deadahead" way for the one string looks something like -- tAMP=readtable('AMPdb_short.cs...

casi 4 años hace | 0

| aceptada

Respondida
How can I extract a specific time for a "datetime" table?
Convert to datetime and use <isbetween> result.HourSeries=duration(result.HourSeries,'InputFormat','hh:mm'); ix=isbetween(resu...

casi 4 años hace | 1

Respondida
How to extract eye tracking data by trial ID
Easiest would be to read the file line-by-line, looking for the magic value and then save data until the next, adding the trial ...

casi 4 años hace | 0

| aceptada

Respondida
Replace Nan with empty cell in table
No can do unless convert the table variables to cell arrays; a double array cannot have anything other than numeric values. A M...

casi 4 años hace | 0

| aceptada

Respondida
Arguments accept char, string or "cellstr" (cell array of char or string)
You write a custom validation function that your code in the arguments block calls for special cases if you're using the supplie...

casi 4 años hace | 1

Respondida
What is missing from MATLAB #2 - the next decade edition
I wish clearvars had an optional "do-nothing" flag a la the /L switch in CMD XCOPY to display the variable that would be cleared...

casi 4 años hace | 1

Respondida
How to extract the time differences between two events into a table?
" is attached through google drive because of the file size" It would have only taken a 100 lines or less to have sufficient to...

casi 4 años hace | 0

| aceptada

Respondida
signal processing of vibration signal
Have gone through this innumerable times -- and the fft doc gives an example of normalizing the one-sided PSD to match the time ...

casi 4 años hace | 0

Respondida
How to quickly view the variables in the mat file? My computer is poor, so it is slow to open matlab😭
Just leave a MATLAB session open, don't close it if you have such use/need frequently. Or, if the content of these .mat files i...

casi 4 años hace | 0

Respondida
Convert cell char array With Column in Table form MATLAB
This is pretty simple with the newer string facilities -- as an example, for the first variable, use something like animal=extr...

casi 4 años hace | 0

Respondida
Time and Space Efficiency Problem in Multi-Format .csv file Splicing and Saving
Per usual when things are not totally plain vanilla in some fashion, you need to make use of the extended features supplied in M...

casi 4 años hace | 2

Respondida
importdata produces strange output when reading a textfile with blank cells and text
>> opt=detectImportOptions('command_window.txt','ExpectedNumVariables',6,'NumHeaderLines',2,"ReadVariableNames",1,'VariableNamin...

casi 4 años hace | 0

Respondida
How to solve a system of coupled first order differential equations using ode45?
... dydt(1)=((-(sqrt(A/y(1)))^-1)*(y(3)+I_iP-(C*exp((-e*y(1))/T_e)))); dydt(2)=((-(sqrt(B/y(2)))^-1)*(-y(3)+I_iG-(D*exp((-e*y(...

casi 4 años hace | 0

| aceptada

Respondida
cell2table: Preserve cell type when column contains numbers and strings
The problem outlined in the Q? is owing to that you introduced strings into the cell array -- use x={ 0 'Infinity' ...

casi 4 años hace | 1

Respondida
How to break data in to groups using while loop?
Answer the Q? actually asked -- I'll post this as a separate answer for convenience but not remove the first. OK, as @Stephen23...

casi 4 años hace | 0

| aceptada

Respondida
How to break data in to groups using while loop?
No explicit looping construct needed; let MATLAB do it for you...I shortened your variable name to M... M= [1 50 60 70 50 40 ...

casi 4 años hace | 2

Respondida
How do I use a loop to go through a large dataset and put each column into a array?
You don't need (and shouldn't even think about creating) another array from the table; just use the data as they are in the tabl...

casi 4 años hace | 1

| aceptada

Respondida
Error in MATLAB standalone app installation
That means your user's PC doesn't have the MS Visual C++ compiler distributable runtime libraries installed -- here's a link to ...

casi 4 años hace | 1

| aceptada

Respondida
Is it possible to open an excel template, save as a new file then write data to the new file without overwriting the template?
The routine I use to do so follows... function newYearlyBillingWorkbook(fnTemplate,outputFile,outputSheet) % open COM server...

casi 4 años hace | 0

Respondida
How to do plotting in a different figure for the same environment
Save the handles to the axes when they're created and plot into the desired one -- without specifying which, plot functions defa...

casi 4 años hace | 0

Respondida
Does any one has experience with exporting data from XXPauto to MATLAB? I have found these function but I am not sure how make them work
Certainly not from that alone, no... The best source would be to go back to wherever the functions were found...but just from t...

casi 4 años hace | 0

| aceptada

Respondida
Use Double Array Values to Label Plot
"Would making labels = string(xx) work?" Did you try? It works for a basic definition of what "working" might mean; you migh...

casi 4 años hace | 0

| aceptada

Respondida
Why does my cell array remain empty?
We can't debug what we don't have, which is a sample app that recreates the problem...looks like all should work just fine here ...

casi 4 años hace | 0

| aceptada

Respondida
How to build a regression neural network from a datastore? How do i find the variable names from a datastore?
'Pends on how you created the datastore and what it was built from...if you smooshed all five variables into one column, then yo...

casi 4 años hace | 0

Respondida
Setting scatter point color when scattering matrices instead of vectors.
Read the <scatter> doc on the color input options carefully -- the individual color by point works only if each x,y are vectors,...

casi 4 años hace | 2

| aceptada

Respondida
Search a larger dataset through a smaller data set of intervals
Taking a wild stab at what might be intended from the above data arrangement; assuming that the larger timetable(?) covers a tim...

casi 4 años hace | 0

Respondida
Using subplot in a for loop along with a nested While loop to plot data from a large matrix
Not at all clear why you're using a triply-nested loop here???? To do the requested operation on the array is simply timeTrace...

casi 4 años hace | 0

Respondida
Different Fontsize of texts in stackedplot()
If you mean you want them to be different for each type object, sorry, "no can do". There's only one global 'fontsize' and 'fon...

casi 4 años hace | 0

Respondida
I have a data 5x148992 , i have to extract data column wise and check if there is any changes wrt previous column and display when there are chnages?
" i want to print only if the conse[c]utive col[u]mns are different ..." Well, then there should not be a disp statement outsid...

casi 4 años hace | 0

Respondida
Undefine Temperatures with Depth
See <Logical Array Indexing> and use the MATLAB <missing> instead of some magic number for missing values. An example for one ...

casi 4 años hace | 0

| aceptada

Cargar más