Month: July 2024
Struggling with Freezes After Fresh Installation of Windows 10
This is a completely new setup, the third attempt, and while it functions smoothly once running, it is marred by the necessity of 4-5 hard resets every day (within just 4 days). The recurrent need for resets seems entirely random and frustrating.
Launching a program requires a delay of 15-30 seconds after double-clicking – if the program even starts. Often, multiple clicks are needed due to a slightly unresponsive mouse. The tower has been reset so frequently that a crucial 40GB ORP file intended for archiving, acquired legally through torrenting, has now rendered the storage drive unusable. Until this issue is resolved or I revert to Windows 7, the drive remains disconnected.
For instance, when I installed Wordweb, a popup dictionary, and attempted to launch it, the system froze completely. After utilizing the reset button (my trusty companion), the program ran smoothly, but my Firefox profile suffered irreparable damage.
The main suspect in this situation is ZoneAlarm, an older version that has operated without issue or complaint. Apart from small applications like Total Commander and MusicBee, nothing else has been added to the system.
This is a completely new setup, the third attempt, and while it functions smoothly once running, it is marred by the necessity of 4-5 hard resets every day (within just 4 days). The recurrent need for resets seems entirely random and frustrating. Launching a program requires a delay of 15-30 seconds after double-clicking – if the program even starts. Often, multiple clicks are needed due to a slightly unresponsive mouse. The tower has been reset so frequently that a crucial 40GB ORP file intended for archiving, acquired legally through torrenting, has now rendered the storage drive unusable. Until this issue is resolved or I revert to Windows 7, the drive remains disconnected. For instance, when I installed Wordweb, a popup dictionary, and attempted to launch it, the system froze completely. After utilizing the reset button (my trusty companion), the program ran smoothly, but my Firefox profile suffered irreparable damage. The main suspect in this situation is ZoneAlarm, an older version that has operated without issue or complaint. Apart from small applications like Total Commander and MusicBee, nothing else has been added to the system. Read More
“Modification of Onedrive File Path”
Hello everyone,
I need some guidance. My Outlook pst file in MS Office 2016 is currently stored within the Onedrive framework. Outlook indicates that it can be found under C:Users…(me)…Onedrive…
Interestingly, this structure is also visible in Explorer under “Onedrive – Personal”.
The issue is that the pst file displayed within this structure is incorrect and outdated. How can I align and resolve the discrepancy between these two structures?
I appreciate any assistance you can provide on this matter.
Hello everyone, I need some guidance. My Outlook pst file in MS Office 2016 is currently stored within the Onedrive framework. Outlook indicates that it can be found under C:Users…(me)…Onedrive… Interestingly, this structure is also visible in Explorer under “Onedrive – Personal”. The issue is that the pst file displayed within this structure is incorrect and outdated. How can I align and resolve the discrepancy between these two structures? I appreciate any assistance you can provide on this matter. Read More
app password required for outlook 2fA
When I try to access 2FA desktop Outlook accounts from Thunderbird, I am told:
You need an app passwordWe noticed that you tried to sign in with the password for your Microsoft account on one of these apps or devices. Since you’ve turned on two-step verification for sb**email address removed for privacy reasons, you need to use an app password instead for any of the following to work with two-step verification. We’ve sent this reminder to all the security info you’ve provided. If you haven’t already done this, we’ll help you set up these apps and devices with app passwords:Outlook desktop app for your PC or Mac
I successfully generated an app password, but when I tried to directly access an Outlook account with it (not through Thunderbird), the password was rejected. What am I doing wrong?
When I try to access 2FA desktop Outlook accounts from Thunderbird, I am told: You need an app passwordWe noticed that you tried to sign in with the password for your Microsoft account on one of these apps or devices. Since you’ve turned on two-step verification for sb**email address removed for privacy reasons, you need to use an app password instead for any of the following to work with two-step verification. We’ve sent this reminder to all the security info you’ve provided. If you haven’t already done this, we’ll help you set up these apps and devices with app passwords:Outlook desktop app for your PC or Mac I successfully generated an app password, but when I tried to directly access an Outlook account with it (not through Thunderbird), the password was rejected. What am I doing wrong? Read More
how to create complete binary tree in matlab of sensor nodes
iam new to matlab please help me to create complete binary tree in matlabiam new to matlab please help me to create complete binary tree in matlab iam new to matlab please help me to create complete binary tree in matlab text, node creation MATLAB Answers — New Questions
How can I add new properties to a pointcloud?
I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:});I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:}); I want to add a new property to a pointcloud, which is not in the standard properties of pointcloud.
I’ve got a pointcloud with one color image, from where I extract the Color inforamtion, and one NIR image, from where I get a greyscale value for each point, and I want to have every point to have an additional Property called ‘NIR’ with this value.
I tried :
pointcloud=pointCloud(posxyz,’Intensity’,intensityvalue,’NIR’,nirvalue)
Matlab gives me the following error:
Error using pointCloud>validateAndParseInputs (line 818)
‘NIR’ is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in pointCloud (line 142)
[xyzPoints, C, nv, I] = validateAndParseInputs(varargin{:}); pointcloud, porperty MATLAB Answers — New Questions
AVD pool one public address
Hi all,
We currently have a Host pool setup with 3 session hosts. we installed some legacy applications(image) that need whitelist one only Public IP address, how can i configure the 3 AVD hosts pointing to same Public IP address?
Thanks
lee
Hi all, We currently have a Host pool setup with 3 session hosts. we installed some legacy applications(image) that need whitelist one only Public IP address, how can i configure the 3 AVD hosts pointing to same Public IP address? Thankslee Read More
can anyone help me with this formula??
(english is not my 1st language hoping anyone can understawanted the net to show “0” instead of negative numbers, anyone know the formula ? also can its also count all the NET even all the gross not yet finish, so it will automatically show me the present calculation of the net. Now i try it cannot coz it will also count the negative figure.
(english is not my 1st language hoping anyone can understawanted the net to show “0” instead of negative numbers, anyone know the formula ? also can its also count all the NET even all the gross not yet finish, so it will automatically show me the present calculation of the net. Now i try it cannot coz it will also count the negative figure. Read More
GUI plot
Hie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
EanHie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
Ean Hie guys, i imported an excel file into my gui and i plotted it out together with the vertical lines that i need. However, with the same code, it does not work for the other axes in the same GUI.Below are my codes,
——–first axes code———-
plot(handles.axes1,c,d);
hold on;
XData=get(get(handles.axes1,’children’),’XData’);
YData=get(get(handles.axes1,’children’),’YData’);
y_BPFO = interp1(XData,YData,BPFO);
t=get(handles.axes1,’ylim’);
plot([BPFO BPFO],t,’-y’);
———–second axes(in the same GUI)——–
plot(handles.axes2,c,d);
hold on;
XData1=get(get(handles.axes2,’children’),’XData’);
YData1=get(get(handles.axes2,’children’),’YData’);
y_BPFO1 = interp1(XData1,YData1,BPFO1);
q=get(handles.axes2,’ylim’);
plot([BPFO1 BPFO1],q,’-y’);
——————————————–
I manage to get the first plot with all the data and vertical lines.
However, i cant get the plot for the second axes. Can someone help me out?
Regards,
Ean plot MATLAB Answers — New Questions
CCDF Plot
Dose any one knows to generate CDDF polots for OFDM …plese help..strugling with itDose any one knows to generate CDDF polots for OFDM …plese help..strugling with it Dose any one knows to generate CDDF polots for OFDM …plese help..strugling with it ccdf plot, ofdm MATLAB Answers — New Questions
contourm plotting
I have a text file containing Lats and Lons. I want to plot a geomap with 0.1 deg grid. Then the map use a color bar, showing the number of occurrences of the Lats and Longs.I have a text file containing Lats and Lons. I want to plot a geomap with 0.1 deg grid. Then the map use a color bar, showing the number of occurrences of the Lats and Longs. I have a text file containing Lats and Lons. I want to plot a geomap with 0.1 deg grid. Then the map use a color bar, showing the number of occurrences of the Lats and Longs. contourm MATLAB Answers — New Questions
why do I receive PSB option menu block block (mask) does not have a parameter named ‘MechanicalLoad’
when I compiled my mlapp with simulink model,it has warning me PSB option menu block block (mask) does not have a parameter named ‘MechanicalLoad’。when I compiled my mlapp with simulink model,it has warning me PSB option menu block block (mask) does not have a parameter named ‘MechanicalLoad’。 when I compiled my mlapp with simulink model,it has warning me PSB option menu block block (mask) does not have a parameter named ‘MechanicalLoad’。 simulink app designer MATLAB Answers — New Questions
Optimisation for Resource Allocation
Hello!
I’m currently trying to process data in Excel, and looking at how I might optimise my distribution of resources.
Effectively, I have a number of students who have provided up to 3 preferences for a staff member to talk to for guidance, and I’m looking if there’s a way to optimise my spread for the most equal distribution of students per staff member.
Some staff members have been requested more than others, which is unavoidably going to lead to them having larger loads, but trying to distribute as evenly as possible. Is there a solution I’m not thinking of right now? I have the ability to process this data in either 365 or the desktop app.
Hello!I’m currently trying to process data in Excel, and looking at how I might optimise my distribution of resources.Effectively, I have a number of students who have provided up to 3 preferences for a staff member to talk to for guidance, and I’m looking if there’s a way to optimise my spread for the most equal distribution of students per staff member. Some staff members have been requested more than others, which is unavoidably going to lead to them having larger loads, but trying to distribute as evenly as possible. Is there a solution I’m not thinking of right now? I have the ability to process this data in either 365 or the desktop app. Read More
How to onboard Sentinel in GCCHigh
Is there any good documentation for how to onboard Sentinel in GCCHigh?
Is there any good documentation for how to onboard Sentinel in GCCHigh? Read More
How to create a custom profile in matlab plots
Hello Everyone,
I am trying to create a profile based on user defined inputs. The profile consists of different modes each having a certain duration and order as defined by the user.
I have uploaded a picture which shows how i want the profile to look like.
Additionally i have coded to some extent, but i am struggling to get it right.
Also i would like to break the number of cycles for dynamic elements and use ‘…’ to show continuity. However, on th etime axis i would like to have the actual value instead of shortened periods by discontinuity.
I kindly request for support and i thank you in advance.
Vconst.val = [1, 0.85, 0.6, 0.4];
Vconst.txt = {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’};
Vdyn.val = [0.8, 0.7, 0.8, 0.5, 1.5, 1];
Vdyn.txt = {‘Dynamic Low’, ‘Dyn low trough’, ‘Dynamic High’, ‘Dyn high trough’, ‘SUSD’, ‘SUSD trough’};
% Define the order of phases and durations
order = {‘OCV’, ‘SUSD’, ‘OCV’, ‘Mid Load’, ‘High Load’, ‘Mid Load’, ‘Dynamic Low’, ‘Mid Load’, ‘Dynamic High’, ‘OCV’}; % duration in s for Vconst elements, nr. of cycles for Vdyn elements
durations = [100, 10, 200, 100, 50, 50, 4, 50, 4, 100]; % Corresponding durations in seconds or cycles
% Initialize time and voltage vectors
time = [];
voltage = [];
current_time = 0;
% Generate time and voltage vectors
for i = 1:length(order)
phase = order{i};
duration = durations(i);
t = current_time + (0:0.1:duration);
if ismember(phase, {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’})
% Constant phases
t = current_time + (0:0.1:duration);
V_idx = find(strcmp(Vconst.txt, phase));
v = Vconst.val(V_idx) * ones(size(t));
time_act(i) = t(end);
else
% Dynamic phases
n_cycles = duration; % Number of dynamic cycles
t_dynamic_full = [];
v_dynamic_full = [];
Vdyn_idx = find(strcmp(Vdyn.txt, phase));
peak_height = Vdyn.val(Vdyn_idx);
trough_height = Vdyn.val(Vdyn_idx + 1);
nr_pts = 50;
for j = 1:n_cycles
t_cycle = current_time + (0:1:nr_pts);
tri_wave = sawtooth(2 * pi * (1/nr_pts) * (t_cycle – current_time), 0.5);
tri_wave = (peak_height – trough_height) * tri_wave / 2 + (peak_height + trough_height) / 2;
tri_wave(tri_wave > peak_height) = peak_height;
tri_wave(tri_wave < trough_height) = trough_height;
t_dynamic_full = [t_dynamic_full, t_cycle];
v_dynamic_full = [v_dynamic_full, tri_wave];
current_time = t_cycle(end);
end
time_act(i) = t_dynamic_full(end);
if n_cycles > 3
t_dynamic_1 = t_dynamic_full(1:nr_pts*2+2);
v_dynamic_1 = v_dynamic_full(1:nr_pts*2+2);
t_dynamic_2 = t_dynamic_full(nr_pts*3+3:nr_pts*4+4);
v_dynamic_2 = v_dynamic_full(nr_pts*3+3:nr_pts*4+4);
t_continuity = t_dynamic_full(nr_pts*2+4:nr_pts*3+2);
v_continuity = NaN * ones(size(t_continuity));
t = [t_dynamic_1, t_continuity, t_dynamic_2];
v = [v_dynamic_1, v_continuity, v_dynamic_2];
else
t = t_dynamic_full;
v = v_dynamic_full;
end
end
time = [time, t];
voltage = [voltage, v];
current_time = t(end);
if i>1
time_act(i) = time_act(i)+time_act(i-1);
else
end
end
% Plot the voltage over time
figure;
plot(time, voltage, ‘LineWidth’, 1.5);
xlabel(‘Time (s)’);
ylabel(‘Voltage (V)’);
title(‘User Defined Plot with Flexible Phase Order and Durations’);
grid on;
ylim([0 2])
yticklabels([])Hello Everyone,
I am trying to create a profile based on user defined inputs. The profile consists of different modes each having a certain duration and order as defined by the user.
I have uploaded a picture which shows how i want the profile to look like.
Additionally i have coded to some extent, but i am struggling to get it right.
Also i would like to break the number of cycles for dynamic elements and use ‘…’ to show continuity. However, on th etime axis i would like to have the actual value instead of shortened periods by discontinuity.
I kindly request for support and i thank you in advance.
Vconst.val = [1, 0.85, 0.6, 0.4];
Vconst.txt = {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’};
Vdyn.val = [0.8, 0.7, 0.8, 0.5, 1.5, 1];
Vdyn.txt = {‘Dynamic Low’, ‘Dyn low trough’, ‘Dynamic High’, ‘Dyn high trough’, ‘SUSD’, ‘SUSD trough’};
% Define the order of phases and durations
order = {‘OCV’, ‘SUSD’, ‘OCV’, ‘Mid Load’, ‘High Load’, ‘Mid Load’, ‘Dynamic Low’, ‘Mid Load’, ‘Dynamic High’, ‘OCV’}; % duration in s for Vconst elements, nr. of cycles for Vdyn elements
durations = [100, 10, 200, 100, 50, 50, 4, 50, 4, 100]; % Corresponding durations in seconds or cycles
% Initialize time and voltage vectors
time = [];
voltage = [];
current_time = 0;
% Generate time and voltage vectors
for i = 1:length(order)
phase = order{i};
duration = durations(i);
t = current_time + (0:0.1:duration);
if ismember(phase, {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’})
% Constant phases
t = current_time + (0:0.1:duration);
V_idx = find(strcmp(Vconst.txt, phase));
v = Vconst.val(V_idx) * ones(size(t));
time_act(i) = t(end);
else
% Dynamic phases
n_cycles = duration; % Number of dynamic cycles
t_dynamic_full = [];
v_dynamic_full = [];
Vdyn_idx = find(strcmp(Vdyn.txt, phase));
peak_height = Vdyn.val(Vdyn_idx);
trough_height = Vdyn.val(Vdyn_idx + 1);
nr_pts = 50;
for j = 1:n_cycles
t_cycle = current_time + (0:1:nr_pts);
tri_wave = sawtooth(2 * pi * (1/nr_pts) * (t_cycle – current_time), 0.5);
tri_wave = (peak_height – trough_height) * tri_wave / 2 + (peak_height + trough_height) / 2;
tri_wave(tri_wave > peak_height) = peak_height;
tri_wave(tri_wave < trough_height) = trough_height;
t_dynamic_full = [t_dynamic_full, t_cycle];
v_dynamic_full = [v_dynamic_full, tri_wave];
current_time = t_cycle(end);
end
time_act(i) = t_dynamic_full(end);
if n_cycles > 3
t_dynamic_1 = t_dynamic_full(1:nr_pts*2+2);
v_dynamic_1 = v_dynamic_full(1:nr_pts*2+2);
t_dynamic_2 = t_dynamic_full(nr_pts*3+3:nr_pts*4+4);
v_dynamic_2 = v_dynamic_full(nr_pts*3+3:nr_pts*4+4);
t_continuity = t_dynamic_full(nr_pts*2+4:nr_pts*3+2);
v_continuity = NaN * ones(size(t_continuity));
t = [t_dynamic_1, t_continuity, t_dynamic_2];
v = [v_dynamic_1, v_continuity, v_dynamic_2];
else
t = t_dynamic_full;
v = v_dynamic_full;
end
end
time = [time, t];
voltage = [voltage, v];
current_time = t(end);
if i>1
time_act(i) = time_act(i)+time_act(i-1);
else
end
end
% Plot the voltage over time
figure;
plot(time, voltage, ‘LineWidth’, 1.5);
xlabel(‘Time (s)’);
ylabel(‘Voltage (V)’);
title(‘User Defined Plot with Flexible Phase Order and Durations’);
grid on;
ylim([0 2])
yticklabels([]) Hello Everyone,
I am trying to create a profile based on user defined inputs. The profile consists of different modes each having a certain duration and order as defined by the user.
I have uploaded a picture which shows how i want the profile to look like.
Additionally i have coded to some extent, but i am struggling to get it right.
Also i would like to break the number of cycles for dynamic elements and use ‘…’ to show continuity. However, on th etime axis i would like to have the actual value instead of shortened periods by discontinuity.
I kindly request for support and i thank you in advance.
Vconst.val = [1, 0.85, 0.6, 0.4];
Vconst.txt = {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’};
Vdyn.val = [0.8, 0.7, 0.8, 0.5, 1.5, 1];
Vdyn.txt = {‘Dynamic Low’, ‘Dyn low trough’, ‘Dynamic High’, ‘Dyn high trough’, ‘SUSD’, ‘SUSD trough’};
% Define the order of phases and durations
order = {‘OCV’, ‘SUSD’, ‘OCV’, ‘Mid Load’, ‘High Load’, ‘Mid Load’, ‘Dynamic Low’, ‘Mid Load’, ‘Dynamic High’, ‘OCV’}; % duration in s for Vconst elements, nr. of cycles for Vdyn elements
durations = [100, 10, 200, 100, 50, 50, 4, 50, 4, 100]; % Corresponding durations in seconds or cycles
% Initialize time and voltage vectors
time = [];
voltage = [];
current_time = 0;
% Generate time and voltage vectors
for i = 1:length(order)
phase = order{i};
duration = durations(i);
t = current_time + (0:0.1:duration);
if ismember(phase, {‘OCV’, ‘Idle’, ‘Mid Load’, ‘High Load’})
% Constant phases
t = current_time + (0:0.1:duration);
V_idx = find(strcmp(Vconst.txt, phase));
v = Vconst.val(V_idx) * ones(size(t));
time_act(i) = t(end);
else
% Dynamic phases
n_cycles = duration; % Number of dynamic cycles
t_dynamic_full = [];
v_dynamic_full = [];
Vdyn_idx = find(strcmp(Vdyn.txt, phase));
peak_height = Vdyn.val(Vdyn_idx);
trough_height = Vdyn.val(Vdyn_idx + 1);
nr_pts = 50;
for j = 1:n_cycles
t_cycle = current_time + (0:1:nr_pts);
tri_wave = sawtooth(2 * pi * (1/nr_pts) * (t_cycle – current_time), 0.5);
tri_wave = (peak_height – trough_height) * tri_wave / 2 + (peak_height + trough_height) / 2;
tri_wave(tri_wave > peak_height) = peak_height;
tri_wave(tri_wave < trough_height) = trough_height;
t_dynamic_full = [t_dynamic_full, t_cycle];
v_dynamic_full = [v_dynamic_full, tri_wave];
current_time = t_cycle(end);
end
time_act(i) = t_dynamic_full(end);
if n_cycles > 3
t_dynamic_1 = t_dynamic_full(1:nr_pts*2+2);
v_dynamic_1 = v_dynamic_full(1:nr_pts*2+2);
t_dynamic_2 = t_dynamic_full(nr_pts*3+3:nr_pts*4+4);
v_dynamic_2 = v_dynamic_full(nr_pts*3+3:nr_pts*4+4);
t_continuity = t_dynamic_full(nr_pts*2+4:nr_pts*3+2);
v_continuity = NaN * ones(size(t_continuity));
t = [t_dynamic_1, t_continuity, t_dynamic_2];
v = [v_dynamic_1, v_continuity, v_dynamic_2];
else
t = t_dynamic_full;
v = v_dynamic_full;
end
end
time = [time, t];
voltage = [voltage, v];
current_time = t(end);
if i>1
time_act(i) = time_act(i)+time_act(i-1);
else
end
end
% Plot the voltage over time
figure;
plot(time, voltage, ‘LineWidth’, 1.5);
xlabel(‘Time (s)’);
ylabel(‘Voltage (V)’);
title(‘User Defined Plot with Flexible Phase Order and Durations’);
grid on;
ylim([0 2])
yticklabels([]) plot, profile creation, data handling MATLAB Answers — New Questions
polar plot
Hi everyone!
I want to plot a function like that:
<http://i44.tinypic.com/hu3v2q.jpg>
the plot is in fig. 138 (c) and its expression in Ms.
What’s the code?
because, I think, there is a scale factor, I use this code:
ts=linspace(0,2*pi,500);
Ms = 1-ts.*sin(ts)-0.5*cos(ts);
polar(ts,Ms)
but this generates a wrong plot.
How can I do this?
Thanks a lot for your answer!
PincoHi everyone!
I want to plot a function like that:
<http://i44.tinypic.com/hu3v2q.jpg>
the plot is in fig. 138 (c) and its expression in Ms.
What’s the code?
because, I think, there is a scale factor, I use this code:
ts=linspace(0,2*pi,500);
Ms = 1-ts.*sin(ts)-0.5*cos(ts);
polar(ts,Ms)
but this generates a wrong plot.
How can I do this?
Thanks a lot for your answer!
Pinco Hi everyone!
I want to plot a function like that:
<http://i44.tinypic.com/hu3v2q.jpg>
the plot is in fig. 138 (c) and its expression in Ms.
What’s the code?
because, I think, there is a scale factor, I use this code:
ts=linspace(0,2*pi,500);
Ms = 1-ts.*sin(ts)-0.5*cos(ts);
polar(ts,Ms)
but this generates a wrong plot.
How can I do this?
Thanks a lot for your answer!
Pinco polar, plot MATLAB Answers — New Questions
Application of multistage decimator filter to signal
Dear all
We had a piece of code to decimate data (decimation ratio (dec_factor) > 13) that read:
Hfd=fdesign.decimator(dec_factor,’Nyquist’);
Hm=design(Hfd,’multistage’);
signal_output=filter(Hm,signal_input);
Matlad is warning that
Warning: Multistage design using fdesign.decimator will be removed. Use designMultistageDecimator instead.
So we are replacing the codewith:
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm=designMultistageDecimator(dec_factor,fs_sampling,TW,Astop,’CostMethod’,’design’);
We don´t know what to do with Hm in order to apply the filter to get signal_input.
Any ideas?
Thanks in advanceDear all
We had a piece of code to decimate data (decimation ratio (dec_factor) > 13) that read:
Hfd=fdesign.decimator(dec_factor,’Nyquist’);
Hm=design(Hfd,’multistage’);
signal_output=filter(Hm,signal_input);
Matlad is warning that
Warning: Multistage design using fdesign.decimator will be removed. Use designMultistageDecimator instead.
So we are replacing the codewith:
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm=designMultistageDecimator(dec_factor,fs_sampling,TW,Astop,’CostMethod’,’design’);
We don´t know what to do with Hm in order to apply the filter to get signal_input.
Any ideas?
Thanks in advance Dear all
We had a piece of code to decimate data (decimation ratio (dec_factor) > 13) that read:
Hfd=fdesign.decimator(dec_factor,’Nyquist’);
Hm=design(Hfd,’multistage’);
signal_output=filter(Hm,signal_input);
Matlad is warning that
Warning: Multistage design using fdesign.decimator will be removed. Use designMultistageDecimator instead.
So we are replacing the codewith:
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm=designMultistageDecimator(dec_factor,fs_sampling,TW,Astop,’CostMethod’,’design’);
We don´t know what to do with Hm in order to apply the filter to get signal_input.
Any ideas?
Thanks in advance filtering, multistage filtering MATLAB Answers — New Questions
issue with fmincon function.
I want to maximize rate using fmincon function. the problem is I have an error as "Arrays have incompatible sizes for this operation." and "Caused by: Failure in initial objective function evaluation. FMINCON cannot continue.". I provide a part of my code and the objective function here. I guess the problem is in the reshape part and it might be wrong. I would really appreciate it if someone could help me to write the objective function correctly.
when . I should mention that is a vector and is a matrix for .
here is my code.
%initial guess for P2 and W2
P2_0 = ones(Ns,1) * (tilde_P2 / Ns) / 2; % initial guess for P2
W2_0 = ones(Ms,Ns); %initial guess for W2
%combine initial guess in a single vector
x0 = [P2_0 ; W2_0(:)];
% Define the linear constraint (C2)
A = zeros(Np, Ns + Ms * Ns);
for l = 1:Np
A(l, 1:Ns) = xi’; % Place xi’ in the first Ns columns of each row
end
% Define the bounds(C1)
lb = [zeros(Ns, 1); -Inf(Ms * Ns, 1)]; % Lower bound (P2 >= 0, no lower bound for W2)
ub = [repmat(tilde_P2 / Ns, Ns, 1); Inf(Ms * Ns, 1)]; % Upper bound (P2 <= tilde_P2_max / Ns, no upper bound for W2)
%%%objective function
obj_fun = @(x) -((Nup – Nt) / Nup * sum(log(1 + x(1:Ns) ./ (sigma2 * reshape(x(Ns+1:end), Ms, Ns).^2))));
% Set options for fmincon
options = optimoptions(‘fmincon’, ‘Display’, ‘iter’, ‘Algorithm’, ‘interior-point’);
% Run the optimization
[x_opt, fval] = fmincon(obj_fun, x0, A, hat_zeta1, [], [], lb, ub, [], options);
% Extract optimized values for P2 and W2
P2_opt = x_opt(1:Ns);
W2_opt = reshape(x_opt(Ns+1:end), Ms, Ns);I want to maximize rate using fmincon function. the problem is I have an error as "Arrays have incompatible sizes for this operation." and "Caused by: Failure in initial objective function evaluation. FMINCON cannot continue.". I provide a part of my code and the objective function here. I guess the problem is in the reshape part and it might be wrong. I would really appreciate it if someone could help me to write the objective function correctly.
when . I should mention that is a vector and is a matrix for .
here is my code.
%initial guess for P2 and W2
P2_0 = ones(Ns,1) * (tilde_P2 / Ns) / 2; % initial guess for P2
W2_0 = ones(Ms,Ns); %initial guess for W2
%combine initial guess in a single vector
x0 = [P2_0 ; W2_0(:)];
% Define the linear constraint (C2)
A = zeros(Np, Ns + Ms * Ns);
for l = 1:Np
A(l, 1:Ns) = xi’; % Place xi’ in the first Ns columns of each row
end
% Define the bounds(C1)
lb = [zeros(Ns, 1); -Inf(Ms * Ns, 1)]; % Lower bound (P2 >= 0, no lower bound for W2)
ub = [repmat(tilde_P2 / Ns, Ns, 1); Inf(Ms * Ns, 1)]; % Upper bound (P2 <= tilde_P2_max / Ns, no upper bound for W2)
%%%objective function
obj_fun = @(x) -((Nup – Nt) / Nup * sum(log(1 + x(1:Ns) ./ (sigma2 * reshape(x(Ns+1:end), Ms, Ns).^2))));
% Set options for fmincon
options = optimoptions(‘fmincon’, ‘Display’, ‘iter’, ‘Algorithm’, ‘interior-point’);
% Run the optimization
[x_opt, fval] = fmincon(obj_fun, x0, A, hat_zeta1, [], [], lb, ub, [], options);
% Extract optimized values for P2 and W2
P2_opt = x_opt(1:Ns);
W2_opt = reshape(x_opt(Ns+1:end), Ms, Ns); I want to maximize rate using fmincon function. the problem is I have an error as "Arrays have incompatible sizes for this operation." and "Caused by: Failure in initial objective function evaluation. FMINCON cannot continue.". I provide a part of my code and the objective function here. I guess the problem is in the reshape part and it might be wrong. I would really appreciate it if someone could help me to write the objective function correctly.
when . I should mention that is a vector and is a matrix for .
here is my code.
%initial guess for P2 and W2
P2_0 = ones(Ns,1) * (tilde_P2 / Ns) / 2; % initial guess for P2
W2_0 = ones(Ms,Ns); %initial guess for W2
%combine initial guess in a single vector
x0 = [P2_0 ; W2_0(:)];
% Define the linear constraint (C2)
A = zeros(Np, Ns + Ms * Ns);
for l = 1:Np
A(l, 1:Ns) = xi’; % Place xi’ in the first Ns columns of each row
end
% Define the bounds(C1)
lb = [zeros(Ns, 1); -Inf(Ms * Ns, 1)]; % Lower bound (P2 >= 0, no lower bound for W2)
ub = [repmat(tilde_P2 / Ns, Ns, 1); Inf(Ms * Ns, 1)]; % Upper bound (P2 <= tilde_P2_max / Ns, no upper bound for W2)
%%%objective function
obj_fun = @(x) -((Nup – Nt) / Nup * sum(log(1 + x(1:Ns) ./ (sigma2 * reshape(x(Ns+1:end), Ms, Ns).^2))));
% Set options for fmincon
options = optimoptions(‘fmincon’, ‘Display’, ‘iter’, ‘Algorithm’, ‘interior-point’);
% Run the optimization
[x_opt, fval] = fmincon(obj_fun, x0, A, hat_zeta1, [], [], lb, ub, [], options);
% Extract optimized values for P2 and W2
P2_opt = x_opt(1:Ns);
W2_opt = reshape(x_opt(Ns+1:end), Ms, Ns); fmincon, error MATLAB Answers — New Questions
How to COUNTIFS with mixed criteria
I am having some issues with using the COUNTIFS function. My spreadsheet has all the readers enrolled in my reading challenges for June, sorted by age. I need to be able to quickly calculate how many readers in each of my age groups logged reading during the month, but the Ages are messing me up. I used the following functions to successfully determine:
How many Avid readers aged 0-11 logged reading: =COUNTIFS(AVID!$A$2:$A$500,”<12″,AVID!I2:$I$500,”>0″)
How many Avid readers aged 12-18 logged reading:
=COUNTIFS(AVID!$A$2:$A$500,”>11.5″,AVID!$A$2:$A$500,”<19″,AVID!$I$2:$I$500,”>0″)
How many Casual readers aged 0 – 11 logged reading:
=COUNTIFS(CASUAL!$A$2:$A$500,”<12″,CASUAL!$I$2:$I$500,”>0″)
How many Casual readers aged 12-18 logged reading:
=COUNTIFS(CASUAL!$A$2:$A$500,”>11.5″,CASUAL!$A$2:$A$500,”<19″,CASUAL!$I$2:$I$500,”>0″)
note: I have not imported RTM reader data yet . . .
What is messing me up are the ages of my Adult readers. We collect readers ages up to age 20, but all other adult readers are listed as “21+”. How do I amend the COUNTIFS formula to scrape “19,” “20,” and “21+” from my Age column? A link to my sample is below.
Sample Reader Participation Report.xlsx
I am having some issues with using the COUNTIFS function. My spreadsheet has all the readers enrolled in my reading challenges for June, sorted by age. I need to be able to quickly calculate how many readers in each of my age groups logged reading during the month, but the Ages are messing me up. I used the following functions to successfully determine: How many Avid readers aged 0-11 logged reading: =COUNTIFS(AVID!$A$2:$A$500,”<12″,AVID!I2:$I$500,”>0″)How many Avid readers aged 12-18 logged reading: =COUNTIFS(AVID!$A$2:$A$500,”>11.5″,AVID!$A$2:$A$500,”<19″,AVID!$I$2:$I$500,”>0″)How many Casual readers aged 0 – 11 logged reading: =COUNTIFS(CASUAL!$A$2:$A$500,”<12″,CASUAL!$I$2:$I$500,”>0″)How many Casual readers aged 12-18 logged reading: =COUNTIFS(CASUAL!$A$2:$A$500,”>11.5″,CASUAL!$A$2:$A$500,”<19″,CASUAL!$I$2:$I$500,”>0″)note: I have not imported RTM reader data yet . . . What is messing me up are the ages of my Adult readers. We collect readers ages up to age 20, but all other adult readers are listed as “21+”. How do I amend the COUNTIFS formula to scrape “19,” “20,” and “21+” from my Age column? A link to my sample is below. Sample Reader Participation Report.xlsx Read More
Newly added staff not being sent activation email
Having an issue where staff are being added to an existing booking page, but they aren’t receiving the activation email to confirm being added to the Booking page. As a result, they remain ‘not bookable’ – we have a need to add some staff as Administrators, but can’t confirm their access because they don’t receive the email when they are initially added (even though the Bookings dialogue suggests that one has been sent) and when I try to re-send the activation email, nothing changes – the time and date doesn’t update, and no email is received by the user, so it seems like the system hasn’t even tried to send an email out to the user:
It’s interesting to note, that users with existing access can have an email re-sent to them – is there a permissioning issue at play here? All our users should already have the required access (as existing users were added with no issue earlier this year), so I’m not sure what to look at first.
Any helps is greatly appreciated.
Kind regards,
Peter
Having an issue where staff are being added to an existing booking page, but they aren’t receiving the activation email to confirm being added to the Booking page. As a result, they remain ‘not bookable’ – we have a need to add some staff as Administrators, but can’t confirm their access because they don’t receive the email when they are initially added (even though the Bookings dialogue suggests that one has been sent) and when I try to re-send the activation email, nothing changes – the time and date doesn’t update, and no email is received by the user, so it seems like the system hasn’t even tried to send an email out to the user: It’s interesting to note, that users with existing access can have an email re-sent to them – is there a permissioning issue at play here? All our users should already have the required access (as existing users were added with no issue earlier this year), so I’m not sure what to look at first. Any helps is greatly appreciated. Kind regards,Peter Read More
How to set legend marker size
How do I change the marker size on the legend ? I can change the font size but not marker.
l = legend(‘Orientation’, ‘Horizontal’, ‘RNN (Ours)’, ‘SLIC’, ‘SEEDS’, ‘LSC’, ‘ERS’, ‘FH’);
l.FontSize = 20;
%l.MarkerSize = 20; does not work
%l.markersize = 20; does not work
set(l,’Position’, [0.4 0 0.2 0.2], ‘Units’, ‘normalized’);
%set(l,’MarkerSize’, 20); does not workHow do I change the marker size on the legend ? I can change the font size but not marker.
l = legend(‘Orientation’, ‘Horizontal’, ‘RNN (Ours)’, ‘SLIC’, ‘SEEDS’, ‘LSC’, ‘ERS’, ‘FH’);
l.FontSize = 20;
%l.MarkerSize = 20; does not work
%l.markersize = 20; does not work
set(l,’Position’, [0.4 0 0.2 0.2], ‘Units’, ‘normalized’);
%set(l,’MarkerSize’, 20); does not work How do I change the marker size on the legend ? I can change the font size but not marker.
l = legend(‘Orientation’, ‘Horizontal’, ‘RNN (Ours)’, ‘SLIC’, ‘SEEDS’, ‘LSC’, ‘ERS’, ‘FH’);
l.FontSize = 20;
%l.MarkerSize = 20; does not work
%l.markersize = 20; does not work
set(l,’Position’, [0.4 0 0.2 0.2], ‘Units’, ‘normalized’);
%set(l,’MarkerSize’, 20); does not work plot, legend, markersize MATLAB Answers — New Questions