Answered
How to convert cell to matrix
Side stepping the issue a little bit, I can read in your data file perfectly as numerical values and not use cell2mat at all usi...

19 days ago | 1

| accepted

Answered
sensitivity analysis generate random integer values
Sound like you are looking for the MATLAB randi function, you can get details by typing doc randi on the command line

19 days ago | 0

Answered
Save each output step in rows in a larger matrix
You have a number of problems with your code. The main problem, if you want to save the results of each iteration in variable Q...

22 days ago | 0

| accepted

Answered
representing the correlation function
In your code the sin wave signal will have an amplitude of one, and the stadard deviation of the noise signal will also be one. ...

22 days ago | 0

Answered
Struggling to plot the data over timestamps!
I copied and pasted your data into an .xlsx file (attached here) and ran your commands (only modified to have the .xlsx file in ...

22 days ago | 0

Answered
How to create an interactive graph to show how data changes when one factor in an equation is changed
Here is a good example of building an app in app designer with graphs that change as values of parameters are changed by the us...

23 days ago | 0

| accepted

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...

24 days 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...

1 month 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...

1 month 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...

1 month 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...

2 months 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...

2 months 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 ...

2 months 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...

2 months 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...

2 months 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

2 months ago | 0

| accepted

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

2 months 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...

2 months 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

2 months 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...

2 months 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...

2 months 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...

2 months 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...

2 months 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...

2 months 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...

2 months 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 ...

2 months 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

2 months 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...

2 months 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...

2 months ago | 0

Load more