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

más de 5 años hace | 0

| aceptada

Respondida
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

más de 5 años hace | 0

Respondida
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); %%%%%%%%...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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'); ...

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

Respondida
Time domain and frequency domain signal generation and plot
hello here you are hope it helps clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 2

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 1

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

más de 5 años hace | 1

| aceptada

Cargar más