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
  • asked a question related to MATLAB Simulation
Question
2 answers
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.
Relevant answer
Answer
The electrode material I used is carbon-based, in such a case can I employ EDLC Matlab simulation model to simulate my supercapacitor?
  • asked a question related to MATLAB Simulation
Question
1 answer
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
Relevant answer
Answer
yes
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
Relevant answer
Answer
For machine learning classifiers, I suggest you keep the "binary" encoding of output data (in fact, you seem to use the "one-hot" encoding, since the corresponding binary numbers would be 001, 010, 011, 100).
In the one-hot encoding all class outputs are equally far away from the "origin", i.e. they are equivalent from the network's point of view. Assigning decimal numbers to classes, you force the network to predict "larger" values for some classes and "smaller" values for others, while the output scale does not carry any information in reality. I think this could lead to worse performance or slower convergence.
If decimal encoding helps some other stage of your workflow, you can of course transform the network outputs to decimal afterwards.
  • asked a question related to MATLAB Simulation
Question
3 answers
Hello, can anyone guide me on "How to Interface DAC with FPGA using Xilinx System Generator?"
Relevant answer
Answer
Aparna Sathya Murthy , I am using Basys3 FPGA Board and external DAC. I have the code for that DAC but how to connect DAC with FPGA? can you please share any detailed docs related to this?
Thank You
  • asked a question related to MATLAB Simulation
Question
2 answers
Anyone can share BLDC motor control MATLAB simulation file??
Relevant answer
  • asked a question related to MATLAB Simulation
Question
3 answers
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?
Relevant answer
Answer
Meenakshi Kohli When calling nexttile, give the span option to produce a plot that spans many rows or columns. Make a 2-by-2 arrangement, for example. Plot the plot into the first two tiles. Then, make a plot with one row and two columns.
hold off toggles the hold state to off, which clears all existing plots and resets all axis properties when new plots are added to the axes. The next plot added to the axes employs the initial color and line style determined by the axes' ColorOrder and LineStyleOrder parameters. This is the standard behavior.
Using tiledlayout or subplot, you may display numerous plots in various regions of the same window. The tiledlayout function was added in R2019b and gives you additional flexibility over your labels.
  • asked a question related to MATLAB Simulation
Question
1 answer
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.
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
  • asked a question related to MATLAB Simulation
Question
13 answers
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.
Relevant answer
Answer
I understand that the 4DOF system for the washer can be quite lengthy. However, I'm unsure if your question is a control problem. If it is, and the 4DOF mathematical model can be expressed in such form:
x' = f(x) + g(xFc(ω)
where
  1. f(x) = [f1(x), f2(x), f3(x), f4(x)]T and g(x) are the nonlinear terms in column vector forms that you derived from the Lagrangian method,
  2. Fc(ω) is the control force that represents a function of ω in vector form, and
  3. ω (omega) is the control input,
then I think it is possible to design the spin speed profile for the control input, ω, so that the desired responses of x can be achieved. If you want to design the profile, you need to at least understand the mathematical equation for Fc(ω). Do you want to regulate the spin speed at 300 rpm, 600 rpm, or 1200 rpm? Because I see only the signal oscillates within the dimensionless amplitudes ± 4×10–3.
I have plotted the signal according to your suggestion, and compared it with Mahdi's original signal. Note that if t1 > 5/τ, then exp(–τ·θ(t – t1)·t) ≈ 0 after t1, because exp(–0.5·t) has decayed to almost zero.
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
Relevant answer
Answer
I agree with Xingyu Zhou.
  • asked a question related to MATLAB Simulation
Question
4 answers
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.
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
3 answers
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
Relevant answer
Answer
Synchronization is to agree in time. So, in order to synchronize multiple sources such as the power inverters you have to choose the strongest one as the reference synchronization source. This source is better to be referenced to a crystal controlled oscillator for high stability.
Then every other inverter is to be synchronized by the reference taken from the microgrid as I proposed in the first part of my answer.
This means the local oscillator of the inverter must be synchronized to the reference by means of phase locked loop.
In summary my proposal is to take the strongest power fed to the grid is to be taken as a reference for all other source fed to the grid.
To synchronize any inverter to the grid please refer to the papers in the links:
Best wishes
  • asked a question related to MATLAB Simulation
