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

18 dagen ago | 1

| accepted

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

18 dagen ago | 0

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

21 dagen ago | 0

| accepted

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

21 dagen ago | 0

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

21 dagen ago | 0

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

22 dagen ago | 0

| accepted

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

23 dagen ago | 1

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

ongeveer een maand ago | 0

| accepted

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 2

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 2

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 1

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

| accepted