Community Profile

# Michael Soskind

##### Last seen: ungefär en månad ago
15 total contributions since 2020

View details...

Contributions in
View by

Finding values in a matrix
Hi HA, As dpb mentioned, if you have these minima calculated by matlab, it is easier to use the computed/saved information in t...

ungefär en månad ago | 0

Create array with random integers, skipping by a certain interval each time
Hi Blake, Using a for loop, your code could look as follows: for i = 1:magic_number % iterate for the number of i...

Finding Number of Events with Values Consectively Greater Than a Threshold
Hi Claire, I would use the findpeaks function, a very useful function I like to use for finding peaks of particular width witho...

| accepted

How to change my equation in an interval to use fminsearch
In general, I would advise using a different method for constructing the function. This would be to index the range of x. This m...

| accepted

Question

Solving a boundary value problem using bvp4c: forcing a particular form of solution
Hello, I am looking to replicate some results from a paper, linked here. The results are a matlab plot that should generate ...

### 0

how to get the value in julian date and time
Hi Monica, The following code should work for your example: % Julian Date Example % modified from https://www.mathworks.co...

Someone help me to fix the problem?
I think you need to use the unique function here. Something that is important to note is that the bar chart requires r to be uni...

| accepted

Problem with Y axis range in percentage
Hi Jordan, Look like you have the following line in your code: yt_new = linspace(min(yt_orig), max(75), numel(y_pct_lbl)); ...

Finding number of pulses in a data set?
Hi Joey, Looks like findpeaks should be your friend here. load('bit_stream.mat'); plot(bit_stream) [ones,loc_ones,w,p] = f...

Write and read numeric data line by line
Hi Chris, If I were you, I would try and use fprintf and fscanf rather than dlmwrite and dlmread. These are quite a bit fast...

| accepted

Newton Raphson!but with multiple initial values :/
Hi Alex, Edited: Please note, David Hill's answer is the one I recommend. As a note: To make calculations work on multip...

fitting to a curve defined by an integral
Hi James and Jin, Would you both be willing to take a bit of a different approach? The reason the fit is not working for you ...

fit a curve through selected points with own function
Hi Steve, With regards to curve fitting, when you choose the points, then you can fit it to any function using lsqcurvefit, s...

point that are under line equation
Hi Mili, There are a few ways to go about this, I think the most obvious is the one I outline below: % Redefining columns as...

| accepted

Question

Using the system/dos command to run an external program (RSOFT) using that program's custom DOS command
Hello, I am attempting to use Matlab to run in the background simulations from another program. I was hoping that the system ...