Question
4 answers
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.
Relevant answer
Answer
Dear Sandford:
You can benefit from this valuable Link about your topic:
I hope it will be helpful...
Best regards....
  • asked a question related to MATLAB Simulation
Question
6 answers
Does anyone know if I can connect the attached DAQ (CASSY type) to MATLAB real time simulink for controlling purposes?
Relevant answer
Answer
It depends on your sample frequency, which is limited for performance of DAQ. another issue should be concerned is the number analog of a processing control system. the quality of data will be bad or real-time data might be good if you collect as much data in process as possible.
  • asked a question related to MATLAB Simulation
Question
1 answer
How can I have water-LiBr mixture properties in MATLAB library?
Relevant answer
Answer
One possibility would be to link Matlab with Refprop. More information can be found in the following sources:
GitHub - jowr/librefprop.so: Create a shared library from the Fortran sources provided by Refprop from NIST. This project provides an alternative to the refprop.dll that comes with the software. Please use the official instructions if possible
  • asked a question related to MATLAB Simulation
Question
4 answers
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!
Relevant answer
Answer
please provide me the complete solution of your problem . i am also stuck solving the same problem.
  • asked a question related to MATLAB Simulation
Question
1 answer
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
Relevant answer
Answer
I need too. If you got the answer, could you please to share to me?
  • asked a question related to MATLAB Simulation
Question
5 answers
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 .
Relevant answer
Answer
I hope that the following 5 papers are interesting
1-SE—Structures and Environment: A Strategy for Greenhouse Climate Control, Part I: Model Development
M. Trigui, S. Barrington, L. Gauthier
Journal:
Journal of Agricultural Engineering Research
Year:
2001
2-Review of Structural and Functional Characteristics of Greenhouses in European Union Countries: Part I, Design Requirements
B. von Elsner, D. Briassoulis, D. Waaijenberg, A. Mistriotis, Chr. von Zabeltitz, J. Gratraud, G. Russo, R. Suay-Cortes
Journal:
Journal of Agricultural Engineering Research
Year:
2000
3-Assessment of the greenhouse climate with a new packed-bed solar air heater at night, in Tunisia
Bouadila, Salwa, Lazaar, Mariem, Skouri, Safa, Kooli, Sami, Farhat, Abdelhamid
Journal:
Renewable and Sustainable Energy Reviews
Year:
2014
4-Mass-Heater Supplemented Greenhouse Dryer for Post-Harvest Preservation in Developing Countries
P. Akinjiola, Olutoye, Balachandran, Uthamalingam (Balu)
Journal:
Journal of Sustainable Development
Year:
2012
5-Greenhouse heating by solar air heaters on the roof
Joudi, Khalid A., Farhan, Ammar A.
Journal:
Renewable Energy
Year:
2014
  • asked a question related to MATLAB Simulation
Question
3 answers
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
  • asked a question related to MATLAB Simulation
Question
1 answer
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.
  • asked a question related to MATLAB Simulation
Question
1 answer
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.
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
Relevant answer
Answer
In simulation take the average of the pole voltages.
  • asked a question related to MATLAB Simulation
Question
9 answers
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.
Relevant answer
Answer
Dear Amin Pishevar, you are welcome and thank you for informing us.
Best Regards.
  • asked a question related to MATLAB Simulation
Question
3 answers
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)
Relevant answer
Answer
Hi,
file name "sfun_ abcaaaaa.c" is not available in the folder mentioned.
  • asked a question related to MATLAB Simulation
Question
4 answers
how to calculate number of computations and parameters of our customized deep learnig algorithm designed with MATLAB
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
10 answers
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.
Relevant answer
Answer
Dear Srinivas:
For classification and regression tasks, you can train various types of neural networks using the trainNetwork function.
i.e. you can train:
-- a convolutional neural network (ConvNet, CNN) for image data.
-- a recurrent neural network (RNN) such as a long short-term memory (LSTM) or a gated recurrent unit (GRU) network for sequence and time-series data
-- a multilayer perceptron (MLP) network for numeric feature data.
You can train on either a CPU or a GPU. For image classification and image regression, you can train a single network in parallel using multiple GPUs or a local or remote parallel pool. Training on a GPU or in parallel requires Parallel Computing Toolbox™. To use a GPU for deep learning, you must also have a supported GPU device. For information on supported devices, see GPU Support by Release (Parallel Computing Toolbox). To specify training options, including options for the execution environment, use the trainingOptions function.
When training a neural network, you can specify the predictors and responses as a single input or in two separate inputs.
Thus, the entirety of this process depends mainly on the properties of these two hardware (cpu or Gpu).
I hope it will be helpful..
With my best wishes ...
  • asked a question related to MATLAB Simulation
