Answered
i have signal array X(1:500) , in this array i have positive,negative and float value. i need to find the 1st major difference or 1st highest peak of the signal how can i find the such peak ?
Hi, the following code will give you the first highest peak and the value of it. [max_X,index]=max(X)

8 years ago | 0

Question


Mystery about subs?
Hi everyone, I was just wondering sometimes if the equation is too long when we use subs command it just returns the same equ...

8 years ago | 0 answers | 0

0

answers

Answered
I need two decimal values without rounding off
Hi try this: a=floor(100 * 0.0194)/100 fprintf('%0.2f',a) For more clarification click the link below: https:...

8 years ago | 0

Answered
what is the code to plot this ?
syms t ezplot(exp(-0.3237*t)*cos(3.4836*t))

8 years ago | 0

| accepted

Answered
matrix element summation algorithm
Hi try this : sum(diag(A))

8 years ago | 0

Answered
How can we add curvelet toobox to matlab R2018a?
Open matlab , click adds on and paste this link in the search bar and download, it will be added as one of your toolboxes.

8 years ago | 0

| accepted

Answered
How to convert MATLAB-variables to LaTeX tables
There is a bug in 2017 b version on windows 10, if you surf through the forum Steven lord staff would have given an answer for t...

8 years ago | 0

| accepted

Answered
find m>=i & m<=j
You should not use flower brackets for conditional statements in matlab . *{}*

8 years ago | 0

| accepted

Answered
Matlab crashes when I use symbolic math toolbox
There is a problem with windows 10 which freezes when symbolic math toolbox is used , the best option is to switch to 2017a.

8 years ago | 0

Answered
What does this code mean?
Actually there are some errors in the code. linspace is a function which defines a vector from a starting to end point with t...

8 years ago | 0

Answered
how to solve an exponential equation with one unknown in matlab
%Try this: syms rs ra=90.82*10.^6 rb=90.23*10.^6 rs=vpasolve(exp((-pi.*ra)./rs)+exp((-pi.*rb)./rs)-1,rs)

8 years ago | 0

Answered
Are these polyfit curves correct?
Codes are correct %one remark %x2=-8:0.1:8 %because the start and endpoint should be similar to x. plot(x,y,'ob'x2...

8 years ago | 0

| accepted

Question


How to remove commas?
Hello everyone, I want to remove commas between each letter and read the text file for example as follows: a='matlab' ...

8 years ago | 1 answer | 0

1

answer

Answered
I want to see the legend for each n
for n=linspace(1,length(t),10) plot(x/L,(c(n,:))) legend(['t=' , num2str(n)],'Location','southeast'); end...

8 years ago | 0

| accepted

Question


Saving as csv file?
Hi people , when I save a variable in csv format i only see the variable but not the datas. For example: Frequency =1:100 ...

8 years ago | 1 answer | 0

1

answer

Answered
how to calculate and write an excel from a file into workspace
Hi, xlsread (‘filename.xls’,Range) xlswrite(‘filename.xls‘) This will do what you are looking for.

8 years ago | 0

| accepted

Question


Can someone suggest good resource for signal analysis using FFT?
I want to learn more about signal analysis but I need some good resources to gain more information about it.

8 years ago | 1 answer | 0

1

answer

Answered
Can I upload program to arduino using matlab only?.
yes you can upload codes using Matlab to Arduino , but before that you have install Arduino hardware from mathworks.

8 years ago | 2

| accepted

Answered
How to save data in a file so after restarting the Matlab I will have the data stored in computer?
It’ll be saved in matlab directory . If you want to use that values you can type; load(‘a.mat’)

8 years ago | 0

| accepted

Question


Why plot is over plotted?
%i degree for curve fitting %j is the iterating number for subplot title x=[1:10] y=sin(x) for i=10:10:100 ...

8 years ago | 1 answer | 0

1

answer

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

8 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

8 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

8 years ago

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

8 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

8 years ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

8 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

8 years ago

Answered
xlswrite() enable to export in .xlsx format, No COM server with Excel
If you own a mac this error occurs, I face the same problem too. I think the best way is to install excel in your Mac .

8 years ago | 0

| accepted

Question


Error input must be floats, namely single or double.
tspan=[0:0.25:5]; syms x(t) m f_0 dx=diff(x) x0=0; ode=m*dx+k*x==f_0*sin(t) [t,x]=ode45(@(t,x) ode,tspan,x0) ...

8 years ago | 1 answer | 0

1

answer

Answered
Why does y come out as one number?
You put x as numerical Data. If you want to get result in terms of x then x has to be defined as a symbolic variable. i.e., ...

8 years ago | 0

Load more