Community Profile

photo

Chunru


Last seen: 22日 前 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

表示方法

回答済み
specifying an array size
count=0; b = []; %A =randi([1,9999],10,31); A =randi([1,60],10,31); [row,col]=size(A); for i=1: row for j =1:c...

23日 前 | 0

| 採用済み

回答済み
Pcg method is imprecise
The pcg method use tol as a relative tolerance such that norm(residual) < tol*norm(rhs). So you need a different assert. tol =...

23日 前 | 0

| 採用済み

回答済み
how do i download apps Sonar Equation Calculator for R2021b?
Sonar Equation Calculator comes with phased array toolbox. You need that toolbox.

約1ヶ月 前 | 0

回答済み
How do I highlight a certain area between two lines?
% Generate some data t = 0:.1:10; y = sin(t); plot(t, y); hold on % highlight a portion of data idx = t>6 & t<9; area(t...

3ヶ月 前 | 0

回答済み
How to calculate a running value of a function for every 30 samples?
Nt= 50; % Total samples d = randn(1,Nt); ratioCompute = movmean(d, 30)

4ヶ月 前 | 0

回答済み
How to count number of ones and zeros in a binary number?
% if you use char to represent binary numbers A='1100'; mod(sum(A=='1'), 2) == 0 % if you use double to represent binaray num...

4ヶ月 前 | 0

回答済み
Receiving a "Array indices must be positive integers or logical values." message
change the for loops into: x = 1:.1:10; results = abs(q) ./ (4*pi*e0*x.^2); The original program has result(x) where x is not...

4ヶ月 前 | 1

回答済み
define a counter which will starts counting from zero automatically when the count reaches to 10
c = 0; % initialization while true c = mod( c + 1, 10); % count from 0 to 9 then re-start end

4ヶ月 前 | 0

回答済み
Reading CSV file with header and other data.
T=readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1174693/Without%20Cooling-%20aluminum%20No1.csv", .....

5ヶ月 前 | 0

| 採用済み

回答済み
Merge the multi-columns, multi-rows in one column, one row
var = ["filename", "xmin", "ymin", "xmax", "ymax"] T = { "Japan_000001_jpg.rf.7b3ecaac169c998a18815a31934dbbea.jpg", 0, ...

5ヶ月 前 | 0

回答済み
Trying to change the y axis range in fplot
syms s a b c d e f n10 = a + (b*s) + c*(s^2) + d*(s^3) + e*(s^4) + f*(s^5) n10_d1 = diff(n10,s) n10_d2 = diff(n10_d1,s) A = ...

5ヶ月 前 | 0

回答済み
How to find the maximum value between two indices in an array?
Without yor data and complete code, this is a guess: mode2a = 200; % frequency lower bound (Hz) mode2b = 600; % frequency uppe...

5ヶ月 前 | 1

| 採用済み

回答済み
How to add tolerance to iteration with if statement
x(1,1)=0; %Initial guess, x=0 y(1,1)=0; %Initial guess, y=0 z(1,1)=0; %Initial guess, z=0 R=0.3; %relaxation factor f...

5ヶ月 前 | 0

| 採用済み

回答済み
Why is my plot blank
P0=300; %power of the heater n=50;% amount of gas (mol) M=28; % Molar mass of Nitrogen gas m=n*M;% m is the mass of the gas(g...

5ヶ月 前 | 0

| 採用済み

回答済み
Bandpass power spectrum density issue
You need fs >2*f_upper. Try fs = 80GHz Wx = 50*10^6; % Signal bandwidth Tx = 1/Wx; % Symbol ti...

5ヶ月 前 | 0

| 採用済み

回答済み
Assign variables from a solve solution
syms k_x Kr_x alpha_x c0=18.1499 alpha0=0.3491 g=9.81 omega=0.54 D2 = [1 2]; for i=1:length(D2) c_x=c0*tanh(k_x*D...

5ヶ月 前 | 0

| 採用済み

回答済み
How to add tolerance to iteration with if statement
% if a2(i+1,1)-a2(i,1)<0.1 % change the above to: if abs(a2(i+1,1)-a2(i,1))<0.1

5ヶ月 前 | 0

回答済み
How can I plot this function?
% parameters (use your values) lambdaR = 1; lambdaI = -1; d = 3; p = 2; x = -10:.1:10; w = sqrt(pi/2)*exp((-p^2-4*p*la...

5ヶ月 前 | 0

回答済み
spline interpolation between three values
P=[100 200 300]; T=[100 150 400]; density=[0.4,0.7,0.8]; Pq =100:300; Tq = spline(P, T, Pq); dq = spline(P, density, Pq)...

5ヶ月 前 | 0

回答済み
Named arguments in Matlab?
Use arguments block (additionaly for default value, type and size check. doc arguments for more details) self = Renderer(sampl...

5ヶ月 前 | 0

| 採用済み

回答済み
Check for incorrect argument data type or missing argument in call to function 'int'
Break long line codes into shorter ones using ... int is not a builtin function. use fix/floor/round/ceil instead (find out th...

5ヶ月 前 | 0

回答済み
how to save the values of DelL(T)
Lo = 44.46; Do = 18.76; alpha = 0.0002178 ; T = 36:1:180; DelL = Lo*alpha*(T-35); whos

5ヶ月 前 | 0

回答済み
Acess all last array elements withtin cells
You can use cellfun: precipitate{1}=[1,2,3,4;1,2,3,4]; precipitate{2}=[1,2,3,4,5;1,2,3,4,5]; precipitate{3}=[1,2,3;1,2,3]; ...

5ヶ月 前 | 0

| 採用済み

回答済み
I can't figure out why am not getting a plot on my code
If you put the script and local function ga in the same file, then local functions should be placed at the end of the files as s...

5ヶ月 前 | 0

回答済み
Finding the z transform
syms n omega f(n) f(n) = sin(omega*n) ztrans(f(n))

5ヶ月 前 | 0

| 採用済み

回答済み
inspection of linearity of data?
load(websave("check_linearity.mat","https://www.mathworks.com/matlabcentral/answers/uploaded_files/1167363/check_linearity.mat")...

5ヶ月 前 | 0

| 採用済み

回答済み
Why am I getting this error "not enough argument"
The number of input arguments is 6: for r =1:m H_MMSE(: , r ) = MMSEesti(ReceivedPilots (: , r ), TransmittedPilots (: , r...

6ヶ月 前 | 0

回答済み
Creating 3D array from 2D with increment
A = randi([1, 10], [3, 5]) C = A + reshape(0:2, [1,1,3]) % increment 0, 1, 2 for example

6ヶ月 前 | 0

| 採用済み

回答済み
Change sequence of consecutive trues to falses, in logical array
x=[true;false;false;true;true;true;true;true]' output = x; dx = diff(x(1:end-1)) output1 = output(2:end-1); output1(output1 ...

6ヶ月 前 | 0

回答済み
Add indicative labels to vector values
A1 = [ 1 ; 2 ; 3 ]; A2 = [ 4 ; 5 ; 6 ]; A_labeled = [A1 ones(size(A1)); A2 zeros(size(A2))]

6ヶ月 前 | 0

さらに読み込む