Question
11 answers
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
Relevant answer
Answer
Dear Anthony:
I agree with all the answers given and recommend it, but i would like to add the following:
Here's a list of the best IoT testing and Simuling tools:
1- IoTIFY:
aims to ease the life of IoT developers and testers by providing simulation as a service. Their platform lets you define a virtual device and specify the connection endpoint, and they will handle the running and scaling the simulation as you need.
Protocols: MQTT, HTTP REST or CoAP.
Pricing: Contact IoTIFY directly for a quote.
2- BevyWise IoT Simulator:
helps you test your cloud and on-premise MQTT Application for functional and load testing. You will be able to simulate tens of thousands in a commodity server. You will be able to develop and test all aspects of your IoT devices from servers to MQTT devices.
Protocols: MQTT, REST.
3- MATLAB Simulink:
help you design and prototype IoT applications such as predictive maintenance, operations optimization, supervisory control, and more.
Protocols: REST, MQTT, and OPC UA.
4- IBM Watson IoT Platform (IBM Bluemix):
it's a solution of various IBM Cloud services. The IoT platform lets you collect and analyze relevant product performance and usage data for your IoT enabled assets.  There are also add-ons that can be added to the platform such as Blockchain or Platform Analytics.
Protocols: MQTT and HTTP REST.
5- NeoLoad:
It's a great straight out of the box option for mobile load testing and IoT use cases. You can quickly and efficiently create tests that accurately represent your real users regarding network conditions, specific devices, and geographic locations. You will be able to record any native or otherwise mobile app direct recording from any device or emulator.
6- IoT Performance Testing Tools
LoadRunner:
supports a wide range of apps. It helps you drastically reduce the amount of time and skill required to simulate user transactions in load testing software. And with integrations with a lot of different IDEs and support for testing scripts it allows for continuous testing. LoadRunner also helps you identify performance bottlenecks by using seamless integrated real-time performance monitors.
I prefer this one ....
7- LOCUST:
is an open-source load testing tool that uses Python code. Locust supports running load tests distributed over multiple machines this allows for the simulation of millions of devices and users. It’s a tried and tested option and being open source and uses python makes it very accessible.
I hope it will be helpful...
With my best wishes...
  • asked a question related to MATLAB Simulation
  • asked a question related to MATLAB Simulation
Question
10 answers
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.
  • asked a question related to MATLAB Simulation
Question
11 answers
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.
Relevant answer
Answer
If you are fluent in general programming, the fastest way to learn Matlab language is https://learnxinyminutes.com/docs/matlab/
  • asked a question related to MATLAB Simulation
Question
6 answers
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.
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
4 answers
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).
Relevant answer
Answer
Goodmorning Monika Dash , ladies and gentlemen, It would NOT be enough to create tiny equilateral triangles to achieve the mesh. Above all, it is necessary to find the optimum surface capable of taking up the spherical shape with the conditions of curvature or geodesic angles. First establish the calculations of the geodesic lengths, then the optimal traingular surfaces according to the size of the circumference of the sphere. We agree that there must be proportionality.
I think this way will make it easier for you to have the constant spring technique in the traingle. The choice of the nature of the triangle, equilateral, isosceles and rectangle must be justified according to their flexibility effiiency.
Maybe you have fixed this problem and you can conveniently share the solution for others who may find themselves in the same situation as you.
Good question! Thanks and good luck.
  • asked a question related to MATLAB Simulation
Question
5 answers
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.
Relevant answer
Answer
You can easily implement the controller on TMS320F28335 microcontroller. You can see my video for more advanced controller design:
  • asked a question related to MATLAB Simulation
