Beantwortet
Extracting Data from a .fig File
This should do what you want — F = openfig(websave('Group10%20heating','https://www.mathworks.com/matlabcentral/answers/upload...

fast 4 Jahre vor | 0

Beantwortet
How to convert rows to logical
Why not just: A = 1:10; %fitering happens r = [2 7 8]; %the rows to keep Afiltered = zeros(size(A)); Afiltered(r) = A(r) ...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to plot lines with unordered data points?
One approach — LD = load(websave('xydata','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171138/xydata.mat')...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot this function?
This requires a surface plot with separate plots for the real and imaginary components — lambdaI = randn; ...

fast 4 Jahre vor | 0

Beantwortet
Find peaks in a for loop?
The maxk and mink functions (introduced in R2017b) would make this a bit more efficient. Lacking them, use sort. Try this — ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to calculate peak value and duration of signal in Image
The indexing in the image makes this a challenge, since they reflect back and in any event are non-monotonic, eliminating a stra...

fast 4 Jahre vor | 0

Beantwortet
Unable to resolve the name 'fdesign.lowpass'
Run these commands from a script or the Command Window: restoredefaultpath rehash toolboxcache then try it again. If yo...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
For-loop using only last iteration
It is necessary to index into ‘C’, however I do not know what you want as the result. % clearvars; C = zeros(1,10); %Create ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Piecewise Function Surface Plot
They are not seamless because the first surface ends with Z=1 and the second begins with Z=2. Change the constant in the second...

fast 4 Jahre vor | 0

Beantwortet
Add Bar over Letter x for mean value symbol
Use '$\bar{x}$' to get: .

fast 4 Jahre vor | 1

Beantwortet
I would like to know how can I plot amplitude and phase
I tweaked your code slightly. Try this — t=1:0.07:20; x=sin(t)+sin(t).*cos(t); Fs = 1/0.07; ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to extrapolate an x value from a fitting curve?
You can eliminate the monotonicity problem by first selecting the region of the desired value — xvalues = [10; 12; 22; 28]; y...

fast 4 Jahre vor | 0

Beantwortet
Matlab matrix syntax weird
It is likely easiest to assign a value to ‘height’ and ‘width’ and see the result — height = 4; ...

fast 4 Jahre vor | 0

Beantwortet
Add new "datetime" elements to an existing cell array (matrix)
I am not certain what a more universal end result would look liks, however this seems to work for this problem — a = cell(3,3)...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Finding value of x given y in a model fit to normcdf
Perhaps something like this — yValues = [0.3333 0.5000 0.8333 1.0000 1.0000 0.8571]; xValues = [1.4000 1.80...

fast 4 Jahre vor | 0

Beantwortet
How to fix error about interp1?
It would be helpful to have ‘wtemp’ and ‘wdepth’ to experiment with, as well as a description of what you want to do. It may ...

fast 4 Jahre vor | 0

Beantwortet
EMG signal to segmnent
Use the buffer function for part of this — EMG = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/11...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
How do I pass a function a mathematical function of the for x.^2
If ‘Function’ is a string and contains only the variable ‘x’ — Function = "x^2" [y,x] = calculatethefunction(Function); ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Wrong area filled with fitlm confidence interval
Use the patch function for best results — x_data = linspace(-7, 5, 25).'; y_data = randn(size(x_data)); mdl = fitlm(x_data...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Solving ODE in MATLAB with pre-defined steps
‘How can I specify that I do not want random values of t in the ODE? Here, I want t to range between 0 and 2.75 but I want a ste...

fast 4 Jahre vor | 1

Beantwortet
How to Plot Numbers on top of Bar graphs?
Try this — components = {'First Design', 'Second Design', 'Third Design'}; x = [66.5 33.5; 68.7 31.3; 64.9 35.1]; figure ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
population variance (Equivalent of var.p command in excel in Matlab)
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1165263/ffm.csv', 'Va...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to plot the 3D exponential delay profile and Jake Doppler profile
It appears to be a surf function plot. It requires either three matrices, or two vectors and a matrix.

fast 4 Jahre vor | 0

Beantwortet
How to flip the top x-axis so it matches the bottom plot?
I am not certain what you want. One option — ax_top.XAxis.TickLabels = 1./(ax_top.XAxis.TickValues); % <— ADDED...

fast 4 Jahre vor | 0

Beantwortet
How to integrate cosine wave in MATLAB?
One way to ingegrate the ‘V1’ vector is to use cumtrapz — f=50; a=1000; dt=0:1e-6:40e-3; V1=a*cos(2*pi*f*dt); figure pl...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Bode different phase issue
In the freqs call, the phase is wrapped. Unwrap it and freqs matches bode — wp = 1; ws = 1.2; Rp = 0.2; Rs = 25; [n, Wn] ...

fast 4 Jahre vor | 0

Beantwortet
How do I get just the x and y axis to show up?
Perhaps — axes See the documentation on axes for details. .

fast 4 Jahre vor | 0

Beantwortet
Error between two non linear functions
The goodnessOfFit function is for System Identification Toolbox estimated systems. If you are estimating a nonlilnear model, ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
how find optimal threshold?
I am not certain what you are asking. The ‘threshold’ as illustrated would be the mean (or median) of the selected normal dis...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
State-space system identification using known states, inputs, outputs
I generally use lsim rather than sim. Looking through the sim documentation for opt, the simOptions function has a way to speci...

fast 4 Jahre vor | 0

Mehr laden