Answered
Help with fourier transform
Try this: syms a t w f(t)=(1/sqrt(2))*exp(-t^2/2*a^2) F(w) = int(f*exp(1j*w*t), t); F(w) = simplify(F, 'Steps', 050) prod...

7 years ago | 0

Answered
Can someone help me with Matlab fsolve
All the spaces are likely the problem. MATLAB interprets spaces in matrices as delimiters. This runs (I converted your ‘myfu...

7 years ago | 0

| accepted

Answered
Is there a way to add linear fit equations and r^2 values to multiple plots?
There are many ways to do this. Here is one: function [slope,intcpt,Rsq] = linfit(x,y) B = [x(:) ones(size(x(:...

7 years ago | 0

Answered
How can I calculate Approximate entropy?
If you have the Predictive Maintenance Toolbox, you can use the approximateEntropy function. See Algorithms for details. The...

7 years ago | 0

| accepted

Answered
dsolve Warning: Unable to find explicit solution.
@Marie — I was working on the numeric solution to your system when you deleted your earlier Question. Until now, I didn’t see ...

7 years ago | 0

Answered
How can I correct the baseline shift of the signal
The baseline constant offset is by definition at 0 Hz, and since your bandpass filter eliminates everything below 0.2 times you...

7 years ago | 0

| accepted

Answered
How to find the peaks in the signal with descending order only?
This works, with the example you provided: pks = [100,80,60,70,50,80]'; locs = [1,2,3,4,5,6]'; dpks = diff([pks(1); pks]);...

7 years ago | 0

| accepted

Answered
Open loop transfer function from bode plot response
First use the iddata function, then the tfest function. You will need the System Identification Toolbox to use these function...

7 years ago | 0

| accepted

Answered
How to filter and FFT raw data
I am not certain what you want to do. One approach: D = load('exp 8b.txt'); t = D(:,1); s = D(:,2); figure plot(t, s)...

7 years ago | 0

| accepted

Answered
Can I draw the figure with the help of MATLAB code ?
Try this: circx = @(r,a) r.*cos(a); circy = @(r,a) r.*sin(a); a = linspace(0, 2*pi); figure fill(0.2*circx(1,a)-0.5, 0....

7 years ago | 1

| accepted

Answered
Data Visualisation Basic with x-y coordinate and z data value
It depends what ‘x’, ‘y’ and ‘z’ are, and what you want. If they are vectors and have sufficient density, this may work: fi...

7 years ago | 0

Answered
I have a data set with <1x4418 double>, and i want to convert the same data set <94x47 single or double>, how can i do this?
Use the reshape function: v = rand(1, 4418); vr = reshape(v, 94, []);

7 years ago | 1

Answered
System of nonlinear equations
The spaces and continuation ellipses in ‘equationssystem’ are the problem. I slightly edited the function and defined it as a...

7 years ago | 0

| accepted

Answered
fprintf to txt output
The problem is that to use fprintf with mixed data types (here a string and two apparently double-precision vectors), you need t...

7 years ago | 0

Answered
Distance from center to the points
Add this line to your code just after the pol2cart call: D = pdist2([0 0], [xx, yy]); %...

7 years ago | 0

| accepted

Answered
How to graph the following summation/integral function?
I do not understand this: Q = @(v) sym(v); %convert to rational However this runs without error: syms n t v Q(v) =...

7 years ago | 0

Answered
How to solve "A numeric or double convertible argument is expected"
You are not addressing the table correctly. Use curly braces {} (as for a cell array) instead. This should work: Northing ...

7 years ago | 1

| accepted

Answered
Make background of half plot red
Try this: figure plot(rand(3)*0.3, rand(3)*0.3, 'x') % Plot Points hold on plot([0 5], ...

7 years ago | 0

Answered
2D polar plot axes & colour legend
The matrix in the Excel file does not work with the code you posted (the matrix size is not compatible with the calculated value...

7 years ago | 0

| accepted

Answered
Contours at a specific height from the surface || surfc
One way to put some distance between the surfc plot and the contours is with: Customizing contour plots part 2 If you want to ...

7 years ago | 0

| accepted

Answered
How create a 3D- Surface modeling body if u have x,y,z-values
Your data describe an outline in a plane. If you want to see it as a volume, duplicate the x and y values, add an offset to the...

7 years ago | 0

| accepted

Answered
how to create timeline plot?
Try this: North = [datenum([2019 01 30]), datenum([2019 04 12]); datenum(2019,07,03) datenum(2019,08,25)]; Central = [datenum...

7 years ago | 0

| accepted

Answered
Plotting Weierstrass time series
There seems to be a scaling variable missing for ‘t’ in the ‘x(t)’ calculation, and your ‘t’ vector does not have fine enough re...

7 years ago | 1

| accepted

Answered
Change the scale of a horizontal bar graph
I am not certain what you currently are seeing, or what you want. Try this: v = [0.1 0.3 0.2 0.4]; ...

7 years ago | 0

| accepted

Answered
How do I create a 2 column matrix from my x and y data
Your data as you posted them are row vectors. Create column vectors from them to create ‘A’ by either doing a simple transpose ...

7 years ago | 3

| accepted

Answered
function f(x)=xe^x
Function Basics

7 years ago | 1

Answered
Finding the Velocity at Different intervals
You can solve the problem of varying numbers of elements in each iteration by using cell arrays for ‘v’ and ‘d’: for ii = 1:11...

7 years ago | 0

| accepted

Answered
How can i find maximum value at each (x,y)location and the plane which contains it in a multidimensional matrix
Try this: M = 10; N = 15; A1 = rand(M,N); % Create Matrix A2 = rand(M,N); ...

7 years ago | 1

| accepted

Answered
How to combine two plots into one
Plot both data series on the same axes either in the same plot call, or use the hold function with two plot calls.

7 years ago | 1

| accepted

Answered
how can replace randi instead randint?
The appropriate Release Notes for R2016b says simply: ‘Replace all instances of randint with randi.’ According to this Answ...

7 years ago | 0

Load more