Answered
Is there a two-dimensional sinc interpolation software?
One-dimensional sinc interplation is described in Ideal Bandlimited Interpolation. It may be possible to adapt it to a 2D prob...

5 years ago | 0

| accepted

Answered
Bandwidth returns inf with discrete time transfer function
The -3 dB frequency is straightforward to calculate — alpha1=0.9; ts = 0.1; z = tf('z',ts); H = ((1-alpha1)/2)*(1-z)/(1-a...

5 years ago | 1

| accepted

Answered
Trying to convert cartesian coordinates to polar coordinates
‘I am concerned about the random dips with the small valleys like mass B at about 1 second and mass A at 4 seconds. Are those di...

5 years ago | 0

Answered
Issues with ode45
There are two problems (and one suggestion to improve its efficiency): First, ‘dymanics’ should only present the independent a...

5 years ago | 0

| accepted

Answered
tf is not working .
License and install the Control System Toolbox and the code should work. R=470; L=100E-3; C=0.22E-6; L = 0.1000; C = 2.20...

5 years ago | 0

| accepted

Answered
I want to find transfer function from given poles and zeros
One approach — K = 1; % Insert Correct Value p1 = -3.02E4 + 2.52E4j; p2 = conj(...

5 years ago | 2

| accepted

Answered
Is there a way for Densifying data towards the ends
I would use a weighting vector to weight the parts to be emphasized more heavily. One way to do that could be: N = 50; ...

5 years ago | 0

| accepted

Answered
Estimate Parameters for System of ODEs with given Data using a Genetic Algorithm (COVID-19-Model)
You found the code I was intending to direct you to when I just now saw this post. (My apologies for not seeing it earlier. Th...

5 years ago | 0

| accepted

Answered
Error when inputting step function
The code is missing a setp (pun intended) — m2 = 350; m1 = 10; Ks = 10000; Kw = 500000; b = 1000; Num = Kw* [b Ks]; De...

5 years ago | 1

| accepted

Answered
How to combine the matrices ?
One approach — A = rand(293,13); B = rand(392,13); C = rand(480,13); ABC = cat(1,A,B,C) .

5 years ago | 0

Answered
The transfer function of a small position Sensor
If you actually want the transfer function, use the System Identification Toolbox functions — Displacement_d_mm = [0, 0.08, 0....

5 years ago | 0

| accepted

Answered
rotating the plot axis
I am not certain what you intend by ‘rotate the axis’. It is a(4x4) matrix, so if you want to plot the transpose, just plot the...

5 years ago | 0

| accepted

Answered
Help Using Solve Function
Try something like this — Gamma=1.4 Mu_2=MuM(2.2, Gamma,10); M_2 = FindM_2(Mu_2,Gamma) function [M_2]=FindM_2(Mu_2,Gamm...

5 years ago | 0

Answered
How to make syms functions have specific values
One approach — syms c F(x) x dF = diff(F) F(x) = dsolve(dF == c, F(0)==0) c = solve(diff(F)==1,c) % ...

5 years ago | 0

Answered
Plot specific rows with an defined offset
One approach — f = 0:49; Spectra = rand(10, 50); Scores = randn(10,1); Offset = Scores; Offset((Offset>-0.5) & (Offset<0...

5 years ago | 0

| accepted

Answered
How to solve surface plot viewing issue?
Using an axes call could make the axis limits a bit more obvious, and to call attention to a specific point, one option is to d...

5 years ago | 0

Answered
Taking elements of matrix into coefficient of a function
Try this — A = [randi(9) randi(9) randi(9)] x = 1:1e-2:2; y = polyval(flip(A), x); figure plot...

5 years ago | 0

| accepted

Answered
how to normalize two graphs to each other?
Try something like this — D = randn(1,500); figure hfh = histfit(D); hfh(2).YData = hfh(2).YData * max(hfh(1).YData)/ma...

5 years ago | 0

| accepted

Answered
how to obtain the bode plot of trans function in matlab?
See if using the bode (or bodeplot) funciton will do what you want. .

5 years ago | 0

Answered
how to obtain Nyquist plots ?
See if using the nyquist function will do what you want. .

5 years ago | 0

Answered
How to obtain a particular value from set of matrix
If they are not already in some sort of array themselves, it would first be necessary to put them in one. Then extracting the e...

5 years ago | 0

Answered
FFT from a .CSV not giving the correct results
It works correctly. However it is also taking the Fourier ttransform of the time vector, so restricting it to only the data vec...

5 years ago | 1

| accepted

Answered
How to remove legend entries from saved .fig file?
One approach — figure; x = linspace(0,pi); y1 = cos(x); p1 = plot(x,y1); hold on y2 = cos(2*x); p2 = plot(x,y2); y3...

5 years ago | 1

| accepted

Answered
Using the Rigol 5000 series in Matlab
The only reference I could find for it is Overview - Using MATLAB Software with Rigol Instruments and apparently the Instrument ...

5 years ago | 0

| accepted

Answered
how to plot a matrix values in 3d plot
It would be nice to have the ‘z’ matrix as well, however in its absence, I will create one. x=[0.2;0.5;0.8;1;1.5]; y=[0;0.2;...

5 years ago | 0

| accepted

Answered
Select a record from a table where an exact value is not provided
This is a bit ambiguous. If the simulation is a system of differential equations, the time vector (‘tspan’ in the documentati...

5 years ago | 0

Answered
Error in bvp4c
The symbolic Math Toolbox disagrees with you with respecty to ‘bvpfun’, however I don’t know if that was the problem. (I use it...

5 years ago | 0

| accepted

Answered
How can I use xticks with a bigger range of values towards x axis
Perhaps semilogx would do what you want. A different way to do the same thing — set(gca, 'XScale','log') xlim([1e+3 1e...

5 years ago | 0

Answered
How to do math to entirety of a vector?
Creating it as an anonymolus function and using it with arrayfun and cell2mat is an option — selectIndicies = @(selectSpaces) ...

5 years ago | 0

| accepted

Answered
How to write a program to find the Factorial for a series of number
Take advantage of MATLAB’s vectorisation capability — N = 10; ff = (1:N) ./ cumprod(1:N) ffsum = sum(ff) Make appropria...

5 years ago | 0

| accepted

Load more