Month: May 2024
PV MPPT FLC using Boost DC-DC Converter
I am simulating a solar panel system using MPPT FLC. I want to ask why most of the models I refer to on the internet use a 20 ohm load for this method.
In reality, when I try to change to any other arbitrary load, the simulation graph shows very strong oscillations and is not optimal.
And the optimal load for a 213.15W panel is 3.95 ohms, from what I know.I am simulating a solar panel system using MPPT FLC. I want to ask why most of the models I refer to on the internet use a 20 ohm load for this method.
In reality, when I try to change to any other arbitrary load, the simulation graph shows very strong oscillations and is not optimal.
And the optimal load for a 213.15W panel is 3.95 ohms, from what I know. I am simulating a solar panel system using MPPT FLC. I want to ask why most of the models I refer to on the internet use a 20 ohm load for this method.
In reality, when I try to change to any other arbitrary load, the simulation graph shows very strong oscillations and is not optimal.
And the optimal load for a 213.15W panel is 3.95 ohms, from what I know. pv mppt flc using boost dc-dc converter MATLAB Answers — New Questions
Describe the solution trajectory of differential systems with mixed time-varying delay
Hi everyone, please help me write the matlab code to describe the solution trajectory for the class differential systems with mixed time-varying delay as follows
Thank you very much!Hi everyone, please help me write the matlab code to describe the solution trajectory for the class differential systems with mixed time-varying delay as follows
Thank you very much! Hi everyone, please help me write the matlab code to describe the solution trajectory for the class differential systems with mixed time-varying delay as follows
Thank you very much! oed MATLAB Answers — New Questions
Limit on response length
Hi – I am trying to get CoPilot to make a list of 100 companies to work on this. It seems to read the list fine on the first instance and list all 100 but then it is unable to do operations on this data as responses stop by 10/20
Hi – I am trying to get CoPilot to make a list of 100 companies to work on this. It seems to read the list fine on the first instance and list all 100 but then it is unable to do operations on this data as responses stop by 10/20 Read More
adding large numbers of hours in escel
hi, i am trying to add a large amount of hours (19:245:40) in an excel file to get the total flight time of a pilot in his lifetime. The problem is the function SUM does not include the big number of the previous total (19245:40) even if the format of all the cells is [h]:mm.
Any idea about how I can fix the problem? Tks
hi, i am trying to add a large amount of hours (19:245:40) in an excel file to get the total flight time of a pilot in his lifetime. The problem is the function SUM does not include the big number of the previous total (19245:40) even if the format of all the cells is [h]:mm.Any idea about how I can fix the problem? Tks Read More
Power Spectral Density of a bipolar digital signal
I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance!I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance! I am having a difficult time trying to plot the power spectral density of a bipolar digital signal with random values, based on an array. For example:
signal=[0 -1 1 0 1 -1];
Then I create a time vector based on a transfer rate of a specified value like this:
D=160000 % rate transfer of 160Kbps
t=[0:1/D:length(signal)/D];
And I plot the signal like this:
stairs(t,signal);
My signal looks like this :
My question is what should I do to be able to represent the power spectral density of such a signal? Is there a more direct way in Matlab than it would be by implementing all kinds of formulas? In theory, my plot should look roughly like this:
Thanks in advance! psd, power spectral density, digital signal, array based signal MATLAB Answers — New Questions
Error: Conversion to logical from sym is not possible
Hello there. I get the following error for my code: "Conversion to logical from sym is not possible".
I need the if statement due to the root in my equation: if my d gets negativ, it can’t solve the equation anymore. that is why i would like to have the following condition that in case of a negativ number it will put d equal to zero.
How can I include if statements in a solver (so having values that are saved as syms)? I need the solver function because the real equation is way more complex but having a root.
Also how can I export the solution to a excel file? I don’t understand as the solution is still saved as sym. is there the possibility to convert a sym to a double in the end of the code?
syms x
a = 30
b = 20
c = 10
if d > 0
d = (x-c).*2
else d = 0
end
eqn = a + b – 200.*x – d^0.5 == 0
sol_x = vpasolve(eqn, x)Hello there. I get the following error for my code: "Conversion to logical from sym is not possible".
I need the if statement due to the root in my equation: if my d gets negativ, it can’t solve the equation anymore. that is why i would like to have the following condition that in case of a negativ number it will put d equal to zero.
How can I include if statements in a solver (so having values that are saved as syms)? I need the solver function because the real equation is way more complex but having a root.
Also how can I export the solution to a excel file? I don’t understand as the solution is still saved as sym. is there the possibility to convert a sym to a double in the end of the code?
syms x
a = 30
b = 20
c = 10
if d > 0
d = (x-c).*2
else d = 0
end
eqn = a + b – 200.*x – d^0.5 == 0
sol_x = vpasolve(eqn, x) Hello there. I get the following error for my code: "Conversion to logical from sym is not possible".
I need the if statement due to the root in my equation: if my d gets negativ, it can’t solve the equation anymore. that is why i would like to have the following condition that in case of a negativ number it will put d equal to zero.
How can I include if statements in a solver (so having values that are saved as syms)? I need the solver function because the real equation is way more complex but having a root.
Also how can I export the solution to a excel file? I don’t understand as the solution is still saved as sym. is there the possibility to convert a sym to a double in the end of the code?
syms x
a = 30
b = 20
c = 10
if d > 0
d = (x-c).*2
else d = 0
end
eqn = a + b – 200.*x – d^0.5 == 0
sol_x = vpasolve(eqn, x) sym MATLAB Answers — New Questions
How to apply attention mechanism to object detection in RGB images
Hello, as this is my first time using MATLAB for research in deep learning, I am not very proficient yet. Can someone give me an example of how to apply attention mechanisms such as attention layers and self-attention layers to object detection in RGB images? Thank you very much.Hello, as this is my first time using MATLAB for research in deep learning, I am not very proficient yet. Can someone give me an example of how to apply attention mechanisms such as attention layers and self-attention layers to object detection in RGB images? Thank you very much. Hello, as this is my first time using MATLAB for research in deep learning, I am not very proficient yet. Can someone give me an example of how to apply attention mechanisms such as attention layers and self-attention layers to object detection in RGB images? Thank you very much. deep learning, attention mechanism, rgb image MATLAB Answers — New Questions
Problem in “Increasing Automation with Functions > Creating and Calling Functions > (5/5) Create and Call Local Function”, Task 1, MatLab Fundamentals
I am currently finishing the course "MatLab Fundamentals" but I cannot reach 100% because in "Increasing Automation with Functions > Creating and Calling Functions > (5/5) Create and Call Local Function", Task 1, I’m not able to answer in the correct way to that Task. Since I thought I answered right, I checked the solution and it was the same as my script; however even copying and pasting the solution script and trying to submit the Task, it appears to be "Incorrect" (Is pp calculated from the function paretoperc?). I can’t understand if I’m missing something or if there’s some kind of problem since also the solution script doesn’t work. What can I do?
Here’s the code:
Task 1
pp = paretoperc(medals)
Task 2
Further Practice
function pp = paretoperc(x)
% Cumulative contribution of data points (in order)
cc = cumsum(sort(x(:),"descend")); % (:) to ensure column vector
cc = 100*cc/cc(end); % Normalize to percentage
% Corresponding percentiles (column vector to match cc)
pct = (1:numel(x))’;
pct = 100*pct/numel(pct); % Normalize to percentage
% Find the number of data values needed so that
% P% of the data is in (100-P)% of the values
idx = find(cc >= (100-pct),1,"first");
pp = cc(idx);
endI am currently finishing the course "MatLab Fundamentals" but I cannot reach 100% because in "Increasing Automation with Functions > Creating and Calling Functions > (5/5) Create and Call Local Function", Task 1, I’m not able to answer in the correct way to that Task. Since I thought I answered right, I checked the solution and it was the same as my script; however even copying and pasting the solution script and trying to submit the Task, it appears to be "Incorrect" (Is pp calculated from the function paretoperc?). I can’t understand if I’m missing something or if there’s some kind of problem since also the solution script doesn’t work. What can I do?
Here’s the code:
Task 1
pp = paretoperc(medals)
Task 2
Further Practice
function pp = paretoperc(x)
% Cumulative contribution of data points (in order)
cc = cumsum(sort(x(:),"descend")); % (:) to ensure column vector
cc = 100*cc/cc(end); % Normalize to percentage
% Corresponding percentiles (column vector to match cc)
pct = (1:numel(x))’;
pct = 100*pct/numel(pct); % Normalize to percentage
% Find the number of data values needed so that
% P% of the data is in (100-P)% of the values
idx = find(cc >= (100-pct),1,"first");
pp = cc(idx);
end I am currently finishing the course "MatLab Fundamentals" but I cannot reach 100% because in "Increasing Automation with Functions > Creating and Calling Functions > (5/5) Create and Call Local Function", Task 1, I’m not able to answer in the correct way to that Task. Since I thought I answered right, I checked the solution and it was the same as my script; however even copying and pasting the solution script and trying to submit the Task, it appears to be "Incorrect" (Is pp calculated from the function paretoperc?). I can’t understand if I’m missing something or if there’s some kind of problem since also the solution script doesn’t work. What can I do?
Here’s the code:
Task 1
pp = paretoperc(medals)
Task 2
Further Practice
function pp = paretoperc(x)
% Cumulative contribution of data points (in order)
cc = cumsum(sort(x(:),"descend")); % (:) to ensure column vector
cc = 100*cc/cc(end); % Normalize to percentage
% Corresponding percentiles (column vector to match cc)
pct = (1:numel(x))’;
pct = 100*pct/numel(pct); % Normalize to percentage
% Find the number of data values needed so that
% P% of the data is in (100-P)% of the values
idx = find(cc >= (100-pct),1,"first");
pp = cc(idx);
end local function MATLAB Answers — New Questions
what is .data extension in matlab
Hi,
I have the code below:
X=importdata(‘test.csv’);
B = X.data;
I searched for the .data extenion file type , but could not find explaination in matlab !!
please could you explain what is this file type and when i can use it!!!
why not use csv read ? instead of importdata() !!!
ThanksHi,
I have the code below:
X=importdata(‘test.csv’);
B = X.data;
I searched for the .data extenion file type , but could not find explaination in matlab !!
please could you explain what is this file type and when i can use it!!!
why not use csv read ? instead of importdata() !!!
Thanks Hi,
I have the code below:
X=importdata(‘test.csv’);
B = X.data;
I searched for the .data extenion file type , but could not find explaination in matlab !!
please could you explain what is this file type and when i can use it!!!
why not use csv read ? instead of importdata() !!!
Thanks file type, matlab MATLAB Answers — New Questions