Community Profile

photo

Chunru


Last seen: Today 2013 이후 활성

Matlab user since 1990

Statistics

All
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • 12 Month Streak
  • Guiding Light
  • Number Manipulation I Master
  • Indexing I Master
  • Revival Level 2
  • Knowledgeable Level 5
  • Commenter
  • Sequences And Series II Master
  • Speed Demon
  • Creator

배지보기

Content Feed

보기 기준

답변 있음
using subplot in bar , how to adjust bar width
x1 = [1 2 3]; y1 = [1 2 3 ]; x2 = [1 2 3 4 5]; y2 = [1 2 3 4 5]; % Make xlim same so that the bar width is the same h1= s...

약 16시간 전 | 0

답변 있음
Rotate Basis Vectors Programmatically
V1 = orth(randn(6)) % your original orthonormal basis % Then you can apply any other orthonormal basis to it % For e...

3일 전 | 1

답변 있음
Sorting Values my Integer and Decimal Values
p = [8.1 8.2]; if floor(p(1)) == floor(p(2)) disp("A pair.") end f = [2.1 , 3.1 , 4.1, 5.1, 6.1]; if all(abs(diff(mo...

3일 전 | 1

답변 있음
Correlate Signals with different time points
You can resample the data into sime sampling time: doc resample doc retime doc interp1 After both signals are sampled in the...

3일 전 | 0

답변 있음
How to remove the AWGN noise from data?
Uo=[20 30 40 50]; % signal U=awgn(Uo,30) % add noise to signal % Uo=U-awgn(30); % if you don't know t...

3일 전 | 0

답변 있음
How to trasform from cell to matrix and transpose from horizontal to vertical at the same time?
Data.my_cell{1} = randn(1, 11); Data.my_cell{2} = randn(1, 11); Data.my_cell{3} = randn(1, 11); Data.my_cell my_matrix = cel...

5일 전 | 1

| 수락됨

답변 있음
How do I zoom in on a certain section of a magnitude bode plot
num = [1]; den = [1 0.04946 3.00316 0.0989847 3.00322 0.0494631 1.00006]; g=tf(num, den) bode(g) grid on ax = findobj(gcf, ...

5일 전 | 0

답변 있음
Obtaining Sine Wave From Square Wave
% generate a square wave with no fixed period f = 0.125; fs=1; s = 0.3+sin(2*pi*f*(0:40)); % a sine wave with offset x =2* (...

5일 전 | 0

| 수락됨

답변 있음
why do I get this error while using qammod? "Expected input number 1, X, to be an array with all of the values < 4."
A few bugs in program. The major one is generating input signa which should bel: tx_bits=randi([0 M-1], [N_data_symbol,1]); N...

5일 전 | 1

| 수락됨

답변 있음
Using trapz function to provide answers using loop
% The way to use trapz x= 1:20; % x y = randn(20, 1); % y ytrapz = trapz(x, y) % integr...

5일 전 | 0

| 수락됨

답변 있음
Storing sparse matrices in cell or struct without converting them to full
The sparse array in cell is still sparse array as shown below, Can you show the problem you have encountered? a = sparse(eye(1...

5일 전 | 0

| 수락됨

답변 있음
How to import exponent number from Excel column to MATLAB
x = readtable("2powx.xlsx") y = cellfun(@(a) sscanf(a, "%d^%d")', x.LSB, "UniformOutput", false) y = cell2mat(y) y = y(:, 1)....

6일 전 | 0

답변 있음
How to fit a gaussian distribution curve on a bar diagram?
p = [1/36,2/36,3/36,4/36,5/36,6/36,5/36,4/36,3/36,2/36,1/36]; xsum =[2,3,4,5,6,7,8,9,10,11,12] ; bar(xsum, p) mu = sum(p.*xsu...

6일 전 | 0

| 수락됨

답변 있음
Why do I get error when using a simple global variable?
Not sure what the code is trying to do. However, the error is due to the wrong usage of ( ) rather than global variables. glob...

6일 전 | 1

답변 있음
How can I plot direction of principal components in PCA
x = randn(4, 2); plot(x(:,1), x(:,2), 'ro', 'DisplayName', 'data'); axis equal; hold on p = pca(x); xc = mean(x); quiver(x...

6일 전 | 0

| 수락됨

답변 있음
Smoothing data with sgolay filter
framelen = 11; order = 3; % adjust these values smootheddata = sgolayfilt(z, order, framelen);

6일 전 | 0

답변 있음
Unrecognized function or variable 'sum'.
classdef question2 methods function q2a = l1qa(~,table) % clear sum; s...

6일 전 | 0

| 수락됨

답변 있음
I have a 2x2 matrix with values [0.5694 -0.8220; -0.8220 -0.5694] How do I plot this matrix?
x = [0.5694 -0.8220; -0.8220 -0.5694] heatmap(x); figure plot(x(:, 1), x(:,2)) % take 1st column as x and 2nd column as y (...

6일 전 | 0

답변 있음
Get the displacement component which is perpendicular to the triangle (finite element)
% In order to know the normal of triangle, you need the coordinated of % triangle postri = randn(3, 3) % x y z v = dif...

6일 전 | 1

답변 있음
Separating a timestamp into individual components
times = [ 20082009 21082009 22082009 23082009]; d = floor(times/1e6); m = mod(floor(times/...

6일 전 | 0

답변 있음
Suppress Window using System Command
cd("C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23") cmd = "MaxsurfModeler64.exe display off" system(cmd)

6일 전 | 0

| 수락됨

답변 있음
plot graphs with a range
R = 2.303 * 8.314; T = 273 + 20; F = 96500; Eqv = @(z, Xout, Xin) ((R * T) / (z * F)) * log(Xout/Xin); fprintf("<Question 1:...

6일 전 | 0

| 수락됨

답변 있음
Scatter plot with mean for multiple groups
x = readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136975/MATLAB_exampledata.xlsx"); x.Group = cate...

6일 전 | 0

답변 있음
Find the first value that is greater than or equal to and its corresponding value
data =[ 0.01 3 0.02 4 0.03 6 0.04 9 0.05 12 0.06 14 0.07 15 0.08 18]; idx = find(dat...

6일 전 | 0

| 수락됨

답변 있음
How can I insert many columns into a matrix at different locations efficiently?
%Create some "data" A = rand(100); %some random data col = randsample(100,15); A(:, col)=zeros(100,15); %some random columns ...

6일 전 | 0

답변 있음
I am not sure why my function is undefined for input arguments double.
x = rand([-20 20]); % generate random number in range [-20 20] % call the function % output function_name input_argume...

7일 전 | 0

답변 있음
How to get the intensity value of the flower
im = imread("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136290/image.jpeg"); whos im = rgb2gray(im); ...

7일 전 | 0

| 수락됨

답변 있음
How to convert a sym variable to an ordinary variable?
t= linspace(-1,3); syms x_t(t); x_2(t) = piecewise(t<-1,(2),-1<t<=-.5,(t.*4+6),-.5<t<2, (-2.4*t+3),t==2,(2),t>=2, (2)); y ...

7일 전 | 0

답변 있음
how can I plot a trajectory of moving point ?
npts=1; v=28.8/3.6; radius=1000; center=[0 0]; MOVE(npts, v, radius, center) function MOVE(npts, v, radius, center) d...

7일 전 | 0

| 수락됨

답변 있음
can anyone help me ? i keep getting this error
num_roots=5; num_functions=6; %initial guess for roots (from Wolfram MathWorld) zeros_guess=[2.4,3.8,5.1,6,7.5,8.7;... 5.5...

7일 전 | 0

| 수락됨

더로드