Question
4 answers
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?
Relevant answer
Answer
Thanks all
  • asked a question related to MATLAB Simulation
Question
18 answers
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 !
Relevant answer
Answer
Generally, a well-developed meta-heuristic algorithm can be useful. You can start using numerical optimisation methods
Next test the performance of the below methods:
  • asked a question related to MATLAB Simulation
Question
6 answers
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.
Relevant answer
Answer
Hi
You should add the Gams Path to your Matlab first.
Open Matlab >> Home tab >> Sep Path >> add folder
select your Gams path folder >>click Select folder >> Save.
done! for more info check this video
  • asked a question related to MATLAB Simulation
Question
5 answers
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.
Relevant answer
Answer
very interesting
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
  • asked a question related to MATLAB Simulation
Question
4 answers
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 ?
Relevant answer
Answer
I concur with Abdallah Adawy
  • asked a question related to MATLAB Simulation
Question
7 answers
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.
Relevant answer
Answer
Hossein Safari I'm interested in it!
  • asked a question related to MATLAB Simulation
Question
2 answers
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.
Relevant answer
Answer
In my experience, doing that is difficult in general. If you only use rigid transforms (translations+rotations) all what you get is a different orientation/position of the object but not of the rotation axis. You have to be very careful using rigid transforms before/after a joint. They certainly affect motion. I have not found a single/simple rule to do it because all the joints-transforms blocks interact to each other. I recommend you to construct your system piece by piece verifying well behavior at each step. If you already constructed your system, you have to test step buy step. May be going backwards (remove/add transforms/joints) and observe what happens. I also created (simple) robotic hands (yours look better than mine : ) and I constructed a single finger first. Afterwards, I translated the other ones and at the end I rotated 90° the thumb. I have found out that rotations
with the structure BASE FRAME-FOLLOWER FRAME 1 AND 2 (double click on Joints blocks) is very useful. If you do not manage, use a prismatic union just to see where your axis are and the way your body moves, then you use a rotational joint and go on... I hope it helps (I could not find an answer for this in internet nor Matlab sites).
  • asked a question related to MATLAB Simulation
Question
11 answers
[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
Relevant answer
Answer
It is difficult to answer, because I cannot see how the real buck converter is modelled. But several possible explanations are:
a) If the converter is non-synchronous (i.e. with a diode), than one problem could be that there could be a change in operation modes form DCM to CCM and vice versa during start up. The modelled transfer just describes CCM mode.
b) Another effect would be, that the transfer function modells are linearized small signal representations and therefore depend on the operating point. Therefore in the modelled transfer function the gain may be changing (as this depends on the steady state duty cycle).
c) If the circuit model has limiters (e.g. maximum duty cycle reached or a current limit is implemented) than the real model response will deviate from the ideal transfer function characteristic. E.g. if your duty cycle signal command signal d increases to valus d>1, than in the real buck converter the value will be limited to d=1 and this will show a delayed startup (as your pictures indicate). In contrast the "ideal" transfer function model without limits will not see any problem with unrealistic d>1 (or even d<0). Transfer function models without limiters can shown severe deviations from reality, especially during large signal transients.
Therefore, I think you should check:
a) that the value of the control variable d (duty cycle) will be in the range 0<d<1 (and eventually limit it to this range)
b) not test a startup transient, but a small signal step in steady state (e.g. small transient) to test your controllers.
  • asked a question related to MATLAB Simulation
Question
4 answers
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.
Relevant answer
Answer
Problem solved Thanks @Marcel Nicola
  • asked a question related to MATLAB Simulation
Question
7 answers
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?
Relevant answer
Answer
I answered this questions after long time because another researcher may have a similar question.
The required frequency response is determined from the systems and applications requirement. So, you have to look at your your system to get the required filter characteristics.
A low pass filter is characterized by passband ripples, stopband ripples, cutoff frequency and stopband frequency and stop band attenuation.
For all pole filters there is no ripples in the stopband.
There are four filter functions: the Butterworth, the Chebychev, the Bessel and the elliptic ones.
If you want to filter the harmonics of the mains you have to pass the fundamental and attenuate the higher harmonics. How much is the attenuation you must determine it from the application.
If you make a power supply then you have also to pass the DC and attenuate all the alternating components.
In this case you use LC filters they are sufficient.
You have then to refer to the DC power supply filtering.
Best wishes
  • asked a question related to MATLAB Simulation
