Community Profile

Michael Soskind

Last seen: 8 meses ago Active since 2020

Content Feed

View by

Selecting range of data in a matrix
Hi Francis, There are a number of ways to approach this problem. One simple method is to think of using logical operators to fi...

8 meses ago | 0

| accepted

Finding a summation of a two variable function keeping one parameter constant.
Sushanth, The method for doing this depends on your function f(x,N). If this function works with vectors, then the easiest fun...

9 meses ago | 0

| accepted

Changing Linewidth and Font size in thd(x)
Hi Adrian, The fontsize is relatively straightforward: ax = gca; ax.FontSize = 24; will change the fontsize of the title,...

9 meses ago | 0

| accepted

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

más de 1 año 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...

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 1

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

más de 1 año ago | 0 answers | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0

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

más de 1 año ago | 0 answers | 0