Answered
find the equal values that stand together on the same row or column or diagonal in the matrix
I am assuming here that to satisfy your criteria you must have a group of 5 or more ones in any row, column or diagonal or a gro...

4 years ago | 1

Answered
Why does my closed loop pole-zero map appear to indicate a critically damped system but a step input results in an under-damped response?
If you remove the time delay the response has no oscillations as you expected. I know you said "**Just as a side note, taking a...

4 years ago | 0

| accepted

Answered
Why does a sine bandwidth decrease with 1/dur, dur beeing the signal duration
I don't have enough time at the moment to look at your code in depth, but I'm suspecting that you are experiencing "leakage" eff...

4 years ago | 0

Answered
Comparing curves to an original signal
In terms of frequency response of a transfer function it looks like you could make the orange curve move towards the purple cur...

4 years ago | 0

| accepted

Answered
How to randomise trials without following in successive ones
OK, I think I finally got it. Thanks for your patience. If I am understanding correctly I think this code should do what you ar...

4 years ago | 0

| accepted

Answered
polynomial interpoltaion & least squares
I'm not totally clear on what you are trying to do from your description, but here are few things that I think will help you. Y...

4 years ago | 0

Answered
Find unique values in a pseudo inverse based on SVD
I think that you can identify the "non-unique" components in your specific example, by looking at the last two columns of V (or ...

4 years ago | 0

Answered
if statement is not working
The problem is that your if statement will only be true if all of the elements of theta satisfy the condition. If you only want...

4 years ago | 2

| accepted

Answered
Merge columns in two tables depending on column names
I think you can probably accomplish what you want using one or more of MATLAB's join, innerjoin, and outerjoin commands. Please...

4 years ago | 0

| accepted

Answered
i am trying to write a program to find the day of any date.
I think MATLAB's weekday function should do this for you, type doc weekday on the command line for details

4 years ago | 0

| accepted

Answered
ODE solvers and code
Just edit the functions, so type on the command line for example: edit ode45

4 years ago | 0

Answered
How to create a Stereo Sweep from Frequency A to B in a given time?
As an alternative, if you don't have the signal processing toolbox, or for some reason preferred to see the details you could do...

4 years ago | 2

Answered
Identifying the first number in a series in the same vector?
define your vector as x then y = unique(floor(x)) floor gets rid of the decimal part, unique gets rid of the repetitions

4 years ago | 0

| accepted

Answered
Different legends for multiple graphs
There might be more elegant ways of generating the legends but one approach would be to define before the loop a cell array of l...

4 years ago | 0

| accepted

Answered
Warning: Imaginary parts of complex X and/or Y arguments ignored.
Haven't tried your code, but most likely one or more of h1, h2, or h3 are negative and when you take the square root of them it...

4 years ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
Following up on @Walter Roberson's comment, I ran your code (I assigned my own values to data, as I didn't have your input file...

4 years ago | 1

| accepted

Answered
how to find the value of the diagnol of the attached image
From your matlab.mat file it seems that you are showing the image represented by the matrix corr_data. You can get the diagonal...

4 years ago | 0

Answered
Add data from one input file to another
I think you should be able to get the sets of data that you want using MATLAB's ismember and intersect Is that what you are ask...

4 years ago | 0

Answered
How to solve for x give the equation of a circle and the equation of a line?
You can use MATLAB's fsolve to solve the original system of two equations and two unknowns. To do this you have to rearrange the...

4 years ago | 0

Answered
How and what is the time period of following function
I think you are looking for a characteristic time duration for your circuit. One common criteria is the settling time following ...

4 years ago | 0

Answered
How do I make Matlab not show large values in scientific notation?
I think typing this command on the command line may get you what you want format shortG

4 years ago | 0

| accepted

Answered
interpolate data in timeseries
Although you say you have a "time series" it looks like v is just an ordinary vector. Assuming you have another "t" vector to go...

4 years ago | 0

Answered
How to get the equation inside that of root(function,z) equation ,i.e the function only
This is a polynomial, you should be able to obtain all of the roots (real and complex) using: r = roots([1.0 ... -(190266...

4 years ago | 0

Answered
I have to combine 90 txt files in one txt file
If you don't want to create a huge matrix before writing it out you could do this % define some parameters outfile = 'alldata....

4 years ago | 1

| accepted

Answered
I am trying to write data to a file where the first column is the time values and the second column is the volts values.
I think the problem is tha fprintf writes the elements columnwise. You could send the transpose (use the ' operator) fprintf(fi...

4 years ago | 0

| accepted

Answered
create a graph with a specific interval
If you want n to have integer values greater than zero and strictly less than 35 you can define n = 0:34 If you don't require ...

4 years ago | 1

Answered
why do I suddenly get a gain value in my transfer function?
Your original expression and the one found by zpk are the same. zpk just factored out the 2 from denominator.

4 years ago | 1

| accepted

Answered
How to solve for N sets of 2 equations and 2 unknowns using a for loop?
This is one approach using nested functions to pass additional paramaters, see https://www.mathworks.com/help/optim/ug/passing-e...

4 years ago | 0

| accepted

Answered
Convert from linear to log scale and back again
I think you can get what you want using MATLAB's semilogx function

4 years ago | 0

Load more