Réponse apportée
Getting an error : In an assignment A(:) = B, the number of elements in A and B must be the same. with my multiple plotting code!
hello error is due to lack of indexing x on the right hand side of the equations x= 0:0.01:pi; n= length(x); y= zeros(1,n)...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
why cant we use fourier series for non periodic signals?
Any repetitive signal in this world can be represented in terms of sine and cosine that 's the key point

plus de 5 ans il y a | 0

Réponse apportée
how to open an external text file, identify two strings and save the lines of the text file where the two strings appear
hello Hugo see below Filename = 'sample_text.txt'; [Pattern1_line, Pattern2_line] = extract_data(Filename); %%%%%%%%...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to repeat a pattern on xticks?
hello this is an example for 20 repetition of the 5 letters pattern + 90° rotated plot(1:100,randn(1,100)); set(gca,'XTick',...

plus de 5 ans il y a | 1

Réponse apportée
Scatter point with matrix blocks
hello this coud do the trick example below : %% generate a test matrix A = round(10*rand(20, 20)); %% visualize the ...

plus de 5 ans il y a | 0

Réponse apportée
not geting the plot and my loop is not working
hello consider indexing your variables sigma=0.047193; V_tip=180; W=180; Cd_avg=0.01; R=2.235; Rv=8...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
PD controller (Time domain)
hello again so this is a modified code : the integration process computes the velocity first (from acceleration) , then the ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
PD controller (Time domain)
a very simple and straigthforward simulation without much science behind : NB : controller and plant in series in the main pat...

plus de 5 ans il y a | 1

Réponse apportée
conditional data selection and saving back to file
hello this is my suggestion NB the input data I have changed the delta to 1 so that it works for the tasks you asked clc ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Obtaining 2 highest peaks of spectrum in dB
hello again ! you should probably use findpeaks once the spectrum is in dB (my own preference) otherwise , you have seen in ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Reduce Matrix size with interpolated data arrays
hello simply use a 2D interpolation with the appropriate new Xq and Yq vectors interp2 2-D interpolation (table lookup). ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
plot regression line through first 5 peaks
hello you can directly ask findpeaks to search only the 5 largest peaks : [...] = findpeaks(...,'NPeaks',NP) specifies t...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I plot a txt file in a GUI?
hello for each case, once you have loaded the data you can easily plot them like this : data1 = load('yk130505sk403.txt'); ...

plus de 5 ans il y a | 0

Réponse apportée
Is it possible to fill a vector with my iterative results?
hello simply index your output variable (C) - I also tweaked a bit the code in some other areas... clc clearvars C0 = 3;...

plus de 5 ans il y a | 1

Réponse apportée
Save matrix in for loop
hello why not simply store the T1 and T2 as cell arrays indexed with the loop index i ? for i = 1:429 ...code here .......

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I calculate the Savitzky-Golay derivative at first/end points?
hello this could help you to create 1st and 2nd derivatives with better (less noisy) results vs diff clc clear all Fs = 1...

plus de 5 ans il y a | 0

Réponse apportée
Time domain and frequency domain signal generation and plot
hello here you are hope it helps clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
fft is not matching with analytical solution
Hello I had to remove the heaviside as I dn't have the toolbox of it; Anyway this code gives the right plot of fft amplitude ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to generate multiple random combinations of word pairs with specific restrictions on avoiding repetition?
@ Abi this is the last iteration of the code Actions={'spin', 'pick up', 'push', 'touch', 'sh...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Slow for loop string comparison
hello for / if loops will make this very slow here my suggestion / demo code for faster method : t1 = datetime(2000,11,1...

plus de 5 ans il y a | 0

Réponse apportée
Filter a noisy signal
hello you can use many ways to lowpass filter your data existing matlab functions to smooth noisy data is smooth or movmean ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How do I save the error data for each iteration?
hello simply put err computation in the main loop and index it function [x_i,err,yi] = bisect(f,x_l,x_r,delta) yl = feval...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to conduct octave analysis on frequency domain siganal?
hello this is a code that does what you are looking for now this simply do a linear average of the spectrum amplitude between...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to generate multiple random combinations of word pairs with specific restrictions on avoiding repetition?
Did I won the prize ? Actions={'spin', 'pick up', 'push', 'touch', 'shake',}; Objects={'yello...

plus de 5 ans il y a | 0

Réponse apportée
Is there a way to relate colorbar values to geodensityplot weight?
hello if you have the weights values , you can use them in the colorbar TickLabels some example below : figure(1) n = 32...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
For loop with previous result
hello Jane this is it : at the k step : b(k) is 600 - sum of a from 1 to k for t=1:n a(t)=600+10^t; b(t)=600-s...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Extract data from HTML Table
hello Marcus here you are, simple code shipset : Filename = 'html_table.txt'; [myDate, myDiagnostic] = extract_data(Fil...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Perform linear regression to obtain k
hello here you are ; your "k" is my "b_sol" value : a_sol = -0.1108 b_sol = -2.1657e-04 c_sol = -9.5151e-04 d_sol =...

plus de 5 ans il y a | 0

Réponse apportée
how to pick partial data from a waveform?
helloo this is my submission, hope it helps ! clc clear all close all data = readmatrix('test.txt',"NumHeaderLines",1)...

plus de 5 ans il y a | 1

Réponse apportée
Issue with Chirp function in Matlab
hello there are a few points that I don't understand : why 'complex' chirp signal ? we can only plot real signal the sampl...

plus de 5 ans il y a | 1

| A accepté

Charger plus