Community Profile # Steven Yeh

7 2018 年以降の合計貢献数

#### Steven Yeh's バッジ

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

| 採用済み

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

| 採用済み

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

| 採用済み

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

| 採用済み

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

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

| 採用済み

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>'], ... '...