Respondida
Plot step response of transfer function
hello you have 2 mistakes to correct 1 - how to get a z transfer function from the difference equation your num and den are...

más de 3 años hace | 0

| aceptada

Respondida
how do you calculate frequency of squarewave
hello you can try this code % dummy data n = 10000; x = 25*(0:n-1)/n; y = sign(sin(x+0.25*x.^2)); threshold = 0.5*ma...

más de 3 años hace | 0

| aceptada

Respondida
Storing data in columns not in rows
hello why not use a structure or a table ? it's much appropriate when dealing with variable size data sets % Define initial...

más de 3 años hace | 1

| aceptada

Respondida
Dimensions of arrays being concatenated are not consistent.
hello this is my suggestion get the data simply by this command : data = str2num(Lines(2)); myFolder = 'mydrive'; f...

más de 3 años hace | 0

| aceptada

Respondida
how to determine both of sheet number and name of sheet with (writecell)
hello writecell does not allow you to specify in the same command a sheet number and a sheet name Specify the worksheet to w...

más de 3 años hace | 0

Respondida
Is it possible to align two data sets with irregular sampling while preserving the respective indices?
hello I gave it a try and this is my best result so far first I simply used the time delat between the red dots (easy soluti...

más de 3 años hace | 0

| aceptada

Respondida
single sided fast fourier transfrom from a data file
hello if your number of periods recorded is not very high and your signal is "clean" then I would prefer to mesure the time di...

casi 4 años hace | 0

| aceptada

Respondida
How do I perform a formatted read on exponential data?
Coming a bit too late in the show... filename = 'tabled1.txt' header_lines = 1; data = get_my_data(filename,header_lines) ...

casi 4 años hace | 0

Respondida
Second to last row?
hello I have nothing personnally against your code , but it's slow and impractical as you have this issue with the "end" at th...

casi 4 años hace | 0

Respondida
Converting beat-by-beat data into second average
hello you can use smoothdata to smooth / average your curve then you do the interpolation to resample at dt = 1 second nota t...

casi 4 años hace | 1

Respondida
how to generate multiple curves with the same track length
hello try this % rope at rest (straight) would have length = 1 (= max(t)) n = 1000; t = (0:n-1)./n; max_length = 0.7; %...

casi 4 años hace | 0

| aceptada

Respondida
How do I import multiple CSV files from a directory as tables in the workspace?
hello try this %% read multiple csv files P = pwd; % currrent directory S = dir(fullfile(P,'*.csv')); % get list of files...

casi 4 años hace | 0

Respondida
Help with finding frequency, amplitude and error of a signal that I'm uploading from a simulink model
hello again if your data are "clean" sinewaves but the number of samples is limited then computing the period via the time diff...

casi 4 años hace | 0

| aceptada

Respondida
How to identify and read similar files names in a folder and then create a matrix array with the data
so an updated version of the code to load data and headers of your files I used an older but still usefull readclm function (se...

casi 4 años hace | 1

| aceptada

Respondida
How to identify and read similar files names in a folder and then create a matrix array with the data
hello I created first some dummy files according to the list (would have been a bit easier with a txt file rather than a pictu...

casi 4 años hace | 1

Respondida
How to plot the time series data after remove the phase lag?
hello I assume this is the result you are looking for for me 170° is almost a polarity inversion, so I changed the y to -y a...

casi 4 años hace | 0

| aceptada

Respondida
How to find the maximum point of a fitted curve
hello a simple and compact code that only uses this Fex submission smoothn - File Exchange - MATLAB Central (mathworks.com) ...

casi 4 años hace | 0

Respondida
using regexp to parse specific line
hello I assumed there could be more than one line , but I also assumed that they would be written exactly the same way so I en...

casi 4 años hace | 0

| aceptada

Respondida
Data in multiple separate .xlsx sheets and move to only one .xlsx sheet
hello again Augusto try this code : make sure you have downloaded the File Exchange submission first : Natural-Order Filena...

casi 4 años hace | 0

| aceptada

Respondida
How to store char to a text file?
hello Mark try this ; your char array must be first transformed in string , otherwise this code will not work hope it helps ...

casi 4 años hace | 1

| aceptada

Respondida
How Can I Plot Multiple Points Without Mathlab Joining Them?
hello as usual , first thing to do is to read the doc 2-D line plot - MATLAB plot - MathWorks France you can get a dotted p...

casi 4 años hace | 1

Respondida
Combine excel files into one
so I relicated the same folder tree and file name (same in every folder) this is a slightly modified code , try it : path ...

casi 4 años hace | 0

| aceptada

Respondida
How can I use smoothing like in excell?
hello try with smoothdata from your data , I was expecting that freq is your x array and material_A your y array this is wha...

casi 4 años hace | 1

| aceptada

Respondida
formatting text file using matlab
hello let's start with one file ... then we will add the for loop to process many files in one operation there is still one p...

casi 4 años hace | 1

Respondida
FFT for Lift coefficient to find the frequency
hello I prefer to put the repetitive fft lines in a subfunction , so the code can be cleaner and more compact for the fft re...

casi 4 años hace | 0

| aceptada

Respondida
Download NetCDF data via command window
hello (again) Augusto try this code. The results are saved in one single excel file (attached FYI), each year on a new sheet...

casi 4 años hace | 1

| aceptada

Respondida
While loop stops short of meeting the condition
hello @Milos Krsmanovic why not using this code ? as you see the zero (or any other threshold value) points are obtained with l...

casi 4 años hace | 0

| aceptada

Respondida
How to put an audio file through a filter made through matlab
hello some corrections needed, but you were pretty close to the solution [y,Fs] = audioread('song.wav'); Fl = 300; Fh = 3...

casi 4 años hace | 0

| aceptada

Respondida
Extract data from specific latitudes and longitudes in time in NetCDF (.nc) to .csv
hello Augusto I fixed a few minor bugs in the code . Also I noticed from the nc file that the range for longitude data is 0 ...

casi 4 años hace | 0

| aceptada

Respondida
How to join multiple Excel files of varying lengths
hello try this : fileDir = pwd; % current directory (or specify which one is the working directory) outfile = 'OUT.xlsx'; %...

casi 4 años hace | 0

Cargar más