답변 있음
When i run the blow code, the loop gets stuck on the underline line and it says that the indices on the left are not compatible with the indices on the right.
hello try this (T is a 3 x 3 matrix not a scalar so it must be stored in a cell) clc clear all sigma1=0.002; sigma2=-0.003...

대략 4년 전 | 0

답변 있음
How to isolate duplicate strings in cell array?
hello here you are : a = [ {'still'}; {'while'}; {'until'}; {'light'}; {'still'}; {'built'}; ...

대략 4년 전 | 1

| 수락됨

답변 있음
how to convert images from a folder and save in other
hello Claudia try this and adapt it to your needs % select appropriate options below and adapt code to your specific needs .....

대략 4년 전 | 0

답변 있음
How do I remove frequency component on my spectrum after generating interference signal?
hello I have already answered this question here : How to remove relative frequency information in time domain? - (mathworks...

대략 4년 전 | 0

답변 있음
Finding row values given a position.
hello see example below : use find with linear indices output (see the doc) A = randn(5,3) ind = find(A>0 & A<1) B =...

대략 4년 전 | 1

| 수락됨

답변 있음
Duration of generated sound not correct
hello some minor modifications and suggestion Amp = 0.5; %amplitude Freq = 1000; %Frequency of the sound F...

대략 4년 전 | 0

답변 있음
Adding fading Background color (green --> yellow --> red) to plot(x,y)
hello daniel try this and tune the pos_yellow parameter to get exactly the visual aspect yu want xdata = [1.378 1.398 1.467 1....

대략 4년 전 | 0

| 수락됨

답변 있음
How to find 5 consecutive values above threshold within a certain window?
hello here you are my friend : A = [6 7 8 8 8 7 6 7 6 2 7 8 9 3 3 4 6 7 8 9]; buffer = 5; % nb of samples in one buffer (...

대략 4년 전 | 0

답변 있음
I have data in time domain, and wants to convert it in frequency domain using FFT analysis, can any one please help me out
hello try this / adapt to your needs NB : the sampling rate was not defined in the post , so change it if needed all the bes...

대략 4년 전 | 0

답변 있음
How to smooth this contourf plot?
hello with this FEx submission, you should be happy now smooth2a - File Exchange - MATLAB Central (mathworks.com) DATA2 =...

대략 4년 전 | 2

| 수락됨

답변 있음
How can I export fitted data and create an excel X,Y plot with it?
hello from the picture it seems a 1 term gaussian model would suffice (note that the second term has b2 = -17 which is even no...

대략 4년 전 | 0

| 수락됨

답변 있음
How can I add a constant to a variable during a simulation in Simulink?
hello I had no particular problem doing the same simulink model and running it . what is your issue ?? NB : you post that the...

대략 4년 전 | 0

답변 있음
Omit detrending in certain portion of signal
hello may I suggest a small improvement here - this avoid finding manually the samples that shoudn't be detrended so whatever...

대략 4년 전 | 0

| 수락됨

답변 있음
Matrix Issue Line 33, 35, 37
hello I put the dots so that the multiplication and division are performed element by element between arrays , but the result ...

대략 4년 전 | 0

답변 있음
Incremental display of data points in a 3D scattered plot
hello this would be my suggestion adapt the amount of pause to your needs all the best clc A = load ('TimespanTutorial.t...

대략 4년 전 | 0

| 수락됨

답변 있음
Multiply array if number is under certain value
hello this is very simple - see below : P_out = 1000000 + 80000*randn(10,1); % dummy data plot(P_out) hold on ind = P_o...

대략 4년 전 | 2

답변 있음
How to obtain r^2 (r squared) value of linear regression plotted using 'lsline'
hello see suggestion below - even no need of lsline clc clearvars % dummy data x = (0:100); a = 1.5; b = 0.235; y =...

대략 4년 전 | 2

답변 있음
How to use nested loop to produce the row and columns like that
hello seems to me B is simply A but rows 2 and 3 for columns 3 and 4 are empty (filled with NaN) code : A = [2,4,8,7,3;2,...

대략 4년 전 | 1

| 수락됨

답변 있음
Spatial filtering from FFT results
hello my suggestion below look at the yellow trace y = readmatrix('metrology_s1.csv'); samples = numel(y); % crea...

대략 4년 전 | 0

답변 있음
How can get r square value for a plot having two axis out of which one has scatter points and the other axis has line plot?
hello you have to make the two data sets of same length. So, I would suggest you do interpolation (with interp1) of the "lin...

대략 4년 전 | 0

답변 있음
error with curve plotting (polynomial
hello maybe try this code clc clearvars % data data = readmatrix('DATA.xlsx'); x = data(:,1); y = data(:,2); % ...

대략 4년 전 | 0

답변 있음
Fitting a modified gaussian
hello I am by no mean a curve fitting or stats expert but this is what I could achieve : this is a reverse log normal distri...

대략 4년 전 | 1

| 수락됨

답변 있음
How do I extract the raw data from a plot made using the cwt function?
hello again maybe try this code. It uses the "another_cwt" function (attached) you can also get from FEX : https://fr.mathw...

대략 4년 전 | 0

답변 있음
Find all datapoints in an audio file where a tone was recorded and snip them out.
hello this would be my suggestion. the individual segments are selected based on the signal rms value and their length. here ...

대략 4년 전 | 1

| 수락됨

답변 있음
how to plot binned data?
hello maybe this ? you can change the number of bins (M) Data = readmatrix('Data.xlsx'); Temp = Data(:,1); Aer1 = Data(:,...

대략 4년 전 | 1

답변 있음
Doubt in matlab coding
hello here you are my friend, without a for loop a=3;b=8; Eg=[50 100 150 175 200 250 300]; Egm=mean(Eg); P=[20 15 10 5 1 0...

대략 4년 전 | 1

| 수락됨

답변 있음
Help Segmenting signal processing
hello Nina I was about to reply on your other post when it disappeared : did you delete it ? For your info, this was the demo...

대략 4년 전 | 0

답변 있음
How to remove relative frequency information in time domain?
hello this would be my suggestion, based on using multiple notch filters (simply add a new frequency to the list and the filte...

대략 4년 전 | 0

| 수락됨

답변 있음
Simulate tachometer varying refresh rate
hello why not using a counter ? sampled at a high (fix) frequency rate. This simulink code attached is a demo (Fs = 100 kHz...

대략 4년 전 | 1

답변 있음
How to export 1 column of data with variable names on separate lines
hello this demo to flip a (vertical) 5 (variables) x 3 (values) table to hor direction now the saved data (in txt file) is li...

대략 4년 전 | 0

| 수락됨

더 보기