メインコンテンツ

結果:


David
David
最後のアクティビティ: 2020 年 1 月 21 日

Explore resources, ask questions, and discuss topics related to using Simulink to apply power electronics control to Electric Vehicles, Renewable Energy, Battery Systems, Power Conversion, and Motor Control. This is the 3rd MATLAB Central community, after Maker and SimBiology , and is moderated by Tony Lennon . Tony is the Power Electronics Marketing Manager at MathWorks.

Visit the community here . As always, let us know what you think by liking this post or commenting below.

Hi, I'm trying to solve this problem but I'm getting an error so far.
Problem:
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have
a = [1 2 2 2 1 3 2 1 4 5 1]
The answer would be 2, because it shows up three consecutive times
What I've written so far (not done):
a = [1 2 2 2 1 3 2 1 4 5 1];
[x,y] = size(a);
counter = zeros(1,10);
if x == 1
for i=1:1:y
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
else
for i=1:1:x
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
end
But it says "error" in the line of "if a(i) == a(i+1)". I noticed that it creates a variable called "i" which value is 11, but it should create a vector from 1 to 11. What's wrong here?
I know my solution might not be in the right direction or something, but please don't tell me anything!
Thanks in advance
vishnu thilack
vishnu thilack
最後のアクティビティ: 2020 年 1 月 10 日

Actually i have chosen the DC link capacitance in my inverter circuit. i wanted to know how to perform a simulation of it in MATLAB and to check the affecting parameters when the capacitance is varied and obtain a 3D graph.

I have simulated the photovoltaic (PV) module on Simulink as in my simulation. I want to transfer the signals of I-V scope into the plot in Matlab. But the scope do not show the voltage value on the X-axis. Instead, the X-axis shows the time. As a result, when I use the data saved in Matlab workspace, I just get the current-time plot instead of current-voltage plot. How can I fix this problem ? ( The current-time plot is the same as the I-V characteristic in datasheet of the PV panel, but the X-axis expresses the time value. I want to change it into voltage value)

mehmet salih fidaner
mehmet salih fidaner
最後のアクティビティ: 2019 年 12 月 23 日

hi MPPT on the designed bosst circuit does not work correctly. can you help?

SHIVA NAND YADAV
SHIVA NAND YADAV
最後のアクティビティ: 2020 年 2 月 19 日

From where i can start to learn . Please suggest a particular topic or lectures.

SHIVA NAND YADAV
SHIVA NAND YADAV
最後のアクティビティ: 2019 年 12 月 11 日

Hi,Everyone,I am new member here. I want to learn simulation on projects. Please suggest, from where i can start Simulink easily and learn from Basics to Advance level.

younes youyou
younes youyou
最後のアクティビティ: 2019 年 12 月 10 日

have anyone use multiobjective function optimization via PSO namely MOPSO ?? I need some help

Tobias Kumie
Tobias Kumie
最後のアクティビティ: 2019 年 12 月 6 日

Hello Everyone,

I would like to perform the cross correlation function (crosscorr (y1,y2)) for my data but donot have the Econometrics Toolbox to compute this. Can someone in here help me to get this toolbox or else show me where I could get one?

many thanks, Tobias

Jan
Jan
最後のアクティビティ: 2024 年 10 月 4 日

After reading Rik's comment I looked for a list of Matlab releases and their corresponding features. Wiki: Matlab contains an exhaustive list, but what about having a lean version directly in the forum?
If this is useful, feel free to expand the list and to insert additions. Thank you.
Jonis Maurin Ceará
Jonis Maurin Ceará
最後のアクティビティ: 2019 年 11 月 25 日

