Answered
Create array of values returned from inside an if statement.
Subscript it — ex = [1,2,3,4,3,4,5,4,5,6,7,8,9,7]; for i = 2:length(ex)-1 if ex(i) > ex(i-1) & ex(i) > ex(i+1) ...

5 years ago | 1

| accepted

Answered
How to find the /check whether the image is symmetry or not ??
See my Answer to your other Question. ‘BTW, I am intend to find the symmtery in the image, for e.g. finding symtericity ab...

5 years ago | 0

Answered
Matlab crashes/closes unexpectedly while saving the matrix
‘BTW, I am intend to find the symmtery in the image, for e.g. finding symtericity about y axis in the case of attached figure, ...

5 years ago | 0

| accepted

Answered
Problem with ploting bode funcion of higher order
Yours is the second instance of this I have seen recently (the first being The inbuilt code "bode " is not working). That was...

5 years ago | 1

Answered
How to include function in legend
A sllightly different approach — syms x F = x^2; % Definied Function g = matlabFunction(F); % some random steps x = -10:...

5 years ago | 1

| accepted

Answered
How to seperate column correctly using readtable?
This appears to work — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/640960/FakeCsv.csv'); CS...

5 years ago | 0

| accepted

Answered
Find specific range in a table
Try this — T1 = cell2table({678. {'Image0029.bmp'}, 38 0 679 {'Image0029.bmp'} 51 ...

5 years ago | 0

| accepted

Answered
I cant solve discretize system in matlab, please is there anyone who knows ?
See the documentation for the bilinear function. There are other options as well, linked to in that documentation.

5 years ago | 0

Answered
How to interpolate when we have two different sizes
A=[0,-2.24489741646952,-4.62733420618208,-6.95719767650665,-9.01707651070867,-10.6031942911103,-11.5925433634751,-11.8888513...

5 years ago | 0

| accepted

Answered
smooth line in plot
a = [0 1.56809885737654 1.00861433623079 1 0.477810012662993 0.172723989683935 2 0.307057557611696 0.03699077041...

5 years ago | 0

| accepted

Answered
Add Numbers to the End of a Table
Possibly — T1 = table(rand(5,1),rand(5,1), 'VariableNames',{'sample_x_coord_table','sample_y_coord_table'}) VN = T1.Propertie...

5 years ago | 0

Answered
Fourier Transform of Rectangular Pulse
A symbolic approach — syms t omega F(omega) = int(1*exp(1j*omega*t), t, -0.25, 0.25) figure fplot(F, [-1 1]*16*pi) grid...

5 years ago | 2

| accepted

Answered
contour extraction from the image
Try this — LD = load('h.mat'); h = LD.h; figure surf(h, 'EdgeColor','none') grid on figure lvl = 750; [c,h] = conto...

5 years ago | 0

| accepted

Answered
Help sketching equation into 3d graph
The error it throws when I run it here is: X, Y, Z, and C cannot be complex This is likely because of the negative values in ...

5 years ago | 0

| accepted

Answered
How to create text annotation over a place of subplot
In the documentation Create Text Box Annotation, the textbox can take a dim vector that describes the size and location of the t...

5 years ago | 0

Answered
properties of 'qqplot' function?
The qqplot function creates 3 line objects. It is possible to modify each one by addressing it specifically — load gas ...

5 years ago | 0

| accepted

Answered
Error using call_myequations Too many input arguments.
The ‘call_my_equations’ function needs to be changed to call ‘myequations’ correctly, and to reference ‘parameters’ in order t...

5 years ago | 1

| accepted

Answered
fsolve for generated equations
Having the equations themselves would hellp. However assuming they are something like this: y1 = s.^2 + 10*t; y2 = 10*s + ...

5 years ago | 0

| accepted

Answered
How do I compute the area enclosed by contourm?
I do not have the Mapping Toolbox, so I have no experience with contourm. However looking at the documentation, it appears to b...

5 years ago | 0

| accepted

Answered
how can i put a horizental bar on a plot?
We do not have the plot of the signal, however drawing the horizontal lines between the starting green lines and the ending red ...

5 years ago | 0

| accepted

Answered
Saving workspace as EDF
I am not certain what you have already tried. Perhaps the edfwrite function in the Signal Processing Toolbox will do what you...

5 years ago | 0

Answered
Group_Test1 is empty
If ‘np’ is 0 (the cell array is empty), the loop is satisfied at the outset and never iterates. If ‘np’ is 1, the loop iterates...

5 years ago | 0

Answered
GA opimization for kinetic parameter estimation of ODEs system
See Is it possible to use Simulated Annealing or Genetic Algorithm for parameter estimation of a parametric System of ODEs? for ...

5 years ago | 0

| accepted

Answered
How to draw such plot
Try something like this — v = [1 1000 2000]; % Controls Step Offsets fcn = @(x,v...

5 years ago | 0

| accepted

Answered
Interpolate non-uniform signals
Try something like this, using the Signal Processing Toolbox resample function — LD = load('example_data.mat'); data = LD.dat...

5 years ago | 1

Answered
using area function - drawing below 0 of y axes
To do this with the area function, changing the basevalue could work, however it is likely easier to use patch — x = linspac...

5 years ago | 0

Answered
Ploting satellite's orbit
It is not possible to run the code because several constants and at least one function are missing. Try either: plot3(x,y,z...

5 years ago | 1

| accepted

Answered
read multiple points from matrix
Use the sub2ind function to create linear indices from the subscripts — A = rand(50,50); X = [1 2 5]; % As...

5 years ago | 0

| accepted

Answered
"asin" function is always solving between 0 and pi/2 of interval. Why?
Most likelly because of the arguments you give it. From the documentation: For real values of X in the interval [-1, 1], as...

5 years ago | 0

| accepted

Answered
How to solve an integral of a matrix?
Try this — % Input variables fsw = 1*10^6; %Frecuencia de conmutación T = 0.5*1/fsw; %Semiperiodo Tsamp ...

5 years ago | 0

| accepted

Load more