Dongyue
MathWorks
Followers: 0 Following: 0
Feeds
답변 있음
Whileloop output calculation?
The condition x1>10 is always true, making this while loop infinite. Consequently, the loop will continue indefinitely without p...
Whileloop output calculation?
The condition x1>10 is always true, making this while loop infinite. Consequently, the loop will continue indefinitely without p...
1년 초과 전 | 1
답변 있음
Hi please help I can't run my code it says not enough input arguments line 3
res = pipe_velocity(1,2) function v = pipe_velocity(d, Q) A = pi * (d / 1000)^2 / 4; % Cross-sectional area (m^2) v...
Hi please help I can't run my code it says not enough input arguments line 3
res = pipe_velocity(1,2) function v = pipe_velocity(d, Q) A = pi * (d / 1000)^2 / 4; % Cross-sectional area (m^2) v...
1년 초과 전 | 0
답변 있음
convert math expression to matlab code
You can try MATLAB Optimization Toolbox Please go through the following link for more information: https://www.mathworks.com/h...
convert math expression to matlab code
You can try MATLAB Optimization Toolbox Please go through the following link for more information: https://www.mathworks.com/h...
1년 초과 전 | 0
답변 있음
i cannot access simulink fundamental courses
The issue is resolved now. As an alternative, you can use learning.simulink.launchOnramp('slbe') You can also access the cou...
i cannot access simulink fundamental courses
The issue is resolved now. As an alternative, you can use learning.simulink.launchOnramp('slbe') You can also access the cou...
거의 2년 전 | 1
답변 있음
How can I save each images in a loop for?
clear; close all; clc; for i = 1:5 img_name = ['img',num2str(i),'.jpg']; img = rand(25,25,3); imwrite(img,img_na...
How can I save each images in a loop for?
clear; close all; clc; for i = 1:5 img_name = ['img',num2str(i),'.jpg']; img = rand(25,25,3); imwrite(img,img_na...
거의 2년 전 | 0
답변 있음
'Simulink Fundamentals' course
please try programmatic launch: learning.simulink.launchOnramp('slbe');
'Simulink Fundamentals' course
please try programmatic launch: learning.simulink.launchOnramp('slbe');
거의 2년 전 | 0
답변 있음
Independence of two random variables having datasets
If two vactor x and y are linearly dependent, there should exist ax + by = 0, so you only have to check: clear; clc; result ...
Independence of two random variables having datasets
If two vactor x and y are linearly dependent, there should exist ax + by = 0, so you only have to check: clear; clc; result ...
거의 2년 전 | 0
| 수락됨
답변 있음
How can I display numbers in scientific notation but in magnitudes of 3 and to 3 significant digits?
classdef ScientificNotation properties(Access = private) sign; body; digs; num; ...
How can I display numbers in scientific notation but in magnitudes of 3 and to 3 significant digits?
classdef ScientificNotation properties(Access = private) sign; body; digs; num; ...
거의 2년 전 | 0
답변 있음
How to use comet function to show trajectory of two bodies simultaneously?
you can refer to the comet3n() function: https://www.mathworks.com/matlabcentral/fileexchange/49153-3d-comet-plot-of-multiple-o...
How to use comet function to show trajectory of two bodies simultaneously?
you can refer to the comet3n() function: https://www.mathworks.com/matlabcentral/fileexchange/49153-3d-comet-plot-of-multiple-o...
거의 2년 전 | 0
답변 있음
Generate random short fiber in matlab?
Please try this result = Generate_Fiber([0,1],[0,1],[0,1],0.5,2) function Fiber=Generate_Fiber(x,y,z,L,N) %input %...
Generate random short fiber in matlab?
Please try this result = Generate_Fiber([0,1],[0,1],[0,1],0.5,2) function Fiber=Generate_Fiber(x,y,z,L,N) %input %...
거의 2년 전 | 0
| 수락됨
답변 있음
NaN matrix and selection rows with 1
You can use readcell() function: data = readcell('your_file_name') After that, you need to do some data preprocessing, such as...
NaN matrix and selection rows with 1
You can use readcell() function: data = readcell('your_file_name') After that, you need to do some data preprocessing, such as...
거의 2년 전 | 0
답변 있음
Simulink: Set Stop Time from Simulation Input
You can use the following command to botain the end time of the simulation from MATLAB command window: get_param('mymodel1', 'S...
Simulink: Set Stop Time from Simulation Input
You can use the following command to botain the end time of the simulation from MATLAB command window: get_param('mymodel1', 'S...
거의 2년 전 | 0
답변 있음
Change time step during simulation in simulink
The sample time cannot be changed during a simulation. Please see this link for more info: https://www.mathworks.com/help/simuli...
Change time step during simulation in simulink
The sample time cannot be changed during a simulation. Please see this link for more info: https://www.mathworks.com/help/simuli...
거의 2년 전 | 0
답변 있음
Why my variable is not defined in this scope?
If the two conditions: if (d_k(i1) <= dR(end) && d_k(i1) >= dR(end-1)) and if (d_k(i1) <= dR(end-i2)) && (d_k(i1) >= dR(end...
Why my variable is not defined in this scope?
If the two conditions: if (d_k(i1) <= dR(end) && d_k(i1) >= dR(end-1)) and if (d_k(i1) <= dR(end-i2)) && (d_k(i1) >= dR(end...
거의 2년 전 | 0
답변 있음
hello, I am stuck at this part of my code
Hi Christian, I have updated your script, please check the attached file. BTW, I still recommend you to use the table instea...
hello, I am stuck at this part of my code
Hi Christian, I have updated your script, please check the attached file. BTW, I still recommend you to use the table instea...
거의 2년 전 | 0
답변 있음
Converting a string to a datetime array for the 29th February
If you do not specify the year, MATLAB will automatically view it as the current year. Since 2022 is not a leap year, you will g...
Converting a string to a datetime array for the 29th February
If you do not specify the year, MATLAB will automatically view it as the current year. Since 2022 is not a leap year, you will g...
거의 2년 전 | 0
답변 있음
无法求解不定积分
如果int无法计算表达式的积分,请检查以下原因: 反导数不以封闭形式存在。 反导数存在,但int找不到它。 如果int不能计算一个封闭形式的积分,它返回一个未解决的积分。 尝试使用以下方法之一来近似计算此类积分: 对于不定积分,使用级数展开。使用...
无法求解不定积分
如果int无法计算表达式的积分,请检查以下原因: 反导数不以封闭形式存在。 反导数存在,但int找不到它。 如果int不能计算一个封闭形式的积分,它返回一个未解决的积分。 尝试使用以下方法之一来近似计算此类积分: 对于不定积分,使用级数展开。使用...
거의 2년 전 | 0
답변 있음
Klassieren und Zählen der Werte eines Arrays || Classifying and counting the values of an array
LoadHorizons = [400 0; 396 0; 392 1; 400 0; 396 1; 400 1]; tbl = tabulate(categorical(LoadHorizons(:,1))); sigma = cell...
Klassieren und Zählen der Werte eines Arrays || Classifying and counting the values of an array
LoadHorizons = [400 0; 396 0; 392 1; 400 0; 396 1; 400 1]; tbl = tabulate(categorical(LoadHorizons(:,1))); sigma = cell...
거의 2년 전 | 0
답변 있음
Polar Histogram, Circular Bar Graph or Similar
Hi Luis, You can refer to the following answer to create a circular bar graph: https://www.mathworks.com/matlabcentral/answers...
Polar Histogram, Circular Bar Graph or Similar
Hi Luis, You can refer to the following answer to create a circular bar graph: https://www.mathworks.com/matlabcentral/answers...
거의 2년 전 | 0
답변 있음
Plotting using a for loop in Matlab and finding the highest three consecutive value, given imported spreadsheet table of 1x100 called 'P'?
Hi, the followed code could be easier to understand: P = rand(100,1); mx = -Inf; for i = 1:98 mx = max(mx, sum(P(i:i+2))...
Plotting using a for loop in Matlab and finding the highest three consecutive value, given imported spreadsheet table of 1x100 called 'P'?
Hi, the followed code could be easier to understand: P = rand(100,1); mx = -Inf; for i = 1:98 mx = max(mx, sum(P(i:i+2))...
거의 2년 전 | 0
답변 있음
Update graph edit text input
Hi, you need to add a callback function to the push button, which reads the value from the edit text and executes the step() fun...
Update graph edit text input
Hi, you need to add a callback function to the push button, which reads the value from the edit text and executes the step() fun...
대략 2년 전 | 0
답변 있음
How to make the live plot run in seconds?
Hi LuYao, you can try to use pause(1) in your loop, which can stop the iteration for 1 second each turn. For more details, pleas...
How to make the live plot run in seconds?
Hi LuYao, you can try to use pause(1) in your loop, which can stop the iteration for 1 second each turn. For more details, pleas...
대략 2년 전 | 0
답변 있음
Adding random noise in different timestep while numerical integration
Hi Thomas, You can use mod() function as a flag, to trigger the adding ramdom process. if mod(time, 0.04)==0 Matrix = Mat...
Adding random noise in different timestep while numerical integration
Hi Thomas, You can use mod() function as a flag, to trigger the adding ramdom process. if mod(time, 0.04)==0 Matrix = Mat...
대략 2년 전 | 0
답변 있음
Editing Source Code for Simscape Components?
Hi YY, You do not have to change the source code in this case. Please go through the link below for details about tunable p...
Editing Source Code for Simscape Components?
Hi YY, You do not have to change the source code in this case. Please go through the link below for details about tunable p...
대략 2년 전 | 0
답변 있음
Filtering a very noisy plot
Hi Christian, A simple example to create a lowpass filter is shown below. Hope this will be helpful: signal_original = rand([1...
Filtering a very noisy plot
Hi Christian, A simple example to create a lowpass filter is shown below. Hope this will be helpful: signal_original = rand([1...
대략 2년 전 | 0
답변 있음
Feedback Command in Matlab
Hi Harry, I think what you are doing is correct. Here's my explaination for each argument: 1. Kq, Actuator, Airframe an...
Feedback Command in Matlab
Hi Harry, I think what you are doing is correct. Here's my explaination for each argument: 1. Kq, Actuator, Airframe an...
대략 2년 전 | 0
답변 있음
System of equations and inequalities
Hi Luciano, Please try the following codes, where k and l are variables. For your example, k=2 and l=2: clear; clc; syms h1...
System of equations and inequalities
Hi Luciano, Please try the following codes, where k and l are variables. For your example, k=2 and l=2: clear; clc; syms h1...
대략 2년 전 | 0
답변 있음
How to find the corresponding date to each found maximum value?
Hi SaaraL, Please try the following code, and hope this will help: clear; clc; tt = timetable((1:79880)',0.1*(1:79880)',0.0...
How to find the corresponding date to each found maximum value?
Hi SaaraL, Please try the following code, and hope this will help: clear; clc; tt = timetable((1:79880)',0.1*(1:79880)',0.0...
대략 2년 전 | 0
답변 있음
Question on how to use Forward Euler to simulate double pendulum
Hi Zhukun, The following links will show you some examples of how to use MATLAB to simulate the double pendulum motion. Pleas...
Question on how to use Forward Euler to simulate double pendulum
Hi Zhukun, The following links will show you some examples of how to use MATLAB to simulate the double pendulum motion. Pleas...
대략 2년 전 | 0
답변 있음
How to form a matrix from a coding of a graph?
Hi Andrew, If you want to reshape the vector into matrix, you can use function reshape(), you can go through the documentatio...
How to form a matrix from a coding of a graph?
Hi Andrew, If you want to reshape the vector into matrix, you can use function reshape(), you can go through the documentatio...
대략 2년 전 | 0