Hi. I'm new to matlab. I'm a hobbyst, not a company or anything like this. I brought MATLAB personal with some modules and I'll use to learn FPGA with ZedBoard + AD9361. I know that this board (both) are supported by simulink and I'll test/learn using simulink and block-design. My plan is to make an FM transmitter (for start) when my boards arrive (already brought, still waiting delivery). After that, my plan is to make an receiver and then, do the same receiver, but using another frontend (including ADC). So my question is: imagine that I have plugged in another ADC into my ZedBoard (let's say AD9226), is possible to read this ADC in simulink, like AD9361 does? If yes, how? Where can I find any article or tutorial about this?

Even further: if I want to generate HDL code in the future (using HDL Coder), how can I integrate this 'custom' AD for code generation?

PS: I know that I can't buy HDL Coder for personal. My plan is to use trial for testing, since I'm using just for learning.

Thank you.

I am trying to design the outer voltage loop of the inverter but i am unable to remove the 5,7th harmonics from the capacitor voltage as i am trying to supply nonlinear load. The file is in matlab2018b.

Tony Lennon
Tony Lennon
最後のアクティビティ: 2019 年 11 月 6 日

Model-Based Design speeds up developing embedded software for controllers in power electronics-based systems. Wherever you plan to use digital controls, you can use Model-Based Design to develop, test, and implement your algorithms. You can learn more about Model-Based Design in this white paper .

1.When I am trying to code my TMS320F28379D for running a three phase grid tied plant as per the attached image a scope in "SYNCHRONOUS SYSTEM " is showing perfect result but the result is not getting transferred to the "PI_Controller_ISR ".I have concluded this after I have connected the scope at the signal which is entering the "PI_Controller_ISR " subsystem (Inside the subsystem). I am trying to do this in MATLAB 2018B AND F28379D LAUNCHPAD.I am attaching the MATLAB fILE with this help request.Kindly resolve the issue. 2. I have been working on how to send the ADC signal from the C2000 MCU to the Host by seeing the video of** f28379D_DCDC_Buck** in external Mode, but when I downloaded the file and tried to run it by setting the parameters in the HARDWARE IMPLEMETATION pane it is showing me the error message. " Error evaluating 'InitFcn' callback of C28x SCI Receive block (mask) 'c28379Dpmsmfocdual_cpu1_ert/Serial Receive/SCI Receive'. Callback string is 'c28xsci_callback('renderDisplay') validateC280xSCI('Rx'); codertarget.registry.registerC280xSCIRxBlocks(gcb);

                                                   '
Caused by:
The SCI module A is already used by another block or by External Mode."
Kindly resolve these issues.
kiran kale
kiran kale
最後のアクティビティ: 2019 年 10 月 21 日

Please send me some plant digital twin simulink model for productive maintenance.

SATYAJIT Kumar
SATYAJIT Kumar
最後のアクティビティ: 2019 年 10 月 21 日

i want to model LI+ battery , i referred to matlab model https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/36019/versions/29/download/zip but not able to understand how to make simscape battery parametrs(like R C ), anybody can help ??

Lithium-ion batteries play an important role in the success of electric vehicles, energy storage, and a host of other devices and equipment in our daily lives. Read the announcement here.

Learn more about how MathWorks enables the use of Lithium-ion battery technology

Battery Modeling

Battery Management

Determining State of Charge

Mohammed Hafez
Mohammed Hafez
最後のアクティビティ: 2019 年 10 月 12 日

Hi, How to represent a transfer function (TF) of a compensated system in MATLAB to plot the bode plot of it, without expanding the denominator? The TF is: T(s) = (1 + s/Wz) / ( (1 + s/Wp) * ( 1 + s/Wo + s^2/W0^2 ) )

siv1
siv1
最後のアクティビティ: 2020 年 1 月 5 日

I am simulating the attached paper on modulated model predictive control. I have done everything as in the paper. Can some please tell me about my mistake? I am so frustrating since two weeks. Thanks&Regards, G.Sivakumar.

Chirag
Chirag
最後のアクティビティ: 2019 年 10 月 2 日

If you are working on developing algorithms for Battery Management System, checkout this file exchange submission on BMS Reference Design. It includes example algorithms for SOC Estimation, Cell Balancing, Contactor Management and Current/Power Limit Calculations.

https://www.mathworks.com/matlabcentral/fileexchange/72865-design-and-test-battery-management-algorithms