Science topic
MATLAB Simulation - Science topic
Explore the latest questions and answers in MATLAB Simulation, and find MATLAB Simulation experts.
Questions related to MATLAB Simulation
I fabricated a supercapacitor which uses carbon as electrode material and found specific capacitance, cycle life, EIS studies, GCD curves, power and energy density.
Is it possible to simulate the same (fabricated electrode) using MATLAB Simulation.
i need to design a model with some specifications
To Design a Fuzzy Control FLC that uses the indirect field-oriented control IFOC approach to regulate the velocity of an IM motor please i need an urgent help and solution
For example, to classify the data in Python or such programs, we use 0001; 0010; 0100; and 1000 digits for four classes. Can we simply use 1; 2; 3 and 4 in MATLAB? This will help me diagnose if I have multiple classes.
Hello, can anyone guide me on "How to Interface DAC with FPGA using Xilinx System Generator?"
Anyone can share BLDC motor control MATLAB simulation file??
I am trying to plot 4 races on one polar plot using "hold on" command. the function I am using is "polar2". when plotting 2nd or 3rd trace, seems to create new axis (may be). the trace is extending.
Is there any other way to plot 2-3 plots in the same polar plot without using "hold on" command in Matlab?
I want to run an ODE system by varying a suitable parameter, suppose \alpha. Now I have divided the job into the corresponding worker and created a data file so that for each parameter \alpha, I need to copy a certain measure of the system into the data file. When I googled it and went through some documentation, I realized that using a single file only creates a route to a corrupt file. It is not a way to do that, and I need to create multiple files. I need to ask whether there is any way to create files with some exact name (must be in parallel programing) and scan data from all the files to create another data file that contains all the data.
I want to do MATLAB simulation for the MIAB welding process. In the process the arc play a very important role. So I want to understand the arc simulation in MATLAB. Kindly help me with that.
I have a simulation code for a Horizontal Washing Machine.
The code solves the equations of motions of the system by Matlab ode45 and plots the vibration response of the system at the transient state of performance.
In this code, the frequency (omega) is an exponential function of time, as it's stated below (and its diagram is attached to 'the question'):
-------------------------------------------------------------------------------------------------------------------------------------------------------
omega= (1-exp((-0.5)*t))*omega_0+(1-exp((-0.5)*heaviside(t-t1).*(t-t1)))*(omega_1-omega_0);
-------------------------------------------------------------------------------------------------------------------------------------------------------
ode command:
-----------------------------------------------------------------------------
[T,Y]=ode45(@snowa1,tspan1,initial_vector1);
plot(T,Y(:,1)-mean(Y(:,1)))
-----------------------------------------------------------------------------
The resulting displacement response is attached to the question.
It is desired to :
First, increase the frequency to omega_0 by exponential1
Then, increase it to omega_1 by exponential2
But 'the problem' is that:
the displacement response shows an unexpected increase in frequency at the beginning of the second exponential increase (it becomes 20 Hz, which is much larger than the maximum frequency in the simulation- 10 Hz).
Do you know what could be the reason for this response?
Any help would be gratefully appreciated.
please I am working on state estimation of power systems using the weighted least square and i have zero clue on how to go about it using MATLAB. I am using an IEEE 14 bus system. please i need help. Anyone has the complete research and project please kindly reach out.
Can the IMCOUNTOR image diagram in MATLAB be used to run on holograms as well?
The image below is an example of an activated sludge cell under a light microscope and the second figure is an example of another cell.
Reference:
Hi,
(I have asked this questions previously, but I believe it was too general. I have tried to be more specific here)
I am trying to establish an islanded microgrid with 2 inverters running in parallel to supply a single load. I want to use droop control so I can then adjust the power sharing between them.
I am struggling to get 2 inverters to synchronise. I can get them to supply the same voltage, but the currents work against each other in the load.
What I have tried:
1. Grid forming and Grid feeding. When I add the Grid feeding inverter, I can not control the voltage that it injects the current at. If I give it it a Reactive power reference, it will inject current into the grid at that power level, it doesn't regulate the voltage. Therefore, it pushes the voltage of the load up I get instability in the system.
2. Grid supporting Voltage x 2. I have tried to put 2 Grid supporting Voltage sources in parallel. The problem here, is that if each inverter supplies a different power, this then adjusts the frequency that is injects its power into the grid and the miss match between the two frequencies of the inverters causes instability.
3. Grid supporting Voltage and Grid supporting Current. This has the same issue as point number 1. As there is no way to pin the voltage to anything, it is simply a current source that cant control the voltage it injects at. This causes instability in the microgrid I created.
Am I doing something wrong ?
The following paper has exactly what I am trying to achieve, but I get different results:
Does anyone have a Simulink model of 2 parallel inverters supplying a load in islanded mode?
Attached is the model of the Grid Supporting Voltage inverters in parallel that I have been working on. You can see that the currents of each inverter are working against each other.
Thank you
Hi,
I am currently working on my PhD in Control Engineering. I have run into a brick wall and it has consumed months of my time. I understand the following:
There are 4 types of configurations for a power converter:
Grid Forming
Grid Supporting Current
Grid Supporting Voltage
Grid Feeding
I am using the following paper to try and establish a microgrid of parallel converter:
1. When I establish a Grid Forming power converter, I set the w and v of the grid. I am then using a second Grid Supporting Current power converter, but the voltage of the grid become unstable. I have read in other threads that Grid Forming power converters cannot run in parallel with any other converters. I assume this is why this started.
2. I then try to establish 2 Grid Supporting Current power converters to run in parallel with each other. However, there doesn't really seem to be a way that I can synchronise them. I can get them to run when the power on the droop controller is the same, therefore the w are both the same and they synchronise. I tried to switch one of them for a Grid Feeding power converter, again this did the same as in part 1, it adjusted the voltage and it became unstable.
3. All of the models I have come across take the inner current loop voltage readers before the Capacitor but after the Inductor, as in the paper mentioned above. However, Simulink gives me an error about zero crossings, when I override it the AC output has major distortion in it.
How can I create a Simulink model with two parallel converters to run together ?
My goal is to create two or more parallel converters providing a single load so that I can create a controller that provides stability under actuator attacks.
The other papers I have based this off are:
You can see from these articles that the current reading is taken before the capacitor bank.
Does anyone know if I can connect the attached DAQ (CASSY type) to MATLAB real time simulink for controlling purposes?
How can I have water-LiBr mixture properties in MATLAB library?
I would like to compare my algorithm (the improved LPA) with Louvain, infomap and CNM (fast greedy) algorithms (available in Mat lab toolbox community) that has been implemented on LFR dataset.
I confronted with a problem when I cannot use the outputs of the algorithms for NMI criteria.
I will gratitude everyone could guide me about the matter!
I am currently working on a project that requires the prediction of the oblique shear angle for an oblique cutting. The numerical iteration should continue until the chip flow angle converges within 10^-14
I'm working on Greenhouse Climate control Using the Fuzzy Logic Controller, so I'm searching for the mathematic model of Greenhouse structure, and the heater, cooler, and humifier transfer functions .
Hi
I intend to define a frequency domain objective function to design an optimal controller for Load-Frequency Control (LFC) of a power system. My purpose is to optimize this objective function (finding the proper location of zeros and poles) using meta-heuristic methods.
I will be happy if you share your valuable relevant and informative experiences, references and articles in this field including how to define and how to code.
Thanks
A multi-effect desalination–thermal vapor compression (MED–TVC) system consuming the waste heat from the gas power plant of the Sarcheshmeh Copper Complex is designed and optimized by a new approach that integrates two environments: a MATLAB simulator and macros for economic analysis. A heat recovery steam generator (HRSG) is used to supply the required heat for steam generation while harvesting the waste heat. The HRSG and MED–TVC systems are simulated using MATLAB, and their economic analysis is conducted using DEEP software. The gain output ratio (GOR) and the total annual cost of desalination are considered as the objective functions in a multi-objective optimization to achieve the highest GOR and the lowest total annual cost simultaneously. The multi-objective optimization is performed using nondominated sorting genetic algorithm-II (NSGA II). It is found that the heating steam temperature is more affected by the GOR than the other decision variables.
Hi everyone.
I have recently discovered an interest in digital communications, and stumbled upon a modulation technique called Media-Based Modulation (MBM) using RF mirrors. I have done some research on this, and would like to implement this in a SIMO wireless communication channel I designed in MATLAB. I am, however, struggling to get the correct result. I wish to generate the BER vs SNR curve, and investigate the error performance when compared to a regular SIMO system.
Here is my implementation so far:
----------------------------------------------------------------------------------------------------------------------------------------
%% simulate for number of receivers
figure,
Nr=2; % SIMO 1x2 System
%% Number of RF Mirrors
Mrf = 2; % 2 RF mirrors
Nm = 2^Mrf; % total number of Mirror Activation Patterns (MAPs)
%% Parameters
N=10^3; % Number of symbols to transmit
M=16; % QAM Modulation Order
%m = log2(M) + Mrf; %input bits from source?
k=log2(M);
snr=0:3:30; % signal to noise ratio
bit_errors = zeros(length(snr), 1); % <- Initialise BER vector
loop=10000; % Loop variable
%% Simulate over range of SNR
for i=1:length(snr) % Compute BER over SNR range
cur_bit_errors = zeros(loop, 1); % <- Initialise bit error vector
%% Monte Carlo loop
for l=1:loop % Simulation loop
% Input Signal
data=randi([0 M-1], Nm, N);
% Modulate Transmitted Signal
x=qammod(data, M, 'Gray');
% SIMO Freq.flat rayleigh fading channel with Media-Based
% Modulation - Nr x Nm channel fading matrix
% Theory says the MBM-transmit Unit chooses a fading vector h of
% size Nr x 1 from H based on the MAP selected.
H = (randn(Nr, Nm) + 1i*randn(Nr, Nm)) / sqrt(2);
% Multiply transmitted symbols with fading coefficients
% - Columns of h must to equal rows of x.
y1=H*x;
% add AWGN
y2=awgn(y1, snr(i));
% Effectively y=hx+n
% Maximum Receiver Ratio Combining
y3=H'*y2/norm(H)^2;
% ML Detection?
% According to Theory, must use exhaustive ML detection
%% Possible Code
%% for ii=1:M
%% for kk = 1:Nm
%% [dd xcap] = min(norm((y - h(kk)*x(ii)), 'fro')^2);
%% end
%% end
%% cur_bit_errors(l) = biterr(data, xcap);
% Demodulate Transmitted Signal
y4=qamdemod(y3, M, 'Gray');
cur_bit_errors(l)=biterr(data, y4); % Calculate Bit errors
end
bit_errors(i) = mean(cur_bit_errors)/(N*k); % <- Calculate mean BER
end
semilogy(snr, bit_errors, 'color', [rand rand rand]); % plot with logarithmic y-axis
axis([0 30 1e-5 1]); % Set axis dimensions
hold on;
grid on; % show a grid
xlabel('SNR [dB]'); ylabel('BER'); % label x- and y-axis
title('16QAM SIMO BER vs SNR');
legend('rx=2 SIMO-MBM');
------------------------------------------------------------------------------------------------------------------------------------------------------
The curve I am getting is a flat-line, which is obviously not correct. I was told by someone that the only change needed was that my rayleigh fading channel vector h needed to be a channel matrix of size Nr x Nm. However, this change produced a flat-line curve.
I have made some comments in my code to remember certain concepts learnt in MBM theory.
For example, the source supposedly provides an input vector of m = log2(M) + Mrf bits, where Mrf bits are used to select the Mirror Activation Pattern (MAP) index 'k' for the RF mirror selector, and log2(M) bits are used to select a Gray-coded MQAM symbol, 'x' subscript q, for example.
Secondly, the channel fading vector becomes a Nr x Nm channel fading matrix, where Nr is the number of receivers in the channel, and Nm=2^Mrf is the total number of MAPs available. According to theory, the MQAM symbol x is transmitted over a fading channel selected from the MBM-Transmit Unit MAP with a channel fade given by the NR × 1 vector 'h' in the presence of AWGN. In my implementation, I simply multiplied the channel matrix by 'x' as shown and made sure that the column length in 'H' was equal to the row length in 'x', however, I am not sure if this is correct or not.
Thirdly, for detection, theory says that ML detection must be used, where
[xcap kcap] = min(norm((y - h*x, 'fro')^2); q ∈ [1 : M], k ∈ [1 : Nm]
which is the frobenius norm squared of 'y' subtract the channel fading vector 'h', subscript 'k' raised to 'm' selected by the kth MAP multiplied by 'x' subscript q. For my SIMO system, I used the 'qamdemod' function, and the code ran and generated the BER vs SNR curves, however this may not be the correct implementation in this case, so any takes on this is appreciated.
I would really appreciate any help anyone can offer me in trying to introduce MBM into this system. This topic really piqued my interest, and I am eager to learn as much as I can about it.
I tried to reproduce the interband conductivity of Graphene using the Kubo formula using Matlab. but the result didn't match with my sourcebook. what is wrong with my Matlab code? the results are very small related to the book. The formula, Matlab code, my results, and the book results are attached. fd is equal to 1/(exp((eps-muc)/KbT)+1) and sig0=pi*e^2/(2*h) , e is electron charge, h is Planck constant. muc is fermi energy level and here is equal to 0.6 ev. in the last image, the imaginary part of the interband conductivity is shown with dashed line.
I have used numerical integration and I think the problem is occurred from there.
I) How do I measure common mode voltage in matlab simulation?
II) After knowing the value of the common mode voltage, how do I see the behavior of this voltage together with the stray capacitance generating the leakage current?
III) For example, with this circuit (a), where would I have to measure to get these graphs of common mode voltage and leakage current (b)?
Figures: M. N. H. Khan, M. Forouzesh, Y. P. Siwakoti, L. Li, T. Kerekes and F. Blaabjerg, "Transformerless Inverter Topologies for Single-Phase Photovoltaic Systems: A Comparative Review," in IEEE Journal of Emerging and Selected Topics in Power Electronics, vol. 8, no. 1, pp. 805-835, March 2020, doi: 10.1109/JESTPE.2019.2908672.
Hello everyone,
I am having stability problems implementing anisotropic material in my FDTD code and I cannot find where I am doing it wrong. I'm trying to implement the code for anisotropy in the XY direction and have sigma-xy and sigma-yx as my off-diagonal elements in the electrical conductivity matrix. also, I attach a picture of the updating equation for Ex both in half-space and matrix form to understand how it updates the Ex. In the code, I calculate the fields caused by anisotropy in an auxiliary matrix where the anisotropic material exists and add that to the main updating equation. I also attach the portion of the code used for updating the Ex to give me your opinions about my approach. Any help or hint would be greatly appreciated.
By the way, I have checked the equations and the code for any flaws multiple times, but nothing was typed incorrectly and everything was fine concerning the possible mistakes in writing.
Hi
How can i correct this error?? I think it's about matrix dimensions for port e.
Error in default port dimensions function of S-function 'FeedbackLinearization/Controller'. This function does not fully set the dimensions of output port 2
I'm running a simulation based on feedback linearization control method that comes from a paper attached below.
the model is also attached.
Anyone help me, helps a poor student. (if it makes sense lol)
how to calculate number of computations and parameters of our customized deep learnig algorithm designed with MATLAB
Hi. I'm doing a classification problem using deep learning. so that need to train 512x512 images but when i trained my algorithm shows out of memory error. I want to know how much memory size needed to train 512x512 images in MATLAB.
Hello,
I am working on my research and looking for an IoT simulator environment or software to provide the following capabilities or provide integration to other tools to provide capabilities.
I have already looked at NS-3 briefly and NetSim.
- IoT network system with simulation of different IoT architecture such as Star or Mesh
- AI including Reinforcement learning capabilities
- Monitoring and capturing network activities/packets
- Cyberattack scenario simulation
- Possible 5G capabilities
Appreciate your help,
Thanks,
Anthony
I can not understand at which stage the problem is?I want to design motor for 200hp
I want to carry out particle in cell simulation for Electron Cyclotron Resonance (ECR) plasma for the in-house developed reactor at our laboratory. Kindly share any freely available PIC code with instruction guidelines so that I could do the simulation. I am using windows platform. I don't have any information on how to do the simulation. So if there is any tutorial, also share that. Can it be done by MATLAB coding also?
Looking forward for your guidance.
Hello everyone;
I'm learning Matlab software and I'm looking for the best ways to do it. Please help me and suggest me good books and courses or everything you know about it.
thank you a lot.
Hi, I've been an experimentalist throughout my career and I want to add to my knowledge and expertise in Materials Science by delving into computation, modeling and simulation. However, I'm very confused about where to begin as it appears that field of modeling and simulation is quite vast and expansive. If I had to choose a starting material type, I'd say composites and modeling of failure modes of composites. Can anyone guide me on where to begin? I'm a complete novice when it comes to anything computational. Where do I begin, if I'm starting from scratch.
The edges of the triangular elements(Delaunay triangulation) are springs. And the equation of motion at each nodal point is that of a damped SHM under application of a certain shearing force. I have a potential energy function for the system that needs to be minimised to attain the final equilibrium shape under the constraints of conserved surface area and volume. Kindly refer to the 4th chapter in the attached book (modelling of single RBC).
Hello
My colleagues and I intend to implement a real-time controller. So that a simple real first-order system is controlled by a controller designed in MATLAB/Simulink environment (Rapid Control Prototyping). We would be grateful if you could help with the following:
Is this possible with the help of dSPACE devices? And in that case, with what tools? For example, is the DS1202 MicroLab suitable by itself?
In general, what configuration is proposed for such a system in real-time modeling? (In the academic field)
We would also be grateful if you could suggest an example (project, article, book, schematics, etc.) in this regard. Unfortunately, with so much searching, most of what I found was just PWM generating for power electronic converters.
We are also interested in any advice and experience you have had in this field.
Thanks & Regards.
I have designed 17 level 3 phase CHB MLI. Giving THD less than 5% for R and RL load. But when I apply it to induction motor load, I can see a voltage spike (to max volt) near each zero crossing. ( For each phase voltage). Which increases THDv to 30%. What parameters of motor may contribute to this?
I am involved in small project that involves houseload and renewbles like PV , energy storage system & electric vehicle connected to house ! The challenge is to optimize the the load and find the right time for the EV to charge using matlab simulation . what is the best optimization algorithms for such problems involving load and stuff ? Any reference papers SUGGESTING THE SAME would be appreciated .
Thanks !
Hello. Can anybody help me about using iwgdx inorder to linking matlab and Gams. matlab give me the error : 'Undefined function for input argument of type 'char' '. I can use wgdx and rgdx but iwgdx and irgdx make error.
The problem is this: there is model of robot, created in Simscape.
And knee of this robot is made of "pin-slot-joint", which allows one transnational and one rotational degree of freedom.
In transnational motion, it is imposed the stiffness and damping factor, which gives influence also to rotational torque.
My aim is to write optimization or control algorithm in such a way that this algorithm should provide such stiffness(in linear direction), which will reduce the rotational torque.
By the way, rotational reference motion of knee is provided in advance(as input), and appropriate torque is computed inside of the joint by inverse dynamics.
But to create such algorithm, I have no deep information about block dynamics, because block is provided by simscape, and the source code and other information is hidden.
By having signals of input stiffness, input motion, and output torque, I need to optimize the torque.
I will be truly grateful if you suggest me something.
(I tried to obtain equation, by using my knowledge in mechanics, but there are lots of details are needed such as the mass of the joint actuator, it's radius, the length of the spring and etc. AND I HAVE NO THIS INFORMATION.)
If you suggest me something, I will be truly grateful.
I'v used some matlab functions (based on mfiles) in my simulink. In order to decrease simulink running time I want to replace these blocks with a new toolbox.
my project is power quality and harmonic analysis ubder balancee load conditions under 0-2 Khz.
i was asked to measure each harmonic up to 2 kHz at different power levels and THD. i made a multidrive system upto 20 drives using Dipde rectifier and nonlinear loads
Change the grid impedance (1%, 5% and 15% base impedance) and see the differences.
so what frequency should i take my source and grid impedance values?
What does upto 2khz mean??
Do i keep my source at 2 khz ?
Base radius is the interface of the liquid and the solid surface. Contact angle is just the angle a droplet makes with the surface at the triple point.
Hi , i am stuck in trying to change the orientation of the frames in simscape multibody. I am trying to specify motion to the joints in a constrained way for which i need the orientation of the frames of the follower and the base at the joints to be same. How should i proceed in achieving the task ?Any suggestions would be helpful .
Thank You.
[Images are attached at bottom]
I am currently working on a buck converter controlled by two different control methods, Reinforcement learning applied to find PID values & a lead-lag compensator. The controllers are designed and perfectly fit the transfer function system but once applied to the circuit system things go astray.
As can be seen from the image below of the graphs (1) and (2) show to be outliers in comparison to there transfer function counterparts.
I do not know why the disparities are occurring since the transfer function system and circuit system are not far off one another. I can provide the proof of this if wanted. I can supply the Simulink file also if wished. Any help in the right direction is appreciated. I currently think integral windup may be taking place but I am not sure.
Thanks in advance
HELLO GUYS,
I am trying to simulate Matlab 2013a Simulink model with Psim 12.0.4 demo version on Windows 10 using Simcoupler module. When I run this model, I get the following error:
Errors:
-->> Error Evaluating 'OpenFcn' callback of S-function block (mask) 'PSimModel/SimCoupler'.
-->> Undefined function "PSimDialog' for input arguments of type 'char'.
Any solution for this problem? Thanks in advance.
I want to design an Analog Lowpass Filter for 50/60 Hz signal in Simulink. Which block should be preferred? How to find out Passband Edge Frequency, Stopband Edge Frequency, Passband and Stopband Gain?
I have designed an FIR filter which discards the high frequency noise. I have tested the functionality through simulation (MATLAB). Now I wish to quantify this, that how good is my system and get results which I can compare with existing literature. Can someone describe a few parameters (preferably with mathematical definition) on basis of which I can do this.
I have a MATLAB code for point to point based new LPWAN system and evaluated its BER performance. Can I use the same code with some modifications to find its sensitivity?
Hi
Good time
How can I write MATLAB simulation code to define a distributed MIMO system?
I have two base stations and one user and I have trouble determining the size of H = [H1(d1); ... ;Hl(dl); :::;HL(dL)] is the
N*ML channel matrix, which includes small scale and large
scale fading
N=3 Number of MS antennas
M=4 Number of BS antennas
L=2 Number of BSs
this system configuration is (N;M;L).
Should it be used to specify dimensions?
Thank you very much if anyone can help me.
Hi. I have calculated UR10 dynamic in MATLAB and C,G and D matrix of Euler-Lagrange equation. but I don't know how can I verify the results? that C,G and D are correct?
Dear sir,
I am started my work for wireless power transfer in ev battery charging, so I request you to any please help us sir, i want some clarification i.e
1. What is the relation between cofficient coupling and distance between coil
2. How to find efficiency in without adding any compensation.(after that I will add all possible compensation technics)
3. In MATLAB simulation coil means linear transformer or mutual coil?
4. So I want small basic MATLAB model sir please any one please send to (bhavsingh205@gmail.com) sir
Thank you sir 🙏🙏
Hi,
I'm in implementation phase on my thesis. But I'm in real trouble now. After downloading the codes of my reference papers, I was trying to study them to understand. but can't understand anything. So, I bought a book about basic knowledge of MATLAB. But I couldn't understand most of the things either.
Now I'm totally lost and afraid that, I'll not be able to complete my thesis in time. So, anyone can please help me with this, it will be grateful for me.
So, if there is any good tutorial book about MATLAB for beginner's, please let me know.
Or, if there is any alternative software to do simulation of massive MIMO for 5G, also please let me know.
By the way, I'm trying to implement a scheduling algorithm to massive MIMO antennas for connecting UEs and evaluate their performances.
Thanks in advance.
What I understand is while applying continuous control to a continuous-time system in MATLAB simulations, actually the control is being applied in discrete manner inherently due to the nature of simulation . So inherently there is some sample time, my question is how can I change that inherent sample time and give sample time as per my desire .( I am working in simulink model and not writting MATLAB code). So please tell in simulink how can change the sample time of this natural discretization of the continuous time control.
Does anybody have the MATLAB/Simulink codes/model files to simulate the process of locating faults in high power transmission lines using wavelet transform?,
I'm trying to help a friend with his thesis for the moment, more precisely with the simulations, but I'm not very good at electrical engineering jargon/stuff to begin with and it's taking me too long.
I'm trying to simulate a simple DC circuit breaking circuit in Simulink and I'm still looking for a method to do that. Here I have attached the simple circuit diagram. really appreciate it if someone could mention any suggestions regarding this.
Thank you.
I have a problem with CANON functions of different Matlab versions (e.g. 2007b, 2010b, 2011a) returning inconsistent results for the same call parameters (sysd = canon(sysd0,'modal'):
- the input/output relation stays the same - OK.
- the diagonal A-matrix is permutated slightly - still OK,
- the B and C matrices differ significantly.
I undersdand the modal decomposition has in multiple solutions, however, as far as I know, there is no useful control over the CANON function realization. Furthermore in newer Matlab versions the canon function calls p-type subfunctions which makes them inaccessible.
The obtained model is being used for tuning of predictive controller. Different B-matrix subsequently yielding significantly different results for certain set of tuning weights.
I have the original data generated using Matlab 2007. As I want to replicate it, and further provide public the code for performing a benchmark test, I need to have the CANON function to return consistent results regardless of the Matlab version used... Or find an alternative way defining/norming the B & C matrices afterwards
Is there any way to get consistent modal decomposition?
Hi everyone,
I have some variables in my code that are a function of other variables. For example assume that Q is a variable which is a function of q1,...q4. ( Q= f(q1,q2,q3,q4) ).
When I calculate Q, since its characters exceed 25000, I have to store it in a text file. When I copy the obtained Q value in a word document, I see that it exceeds 1300 pages (yes, one thousand and three hundred pages)!!
When I want to copy this text file in a Matlab script file it gives me an out of memory error. I need to use the Q in every iteration of my code and in each iteration q1,...q4 change.
How can I use such a big value in my code?
I have noticed my battery SOC keep on increasing even before I close the switch between Constant current source and battery ! Any idea why this is happening ? Tried manually deleting the connection between CC source and battery then it's staying at same soc and no battery voltage rising happens.
Attached model and result waveforms screenshot
Hello everyone, I have a question about artificial intelligence in MATLAB.
Can you help me, to improve the accuracy of an artificial intelligence model for test data in MATLAB software?
(while the accuracy of this model for train data is great)
Thanks
I am doing my project work in snowmelt runoff modelling. I have collected a Matlab code which I found very difficult to understand due to its complexity.
Dear All
There is 1-DOF Series Elastic Actuator(the scheme and state equation is given in the image). A=[0 1; -K/m 0] B= [0 -1/m]*F
where K is the stifness constant of the spring, m is the mass of joint, x is the distance, done by spring.
Could you give me the suggestions on how to write the controller, which gives proper value of spring constant(K) according to the desired(reference) distance, which must be passed by spring. It is necessary to highlight that the control input force is constant and distance can be controlled only by modifying the value of spring constant.
My previous idea was to apply adaptive MPC controller(with Kalman Filter or System Identification).
But the problem is that the value of stiffness constant, is located in "A" matrix, and it must be treated as "INPUT" variable, and not as variable with disturbance or nonlinear one.
P.S. It also didn't work with Linear Function.
Thank You in advance.
When we increase the line width of graph, we use plot(x,y,'LineWidth',2). Similarly I want to increase the line thickness in Membership function. How to write in plotmf() in MATLAB ?
I am doing my MSc thesis on base isolation of structures with variable curvature friction pendulum systems. I have downloaded the benchmark problem for base isolated buildings and everything is fine. However, the file which contains the nonlinear analysis algorithm of the building is in DLL format and I cannot open and edit it for my new bearing type.
My Matlab version is R2013b. I also tried some lower versions, but that did not work.
Please let me know how I can solve this problem. I really appreciate your assistance.
I fit my data in MATLAB with a function and I can see the results and coefficients in the command window. I need this coefficient in order to continue with my codes, but
I can't input this coefficient in my codes, or I can't use the result in my codes.
Any recommended URL or idea , that explains how to read encoder via Arduino IDE and then use these readings in MATLAB simulation to be used as a feedback compared with the desired speed and direction of a DC Motor Encoder in a control loop
Many thanks for sharing information in this regards