photo

Steven Yeh


Active since 2018

Followers: 0   Following: 0

Statistics

  • First Review
  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
How to detect the change point
You pretty much have it laid out: diff_data=diff(data); diff_data=[0;diff_data]; percentageChange = abs(diff_data...

6 years ago | 2

| accepted

Answered
How do I efficiently replace data in data sets where I want to find a value in the data that is in one array and replace it with the data in the same position in another array.
You can use a single loop with find function: a = 1:10; b = 11:20; c = 1:2:10; for i = 1:length(c) inde...

6 years ago | 0

| accepted

Answered
xlswrite text with multiple empty cells inbetween
There are many ways to do this, one of them is to create padding cells: a = cell(1,20); Header1 = {'All',a{:}, 'Develope...

6 years ago | 1

| accepted

Answered
How can I animate the drawing of a figure 8 shape in a polar plot to confirm the path it takes?
Try this: start = 0; end_ = 2*pi; disc = pi/16; theta4 = 0:0.01:2*pi; rho4 = sqrt(4*cos(2*theta4).*(sec(theta4)...

6 years ago | 0

| accepted

Answered
Divide y values of two graph?
You could create a new time series, and use linear interpolation to find corresponding values. For example: ax = linspac...

6 years ago | 1

Answered
Create a subtable from a larger table
You can use the readtable function to build a table first, then retrieve the subtable with conditional indexing. For example...

6 years ago | 2

| accepted

Answered
how do i bold certain characters in a vector?
You can try Element Style tag: fprintf(['The vector equation for the line is %s', ... ['<strong>i</strong>'], ... '...

6 years ago | 2