Question
11 answers
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.
Relevant answer
Answer
Welcome!
The filters either analog or digital are characterized by a frequency transfer characteristics IH(exp jwTs)I , which can be obtained directly from H(z) with Z is the complex frequency transfer parameter where Z= exp jwTs.
Another method is to input a sinewave with known amplitude Vi and frequency and convert it into digital signal by sampling it and applying it to an A/D c onverter to digitize it and then apply it on the filter after which you convert the about digital out into analog signal .
Then measure the its peak value Vo. Then you can calculate the magnitude of the transfer characteristics IH(f)I= Vo/Vi, vary the frequency and keep the sampling frequency fs consatnt in the required range up to fs/2. Then Draw the transfer characteristics. You can see the cut-off frequency and the attenuation at high frequency.
Best wishes
  • asked a question related to MATLAB Simulation
Question
3 answers
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?
  • asked a question related to MATLAB Simulation
Question
3 answers
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.
Relevant answer
  • asked a question related to MATLAB Simulation
Question
2 answers
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?
Relevant answer
Answer
If you want use MATLAB, you should verify your model with SimScape multibody model, otherwise, you can verify your model with MSC Adams.
  • asked a question related to MATLAB Simulation
Question
4 answers
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 🙏🙏
Relevant answer
Answer
It's really interesting. I always thought about this.
  • asked a question related to MATLAB Simulation
Question
11 answers
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.
Relevant answer
Answer
Since you started working on MATLAB, I think it is better for you to stay working on it instead of looking for alternatives. In fact, MATLAB is an easy software to deal with. Also, you can find lots of information in the MATLAB help center. Moreover, you can ask about everything you face in MATLAB here or in the MATLAB community.
Best luck!
  • asked a question related to MATLAB Simulation
Question
5 answers
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.
Relevant answer
Answer
You can change the sampling time from the system configuration in the form of a( parameter ) icon in the upper part of the simulink modelling window, or in the powergui block -->configuration -->configuration. the basic simulation you study the coding
  • asked a question related to MATLAB Simulation
Question
4 answers
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.
Relevant answer
Answer
The files uploaded by Hassan abedi are very helpful.
Can you please explain that what's happening in scope 1, 2, 3 and 4 results, i will be very thankful.
thanks
  • asked a question related to MATLAB Simulation
Question
9 answers
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.
Relevant answer
Answer
I will try this and comment about the results. Thanks Hassan Nasser
  • asked a question related to MATLAB Simulation
Question
5 answers
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?
Relevant answer
Answer
The b*b' approach, namely the LQG/LTR strategy is asymptotically singular. Thus it is intrinsically faulted.
  • asked a question related to MATLAB Simulation
Question
17 answers
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?
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
9 answers
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
Relevant answer
The solution for the current source is to switch the current source it self. That is to use instead of a continuous current source an interrupted current source. Which means the current source will a pulse source.
Best wishes.
  • asked a question related to MATLAB Simulation
Question
12 answers
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
Relevant answer
Answer
I agree with Dr. Samundra Gurung
  • asked a question related to MATLAB Simulation
Question
7 answers
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.
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
5 answers
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.
Relevant answer
Answer
I agree with Mohamed-Mourad Lafifi
  • asked a question related to MATLAB Simulation
Question
5 answers
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 ?
Relevant answer
Answer
Hello,
You could simply set the line width by adjusting lines properties in "Export Setup" under "File" dropdown menu.
Regards,
  • asked a question related to MATLAB Simulation
Question
6 answers
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.
Relevant answer
Answer
Hello everyone,
I think its better if you downloaded the third generation of the benchmark building this is the link you can download, also I would mention that sometimes the Matlab version makes some problems so be careful, please such break command it does not exist in the new version of Matlab.
All the best.
  • asked a question related to MATLAB Simulation
Question
19 answers
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.
Relevant answer
Answer
  • asked a question related to MATLAB Simulation
Question
7 answers
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
Relevant answer