Community Profile # Chunru

Last seen: Today 2013 이후 활성

Matlab user since 1990

#### Statistics

All
• • • • • • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
Question about exponential functions and draw plots
doc fplot for more details. a = 1; b= 2; f = @(x) exp(a*abs(x) + b); fplot(f)

약 16시간 전 | 0

답변 있음
Removing redundant rows where not every row has the same number of elements
x = ["HIST1H2BC" "K13" "HIST1H2BC" "K13;K16" "HIST1H2BC" "K16" "HIST1H2BH" "K13" "HIST1H2BH" "K13;K16" "HIST1H2BH" "K16" "...

약 16시간 전 | 0

답변 있음
Import multiple .txt files

1일 전 | 0

답변 있음
Extract the row that contains the minimum value in the last column of a matrix
A = randn(4, 5) [~, irow] = min(A(:, end)); b = A(irow, :)

1일 전 | 1

| 수락됨

답변 있음
How to read, reshape, and write large data?
You can read a small portion each time and write to the file. This way you will not use a lot of memory. blocksize = 1e6; nfi...

1일 전 | 0

| 수락됨

답변 있음
Average data from excel
fn = dir('10G*.xls'); nfiles = length(fn); ax(1) = subplot(121); hold on; ax(2) = subplot(122); svp = cell(size(fn)); ...

1일 전 | 0

답변 있음
How to find the maximum value of the first column in multiple matrices?
X = rand([6,3,6]); % find maximum value of 1st column of each 6 matrices max(squeeze(X(:, 1, :)))

1일 전 | 1

| 수락됨

답변 있음
Applying a Bessel Filter to Acceleration Data
Do you think you really need bessel filter (for linear group delay)? Otherwise, other filter types give better attenuation/rippl...

1일 전 | 0

| 수락됨

답변 있음
plz help me with this task
correctpw = ["user1" "abcd12345"; "user2" "abcdefg"]; loginstatus = false; while true userna...

2일 전 | 0

답변 있음
error Unbalanced or unexpected parenthesis or bracket
You may want to change the c1 line as follows. It is grammatically correct, but not necessarily correct for your problem. You ...

2일 전 | 0

답변 있음
Fill array between values
The rule is not clear in your question. In first/second row, you fill 3 between first 1 and last 2. In third row, you fille 3 b...

2일 전 | 0

| 수락됨

답변 있음
How can I use ODE45 continuously?
Just change D depending on t. Run the solver over the whole time period. [Update: See @Walter Roberson remarks below. The re...

2일 전 | 1

| 수락됨

답변 있음
MATLAB stft vs spectrogram
stft focuses on the FT of windowed and segmented (overlaped) data and the output can be used to reconstruct the original (under ...

3일 전 | 0

답변 있음
How to add slides with images and tables in company standard template ?

3일 전 | 0

답변 있음
How can I change the width of a tile in a tiledlayout without changing its height?
By changing figure size, you can achive that effect. figure('Position', [1, 1, 600, 400]) t = tiledlayout(1,3,'TileSpacing','C...

3일 전 | 0

| 수락됨

답변 있음
How to handle large variables in workspace
Only process the latest data and through away old data. You need to consider streaming processing of your data. See suggestion...

3일 전 | 0

답변 있음
Select particular elements from a cell array to form a matrix (double type)
x = zeros(size(results)); for i=1:size(results, 1) for j=1:size(results, 2) x(i,j) = results{i,j}.endo_simul(17, ...

3일 전 | 0

| 수락됨

답변 있음
normalize the vector by taking the difference from the first element
T = [1; 2; 3]; T1 = T -T(1)

3일 전 | 0

| 수락됨

답변 있음
How can I make points show through a surface plot?
% Plot a sphere and a line [x, y, z] = sphere; h = surf(x, y, z); hold on plot3(-1:1, zeros(3,1), zeros(3,1), 'r', 'LineWid...

3일 전 | 0

| 수락됨

답변 있음
What is the most correct way of determining whether variable contains a number
It seems that you have to write your own function: [t, f] = isstranum(5) [t, f] = isstranum('nan') [t, f] = isstranum('-512.3...

3일 전 | 0

답변 있음
Graph data series with colors
load data.txt scatter(data(:,1), data(:,2), [], data(:,3), 'filled'); colorbar;

3일 전 | 0

답변 있음
Cell array formatting /restructuring
Here is a portion of code for you to further expand: % load data d = load('Data.mat'); n = size(d.Data, 1); % Find the FRA...

3일 전 | 0

| 수락됨

답변 있음
Compare elements of an array with all elements in a matrix
P = randn(5,4) C = randn(1,4) lv = C > P

3일 전 | 1

답변 있음
Reading and Processing Many Text Files
foldername = 'C:***FILE LOCATION***'; % True folder name needed fileprefix = 'RESULTS_ONE_'; for i=1:N ...

3일 전 | 0

| 수락됨

답변 있음
I created a code which does filtering with convulution but it gives an error
The image has 3 channels and is a 3D array. You need to loop over the 3rd dimension as well. Use a different image below. A =...

3일 전 | 0

| 수락됨

답변 있음
how to make a row all zeros in a matrix based on the two random number generated???
You can arrange A..F into a 3D matrix. X = randn(6,3, 6); idx = randperm(6, 2) for i=1:length(idx) X(idx(i), :, idx(i)) = ...

4일 전 | 0

| 수락됨

답변 있음
what is difference between C=+A, C=A, C=unary(A)? All three provide same assignment of matrix A to C
C=+A; C = uplus(A) is an alternate way to execute +A, but is rarely umeased. It enables operator overloading for classes. So ...

4일 전 | 0

| 수락됨

답변 있음
How can I Implement Runge Kutta 4 to plot the trajectory of a given point in a vector field?
As you have the intial point (0,0) and the intial speed (0,0), so the solution never progress to a different point. If you chan...

4일 전 | 0

| 수락됨

답변 있음
How can I Implement Runge Kutta 4 to plot the trajectory of a given point in a vector field?
tspan = 0:.1:10; x0 = [0; 0]; [t,x] = ode23(@odefun,tspan,x0); subplot(211); plot(t, x); xlabel('t'); legend('x', 'y') subpl...

4일 전 | 0

답변 있음
How can I Implement Runge Kutta 4 to plot the trajectory of a given point in a vector field?
Matlab has ode23 and ode45. https://blogs.mathworks.com/cleve/2014/05/26/ordinary-differential-equation-solvers-ode23-and-ode45...

4일 전 | 0