Beantwortet
help with a vibratonal analysis code
m1=53;% Mass m2=62.096; k=3.096e+006 ; % Stiffness c=150; % Damping % 4 x 4 matrices disp('4 x 4 Mass matrix'); mt=[c,0,m1...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Not able to integrate a matrix.
You missed to define some values, for generality i setted them to be symbolic variables. Also integral is a function for numeric...

fast 6 Jahre vor | 0

Beantwortet
Error using bar (line 172) X must be same length as Y.
Transpose y: x = 1990; y = [10 20 30]'; bar(x,y)

fast 6 Jahre vor | 0

Beantwortet
Obtaining Information from Reinforcement Learning while Training
The reward of each training episode is stored in the trainsStats struct which is the output argument of the train function. Insi...

fast 6 Jahre vor | 2

Beantwortet
How to display Y, Cb and Cr components of an image?
I used the inbuild example file peppers_RGB_tiled.tif, which has no 4rd dimension that could be cleared, so i used a try catch b...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
solve: Cannot find explicit solution but it have solutions, matlab's bug?
Congratulations, you have 1 solution of an infinite number of possible solutions - look to the borderline case of equal to: sym...

fast 6 Jahre vor | 0

Beantwortet
How to use fsolve when a nonlinear equation given two arrays of parameters (not the variables)? Why can't I use for loop?
Hi, you could try to vectorize your function in order to avoid for loops - here is a simple example: % Constant 1 as a row vec...

fast 6 Jahre vor | 0

Beantwortet
Question about GA and the fun.
Have a read here: https://de.mathworks.com/help/optim/ug/passing-extra-parameters.html In your case it should look somehow lik...

fast 6 Jahre vor | 2

| akzeptiert

Beantwortet
Help me I am unable to input array
They way you coded it needs to enter the single values one after each other: Enter elements of x=1 Enter elements of x=2 Ente...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Problems using LSTM with PPO Agent - Error: Invalid input argument type or size such as observation, reward, isdone or loggedSignals.
I finally could solve the issue. The problem was that there were 2 LSTM layers in the network, which led to the error: Caused b...

fast 6 Jahre vor | 1

| akzeptiert

Frage


Problems using LSTM with PPO Agent - Error: Invalid input argument type or size such as observation, reward, isdone or loggedSignals.
Hi, i implemented some RL agents (DQN, AC, PPO...) successfully with my custom environment function by using a feedforward netw...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
numerically solving an equation involving a matlab function with multiple variables
fun = @(x) blsprice(5,2,0.05,x,0.2) - 4; unknown_time = fsolve(fun,0.5)

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
I want to get 2d image from a sensor data.What matlab commands convert a dataset to images?
A = rand(100,100) imshow(A) or A = (randi(1500,100,100))-750 image(A)

fast 6 Jahre vor | 0

Beantwortet
How can I name matrices generated by a for loop as Z1,Z2,Z3 ...etc.
There are a lot of contributions (one of the best is here) which show why this way of coding is bad - use an efficient way by in...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
Problem with solve matrix
For me your code works: disp('An economic system composed of 3 sectors has the input-output matrix'); D=[0.5,0.1,0.1;0.2,0.5,0...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
ode45 solver code for solving a system of three coupled equations does not work
Your ode appears to be stiff - therefore i recommend to use ode15s instead of ode45. Also the behaviour of your system can be se...

etwa 6 Jahre vor | 1

| akzeptiert

Beantwortet
i want to read a csv file and store as rows and columns of a cell
fileID = fopen('FOM_HFA_Pavg.csv'); content = textscan(fileID, '%s','Delimiter','\t'); fclose(fileID); content = content{:}; ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
calculate and plot the following differential equation using ODE45solver.
y0=0.5; %intial value h=0.8; % t=[0 4]; %tspan [t,y] =ode45(@(t,y)-y+sin(t), t,y0); plot(t,y,'-o'); xlabel('time'); ylabel...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
using Q learning agent for continuous observation space
You also are allowed to write a custom critic function: https://de.mathworks.com/help/reinforcement-learning/ref/rlqvaluerepres...

etwa 6 Jahre vor | 0

Beantwortet
ODE Chemical Reaction Engineering with MATLAB
Your code works - you only need to call your function and plot the results: % Call the function and save results in W and Fa [...

etwa 6 Jahre vor | 0

Beantwortet
Calculate a letter from equation with letters.
You might want to do this: syms Xe Ye a1 a2 cos1 cos2 sin1 sin2 eq(1) = Xe == a2*(cos1*cos2-sin1*sin2)+a1*cos1; eq(2) = Ye ==...

etwa 6 Jahre vor | 0

Beantwortet
FZERO cannot continue because user-supplied function_handle ==> @(M)FindM(M,N(k),Q,wn(i)) failed with the error below.
Declare the code in findM_1P as a function and give it proper input and output arguments, to make it possible for fzero passing ...

etwa 6 Jahre vor | 0

Beantwortet
IMRT Beam angle optimization
You might want to read the dissertation from Mark Bangert, which includes a rich bibliography: http://archiv.ub.uni-heidelberg....

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Error in bin2dec ?
You are not doing wrong - just read the documentation: "...If the input argument D has a value greater than the value returned ...

etwa 6 Jahre vor | 1

Beantwortet
Combining 3 curves into 1 average
Here is a simple example: % fantasy times times1 = 1:10 times2 = 1:2:11 % fantasy values y1 = 2 * (1:10) y2 = 4 * (1:2:1...

etwa 6 Jahre vor | 0

Beantwortet
A problem while using lsqnonlin
Use the same random numbers for the same results: rng('default') d = linspace(0,3); y = exp(-1.3*d) + 0.05*randn(size(d)); ...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Not getting six coupled ODEs solution using bvp4c in MATLAB, Please help me
I used nested functions - for 2 of the constants you did not provide values: % Call the outer function finalprogramme %% Ou...

etwa 6 Jahre vor | 0

| akzeptiert

Beantwortet
Environment Reinforcment learning Matlab
See this link to the documentation: https://de.mathworks.com/help/reinforcement-learning/ug/create-custom-reinforcement-learnin...

etwa 6 Jahre vor | 0

Beantwortet
Custom Environment for Reinforcment learning
There is a step-by-step example in the documentaion: https://de.mathworks.com/help/reinforcement-learning/ug/create-custom-rein...

etwa 6 Jahre vor | 0

Beantwortet
Please tell me how to use ode45 code
You need to perform a inverse laplace transformation: num=134; den=[1 16 134]; x=tf(num,den) subplot(1,2,1) step(x) title(...

etwa 6 Jahre vor | 1

Mehr laden