Beantwortet
Same calcuation, but hand-result is different from code result
This simply appears to be a precision issue. Using round on the intermediate results provides the same result as the calculator...

mehr als 3 Jahre vor | 0

Beantwortet
How to extract column index based on value in another column?
Try something like this — A = [2 4 1 3 2; 3 1 4 2 3; 2 4 1 3 4; 4 2 3 1 4; 1 3 2 4 4]; T1 = array2table(A, 'VariableNames',{...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to assign 0 or 1 randomly to the coordinates?
I am not certain what you want to do. Perhaps this — x = linspace(-2,2,10) ; y = linspace(-2,5,10) ; [X,Y] = meshgrid(x,...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I save a SINGLE value from the workspace?
‘Hi, is a data type 2x99. I need save the value x(:,1) when x(:,2) is near to 0. How I save this date.’ It depends what ‘near...

mehr als 3 Jahre vor | 0

Beantwortet
Matlab bode plot with specific cut off frequency
The easiest option may be to define the radian frequency function: w = linspace(0, 1.5E+4, 1E+3)*2*pi; and then supply it as ...

mehr als 3 Jahre vor | 0

Beantwortet
Keep getting a blank graph
First, you only use the first 0.06 seconds of the torque vector, so create a file with just those values. (I did that offline, ...

mehr als 3 Jahre vor | 1

Beantwortet
Where is the option "Allow unstable model"
The only reference I can find (requiring an Interweb search) is step 6 in Estimate Transfer Function Models in the System Identi...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Multiplication matrix with strings
Perhaps this — syms k1 k2 m M = [k1-2*m,-k2;-k2,k2]*[1,2;4,6] % Symbolic Expression Mfcn = matlabFunction(M) ...

mehr als 3 Jahre vor | 0

Beantwortet
How to find largest Peaks Values of signal and Save Corresponding X axis and Y Axis Values in MATLAB
Try this — LD = load('Dataset20230221.mat'); Dataset = LD.Dataset; X = Dataset(:,1); Y = Dataset(:,2); [pks,locs] = find...

mehr als 3 Jahre vor | 0

Beantwortet
How to generate model output given a transfer function and input signal
If you have the time vector and the matching input vector, use the lsim function to generate the output, however a more robust a...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to perform derivative of a random signal without finite difference schemes?
The derivative operation is by definition a highpass filter, and so will accentuate the noise. One option might be to filter th...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
lscurve fit problem issue in Money Rivlin model
I am not certain what you want to do. Two independent variables may require one or two dependent variables, however with only...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Return a value in csv data at a specific point
Try this — T1 = array2table([sort(randi(1E+4, 12,1)) rand(12,1)*1E+3], 'VariableNames',{'Distance','Depth'}) Dep = interp1(...

mehr als 3 Jahre vor | 0

Beantwortet
why is my plot blank?
Try something like this — LOGGER31 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300315/LOGGER3...

mehr als 3 Jahre vor | 0

Beantwortet
fill in the area in plot
Please see my Comment to your previous post. I do not know what parts you want to fill, so again, I filled each of them. C...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Meijjer G function implementation
The meijerG function exists in the Symbolic Math Toolbox. EDIT — (19 Feb 2023 mat 21:57) With respect to its being writte...

mehr als 3 Jahre vor | 1

Beantwortet
find x or y at given point for f_cutoff, 0.1*f_cutoff and 10*f_cutoff
Use the interp1 funciton. I wrote a short utility program that does exactly that — % %Need to replace so it looks the same ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I put an array containg multiple numbers into a matlab table?
Put the bounding box coordinates in a cell array — for k = 1:5 imageFiles(k,:) = sprintf('vehicleImages/image%05d.jpg',k)...

mehr als 3 Jahre vor | 0

Beantwortet
How to save a symbolic function into a .txt file
Try something like this — syms t x(t) y(t) symFunc = y == sin(x) + cos(x) filename = 'Test.txt'; save(filename, 'symFun...

mehr als 3 Jahre vor | 0

Beantwortet
How to remove extra labels from polarplot?
See PolarAxes Properties for all the options. th = rand(1,5)*2*pi; r = rand(size(th)); figure polarplot(th,r) Ax = gca;...

mehr als 3 Jahre vor | 0

Beantwortet
Chebyshev type 2 filter comparison on bode plot
A 3D plot option— fc = 1000; fs = 8000; for k = 1:6 [b,a] = cheby2(k,50,fc/(fs/2)); bv{k} = b; av{k} = a; ...

mehr als 3 Jahre vor | 0

Beantwortet
how to modify a plot
Extending the lines is straightforward. What region do you want to shade? I created patch objects for all of them, so choose...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
plot a graph from loop
Plotting ‘R’ as a function of ‘V’ is relatively straightforward: figure plot(V, R) grid xlabel('V') ylabel('R') What do y...

mehr als 3 Jahre vor | 0

Beantwortet
least square curve fitting on a nonlinear equation , set of data available
What you appear to be describing is the derivation of a linear least square regression. In that context, ‘linear’ implies ‘line...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
smoothing the heart rate plot that connected with arduino
It is likely not possible to filter individual points. Save them to a vector and then process the vector. That would likely ...

mehr als 3 Jahre vor | 0

Beantwortet
putting conditions on the axis intervals in fsurf
It is not possible to alter the X, Y, or Z data in an fsurf plot. Try this instead — Rhv = 0:0.1:3; Rlv = 0:0.1:2; [Rh,Rl...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Expected timetable data to be numeric.
It would help to have the data. I am not certain how the ‘date’ and ‘time’ values are being imported. One possibility: D...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Operator '*' is not supported for operands of type 'cell'.
Use the str2double function to convert the cell array of string variables to a numeric array (assuming all of them are numeric) ...

mehr als 3 Jahre vor | 0

Beantwortet
Issue in table indexing
It would help to have the data, and a clearer description of what you want to do. The findpeaks function does not have to hav...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Matching a target time series to other time series using dynamic time warping
See if the Signal Processing Toolbox dtw function (introduced in R2016a), or related functions linked to in that page, will do w...

mehr als 3 Jahre vor | 1

Mehr laden