Réponse apportée
Pull numeric data from a mixed text data into a matrix in a loop
d=dir('yourmatchingFileWildCardExpression*.txt'); % get the list of candidate files dir() struct pat=digitsPattern(1)+"."+dig...

plus de 3 ans il y a | 0

Réponse apportée
Ideal way to import csv data and create column vectors that will be variables i want to work with
filename='RESP_Trial_3.csv'; column_names={'RLT','RLTx','RLTy','RLTz','RUT','RUTx','RUTy','RUTz','RIC','RICx','RICy','RICz',......

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I find rows based on 2 column variables, then only retain the previous 3 rows?
% Rows to retain for average response time estimates iKeep=B(contains(B.condition, 'infrequent') & B.correct==0); will be your...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Determine available disk space
Try this for comparison if on Windows... !powershell "Get-PSDrive C | Select-Object @{Name='drive';Expression={$_.Name}}, @{Na...

plus de 3 ans il y a | 0

Réponse apportée
How to aplly a function to all columns?
See fft -- in particular, note the first comment... "fft(X) is the discrete Fourier transform (DFT) of vector X. For matrices,...

plus de 3 ans il y a | 0

Réponse apportée
Centering labels in a bar plot
Let bar do the work for you...you didn't supply all the needed code to run the example, but something similar would be x=1:33; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Application deployment designed in appdesigner
The application install will download/install the runtime if it isn't on the target machine when install the app the first time ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to interpolate a set of data wher the X size is different for the Y size
x=1:10;y=1:3; % coarse spacing z=rand(numel(x),numel(y)); surf(y,x.',z) hold ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to find out how many participants are in each group of my combined matrix (31230x5)
If I understand the description, the end result is easiest via hH=histogram(categorical(M(:,2))); % display histogram of n...

plus de 3 ans il y a | 0

Réponse apportée
how to plot index (rownumbers) in a larger dataset as range?
Presuming you don't try do do the logical addressing until the data array is defined so you don't have the initial error shown, ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Connecting two data points in a plot with a line, and determining this line's slope
For just between two points, may as well just use m=(y2-y1)./(x2-x1); % slope between two points Or, if specify by choosin...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do I run a MatLab script via the windows command prompt such that it does not output back to the terminal when using the -batch argment?
stderr is the second output stream and its redirection symbol syntax is "2>" To redirect both to same place use > nul 2>&1 Th...

plus de 3 ans il y a | 0

Réponse apportée
Hide trendlines on plots, via app designer
You forgot to show us how you're creating the plot, but if you will save the line handles when plotting, then you can toggle the...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
loop in a 3D matrix
OK, that's kinda' what I thought but wasn't sure...to average each frequency over the 120 planes, you don't need any loops at al...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Is there a simple method to exclude empty categories from charts
It's a little extra code to write, but it should be able to be made generic -- follow the lead of @Cris LaPierre in that thread;...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I wrote 2 functions and I don't know why they don't work-even when I change the file name to the name of the first function I recive error
"...and I got the error: Unrecognized function or variable 'calcTailorExp'." "Even though I've define it as the same file of my...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to plot using errorbar but the error bar only in every 5 points
First, 3) above isn't so -- if you plot the same data with plot() and with errorbar() the two lines will overlap identically; th...

plus de 3 ans il y a | 1

Réponse apportée
How to write the data to a file with a specific format?
>> fmt=[repmat('%14.6E',1,size(X,1)) '\n']; >> fprintf(fmt,X.') 0.000000E+00 1.250000E-01 1.250000E-01 0.000000E+00 2.50...

plus de 3 ans il y a | 0

Réponse apportée
Unexpected high memory usage in MATLAB.
Absolutely no way anybody here can diagnose something without seeing the code -- it's quite possible your code has an inadverten...

plus de 3 ans il y a | 1

Réponse apportée
Downsample and reconstruct a subsection of a vector?
If they're just vectors, I think the simplest is probably the best and likely the quickest... LO=geo.FineSamplingBox(1); HI=geo...

plus de 3 ans il y a | 0

Réponse apportée
How to make non iterative code faster than the iterative when using line by line backslash inverse ?
"Is there any other solution ?" Yeah, go on to the next step in your overall problem. There's nothing wrong with for...end loo...

plus de 3 ans il y a | 1

Réponse apportée
How to change comma to dott for multiple text files and save the changes in the same text files?
Your variable MyFiles is a dir() struct containing the list of files; addressing it does NOT open the file, simply refers to the...

plus de 3 ans il y a | 1

Réponse apportée
How do I delete a repeated element in a single array cell?
In [~,b3] = find(sam_pulse(x,:) == max(sam_pulse(x,:))); %find the cell with max value you're doing the wrong thing using ma...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how do I extract subsets from a vector
One way just using the form of the file... S=readlines('yourfile.txt'); % import as string array ixFrom...

plus de 3 ans il y a | 0

Réponse apportée
Log-log plot with error band that has negative numbers
You simply can't plot negative numbers on a log axis...they don't exist (well, they do, but they're complex). It's not the fill...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I remove rows containing Nan values in table?
ixnan=(isnan(tTable.TAVG)|isnan(tTable.Tfreezing)); % logical vector either variable nan tTable(ixnan,:)=[]; ...

plus de 3 ans il y a | 0

Réponse apportée
How to add error bars as a region about the data?
Very crude but with some data at hand illustrates one way... X=1:numel(c); hL=plot(X,c,'kx-'); % plot orig...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Error writing a cell to a text file having numerical value separated by space
OK revisitng with the previous comments -- as thought, using the MATLAB fixed-width import object makes things much simpler to d...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Extracting extremum X,Y coordinates from plot
findpeaks in the Signal Processing TB can be very helpful for such -- remember a minimum is the maximum of a negated signal. Pe...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Problem using retime for timetables
Your issue is the input time sampling isn't actually on precisely a one-minute interval; the recorded timestamps include fractio...

plus de 3 ans il y a | 0

| A accepté

Charger plus