Feeds
답변 있음
How to plot a string signal/array?
In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the ...
How to plot a string signal/array?
In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the ...
대략 1개월 전 | 1
| 수락됨
답변 있음
The Parameter of ODE is not Updated When the EventCallback Function is Called
I have solved this isssue with the following odeEvent object definition: E = odeEvent("EventFcn",@impactEvent,"Direction","asce...
The Parameter of ODE is not Updated When the EventCallback Function is Called
I have solved this isssue with the following odeEvent object definition: E = odeEvent("EventFcn",@impactEvent,"Direction","asce...
대략 2개월 전 | 1
질문
The Parameter of ODE is not Updated When the EventCallback Function is Called
I was simulating ODEs which incorporate additional parameter (ydot = f(t,y,P)). There is an event occurs in the simulation proc...
대략 2개월 전 | 답변 수: 1 | 1
1
답변질문
How to Output Updated Parameters Value in ode Integration Process When the odeEvent is triggered ?
I was working on multi-body systems collision simulation utilize ode MATLAB function and odeEvent function. The impact between ...
대략 2개월 전 | 답변 수: 1 | 0
1
답변질문
How to Generate Smooth Transitional Trapezoidal Signal in Simulink
Hi, everyone. I want to generate a custom signal demonstrated as follow image in Simulink, I have tried the Signal Editor Block,...
9개월 전 | 답변 수: 1 | 0
1
답변질문
Changing the Topic Name in DDS Dictionary have no effect in AutoGenerated XML file
Hello, everyone. I want to create the DDS Application with DDS Blockset. I have changed the Topic Name in DDS dictionary which...
10개월 전 | 답변 수: 1 | 0
1
답변질문
How to configure ip address/port with DDS Blockset
I have build the DDS application shapesdemo.exe with DDS Blockset. I have test the communication between shapesdemo.exe with Op...
10개월 전 | 답변 수: 1 | 0
1
답변질문
FastDDS ShapesDemo Can not Communicate with DDS Blockset ShapesDemo
I followed the steps illustrated in DDS Blockset ShapeExample.mlx file and have build the shapesdemo.exe successfully. I first s...
10개월 전 | 답변 수: 2 | 0
2
답변답변 있음
Parse error at x
The error message shows that there is a unrecognized varialble x_initial. You should initialize it. x_initial=[.5;.5;.5];
Parse error at x
The error message shows that there is a unrecognized varialble x_initial. You should initialize it. x_initial=[.5;.5;.5];
11개월 전 | 0
답변 있음
Trouble with handling values in anti-diagonal of a square matrix
diagVal=8; otherVal=1; nrows=8; if mod(nrows,2) % odd A=(diagVal-otherVal)*eye(nrows) + (diagVal-otherVal)*fliplr(eye(...
Trouble with handling values in anti-diagonal of a square matrix
diagVal=8; otherVal=1; nrows=8; if mod(nrows,2) % odd A=(diagVal-otherVal)*eye(nrows) + (diagVal-otherVal)*fliplr(eye(...
12개월 전 | 1
답변 있음
Hello, I have a cell array with the list of files I would like to delete. However I would not like to use a for loop to loop through each file to delete it.
maybe you can use cellfun. Files={'1.txt','2.txt','3.txt'}; cellfun(@delete,Files)
Hello, I have a cell array with the list of files I would like to delete. However I would not like to use a for loop to loop through each file to delete it.
maybe you can use cellfun. Files={'1.txt','2.txt','3.txt'}; cellfun(@delete,Files)
12개월 전 | 0
답변 있음
Solving matrix equation in Matlab,
Using vectorization operator vec, which transfer a matrix to a column vector through stacking matrix's columns vertically. There...
Solving matrix equation in Matlab,
Using vectorization operator vec, which transfer a matrix to a column vector through stacking matrix's columns vertically. There...
12개월 전 | 0
| 수락됨
답변 있음
Making loop for a function 'xlsread'
xlsread is not recommended, you can use readtable/readmatrix/readcell depend on what type of data you want to read. The followi...
Making loop for a function 'xlsread'
xlsread is not recommended, you can use readtable/readmatrix/readcell depend on what type of data you want to read. The followi...
12개월 전 | 1
질문
Where is the Location of CMakeLists File When I Build Simulink Model With CMake?
I want to build the shapesdemo Model which is incorporated in DDS Blockset Examples. I follow the steps illustrated in accompani...
12개월 전 | 답변 수: 2 | 0
2
답변질문
CMake Error When Building DDS Blockset shapesdemo Example Model
I want to build the shapesdemo Simulink Model which is incorporated in DDS Blockset Examples. I follow the steps illustrated in ...
12개월 전 | 답변 수: 0 | 0
0
답변질문
How to implement Ethernet Communication in Simulink Desktop Real-Time
I want to use Ethernet Communication within Simulink Desktop Real-Time. But I do not find corresponding I/O block in Simulin...
대략 1년 전 | 답변 수: 2 | 0
2
답변답변 있음
How to take the mean of each four adjacent position in a matrix?
A=randi(10,1536,2048); % test Matrix M=zeros(768,1024); % result Matrix for row=1:768 for col=1:1024 M(row,col...
How to take the mean of each four adjacent position in a matrix?
A=randi(10,1536,2048); % test Matrix M=zeros(768,1024); % result Matrix for row=1:768 for col=1:1024 M(row,col...
2년 초과 전 | 1
| 수락됨
질문
Can not create MATLAB string without MATLAB runtime being initialized.
I create a .NET assembly using a function written in MATLAB. When I want to create a MATLAB String using MWStringArray Class, it...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
expression error in Documentation
I think the expression in the image shown below should be , whose derivative is equal to ! Documentation Link
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
importrobot but can not show visual geometries.
I try to import a robot model by using importrobot function with the input is a Simscape Multibody model. However, when I s...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
MATLAB function cross can be applied to symbolic object but Documentation does not explain?
syms x y z vec1=[x y z]; vec2=[x y z]; cross(vec1,vec2)
대략 4년 전 | 답변 수: 1 | 0
1
답변질문
How to build dynamic model in SimMechanics ?
I want to know what method is used by SimMechanics to build dynamic model. Maybe Newton-Euler Method or Lagrangian Form...
거의 5년 전 | 답변 수: 1 | 0
1
답변답변 있음
How do i find a maximum elements in a specific row ?
A=[1,2,3;4,5,6;7,8,9]; M=max(A(2,:))
How do i find a maximum elements in a specific row ?
A=[1,2,3;4,5,6;7,8,9]; M=max(A(2,:))
대략 5년 전 | 1
| 수락됨
답변 있음
rand command give different answer
All the random number functions, rand, randn, randi, and randperm, draw values from a shared random number generator. Every time...
rand command give different answer
All the random number functions, rand, randn, randi, and randperm, draw values from a shared random number generator. Every time...
대략 5년 전 | 0
답변 있음
How we can generate generate a noise signal from gauss distribution ??
This is a example for generating a bivariate normal distribusion which is a duplicate of MATLAB Documentation. Maybe it can help...
How we can generate generate a noise signal from gauss distribution ??
This is a example for generating a bivariate normal distribusion which is a duplicate of MATLAB Documentation. Maybe it can help...
대략 5년 전 | 0
답변 있음
how to fix this error matrix dimension must agree
The p1 matrix is 1x100. nerst(:) will turn a matrix nerst which is 1x100 to 100x1. A matrix with size of 1x100 can't | with ...
how to fix this error matrix dimension must agree
The p1 matrix is 1x100. nerst(:) will turn a matrix nerst which is 1x100 to 100x1. A matrix with size of 1x100 can't | with ...
대략 5년 전 | 0
답변 있음
hello everyone, i am a noob using matlab. please help me i have an equation and 2 unknown variable
The equation μ=(μmax*Cs)/(Ks+Cs ) can be converted to μmax*Cs-Ks*μ=μ*Cs. μ=[0.011;0.059;0.053;0.149;0.125]; Cs=[430;428;...
hello everyone, i am a noob using matlab. please help me i have an equation and 2 unknown variable
The equation μ=(μmax*Cs)/(Ks+Cs ) can be converted to μmax*Cs-Ks*μ=μ*Cs. μ=[0.011;0.059;0.053;0.149;0.125]; Cs=[430;428;...
대략 5년 전 | 0
답변 있음
How can I iterate all three cases at once in one script?
Maybe you can use a for loop. You can store functions g1(x), g2(x), g3(x) as a cell array. Such as g1=@(x) sqrt(2*x+3); g2=@(x...
How can I iterate all three cases at once in one script?
Maybe you can use a for loop. You can store functions g1(x), g2(x), g3(x) as a cell array. Such as g1=@(x) sqrt(2*x+3); g2=@(x...
대략 5년 전 | 2
| 수락됨
답변 있음
Hello. I have to write a function called occurrence that tests whether a character exists in a string. If it is present, display true and the position (index) of the character. If it is not present, return inf. it gives me an error in line 2. help?!?
function find_letter(L, string) n= length(L); not_found = true; for k = 1:n if isequal(L(k), strin...
Hello. I have to write a function called occurrence that tests whether a character exists in a string. If it is present, display true and the position (index) of the character. If it is not present, return inf. it gives me an error in line 2. help?!?
function find_letter(L, string) n= length(L); not_found = true; for k = 1:n if isequal(L(k), strin...
대략 5년 전 | 0
| 수락됨
답변 있음
How to integrate this function numerically?
You can use Euler formula. V(n+1)=V(n)+h*f(R,V(n)), which f(R,V) is the right side of differential equation. But you need to kn...
How to integrate this function numerically?
You can use Euler formula. V(n+1)=V(n)+h*f(R,V(n)), which f(R,V) is the right side of differential equation. But you need to kn...
대략 5년 전 | 1
| 수락됨