Answered
It is not displaying both plots
Plot ‘f’ as a funciton of ‘x’ — plot(x,f) .

4 years ago | 0

Answered
what is an acceptable values for fval in solver?
That depends entirely on the data and the model. The lsqnonlin function does not return an ‘fval’ output, however it does retur...

4 years ago | 0

Answered
I am trying to convert my data set into a chart.
I am not clear on the reason for turning a text file into a spreadsheet, however readtable and writetable would be the funcitons...

4 years ago | 0

Answered
Checking given point in circle
I would begin with the inpolygon function.

4 years ago | 0

Answered
string for x label in a plot
Try this — figure plot((1:15), sin((1:15)/2.5)) xtl = [(1:9)*1E8 (1:6)*1E9]; set(gca, 'XTick',(1:15), 'XTickLabel',xtl) ...

4 years ago | 1

Answered
Plot a circular histogram for table Data
I am not certain what the data are, how how the angles and deviations relate. Perhaps either polarplot or polarhistogram will d...

4 years ago | 0

| accepted

Answered
Solve function supports only four decimal points
I cannot run that because the ‘theta’ vector is missing. However, the Symbolic Math Toolbox calculates in extended precision....

4 years ago | 0

Answered
Get transfer function from data and known input
If you know that the system is second-order, use the ssest funciton and specify the order as 2. (State space representations ar...

4 years ago | 0

| accepted

Answered
HOW TO PLOT A GRAPH WITH A FUNCTION AND A CONSTANT
I believe the 0.45 value should actually be 0.35 — syms t Dw = 1.1; Hu1 = cos(Dw*t) Hu2 = 0.35; figure fplot(Hu1,[0 1....

4 years ago | 0

Answered
reading huge data files with repeating pattern
This is not an easy file to work with. One approach — fidi = fopen('example.txt','rt'); k1 = 1; while ~feof(fidi) fo...

4 years ago | 0

| accepted

Answered
I want vector surface plot
I am not certain what result you want. Try this — Prices = rand(1,30); % Use...

4 years ago | 0

Answered
Generating a time vector
Try this — [y,Fs] = audioread('sa2.wav'); L = size(y,1); p2 = linspace(0, L-1, L)/Fs; .

4 years ago | 0

| accepted

Answered
The graph is coming out blank
Try this — f=@(x,y) -y/.1; %función a resolver % x0=input('\n Ingrese el valor inicial de x0: '); % x inicial % y0=input('\n...

4 years ago | 1

Answered
IIR butter filter is not stable
Use second-order-section representation for stability and filtfilt to do the actual filtering — [X,Fs] = audioread(filename); ...

4 years ago | 1

| accepted

Answered
How to add gain to an audio signal?
Try this — Fs = 44100; t = linspace(0, Fs-1, Fs)/Fs; s1 = sin(2*pi*t*15); dB30 = db2mag(30) s2 = s1*dB30; figure plot(...

4 years ago | 0

| accepted

Answered
Impulse response function (IRF) of data set
I’m not certain if it’s possible to define the impulse response of an electromyogram, however I have no idea what your data are....

4 years ago | 1

Answered
How to smooth contour lines for the given set of data
Increase the resolution of the vectors (and resulting matrices), and optionally define the 'method' as something other than 'lin...

4 years ago | 0

| accepted

Answered
How to mesh plot sum of sine waves
Give it the ‘X’ and ‘Y’ matrix arguments rather than the vector arguments — x=-1:0.01:1; y=-1:0.01:1; [X,Y]=meshgrid(x,y); ...

4 years ago | 0

| accepted

Answered
smoothing a graph using matlab
There are several opotions, including sgolayfilt and smoothdata and frequency-selective filters — y = readmatrix('https://www....

4 years ago | 0

| accepted

Answered
How would I use fsolve for 3 unknowns and 3 equations?
Provide values for ‘Qt’ and ‘Qm’ and then solve it — clear;clc;format long; lm1=0; %m lm2=-0.2; %m Am=95; %m^2 At=3; %m^...

4 years ago | 2

| accepted

Answered
Wilcoxon 'signrank' test zval is not calculating
The ‘zval’ is only returned when the 'method' is 'approximate'. There is no statistical difference between the vectors: [p,...

4 years ago | 0

| accepted

Answered
How do I put the patch in the correct position?
It appears that the ‘x’ and ‘y’ axes are reversed with respect to the data and the percentile patches. Keep the percentile patc...

4 years ago | 0

| accepted

Answered
Identify Zerocrossing Indices near to the peak of the other signal matlab
The file is too large to download here, and the online Run feature still has problems with .mat files. That aside, finding th...

4 years ago | 0

| accepted

Answered
Internal Matlab function not found (isnan)
Try — rehash toolboxcache .

4 years ago | 1

Answered
Convert from transfer function to time domain
Probably the easiest way is to just simulate it. R0=0.000605797; Qr=147964.8608; R1=0.000856205; C1=0.049823238; % X=[SOC...

4 years ago | 1

| accepted

Answered
combining 2 ECG signal into 1
Unless the row vectors ‘xn’ and ‘xaf’ have the same number of elements, the vertical concatenation to produce ‘xc’ is going to f...

4 years ago | 0

| accepted

Answered
Choosing the Axis for Interp2?
Use plot3 instread of plot, since the plot is in three dimensions — X=-1:0.1:1; Y=-1:0.1:1; Z=membrane(1,10,10); figure(1...

4 years ago | 0

| accepted

Answered
how to make a cross section of lines and connect cross sections?
I do not have your data, however consider something like this — It would appear that the ‘y’ value is fixed in any specific lo...

4 years ago | 0

| accepted

Answered
Proper Labeling of X & Y values Contour Plot
Use the tick label properties to change the tick labels. Any new tick values have to be in the ranges of the current tick value...

4 years ago | 0

| accepted

Answered
how to make a boundary using percentile?
This uses the prctile function — x = rand(1,1000)*10+125; y = randn(1,1000)*50+250; xpctl = prctile(x,[2.5 97.5]) ypctl ...

4 years ago | 0

| accepted

Load more