Month: June 2024
Problem based on Modal period & Newmark-Beta Method
I’ve generated an MATLAB code based on these pointed problems, such that:
Q: Consider a 2D 3-story shear building model.
1. Form the mass and stiffness matrices for this building model. No damping in needed for this problem.
2. Using trial and errors, select meaningful story mass and stiffness parameters so that the first natural frequency of the building is 1 sec. Consider that the story mass and stiffness values are similar among the three stories; therefore, you need to set only one stiffness and one mass parameter. Use your engineering judgement and explain your logic. Find and plot the mode shapes of the building model.
3. Implement a Newmark-beta algorithm for time integration of the dynamic equilibrium equation. Use a unidirectional earthquake base excitation as input and solve for the acceleration response at the three DOFs. For the earthquake base excitation, use this input file with a sampling frequency of 100 Hz. Plot the time history of absolute acceleration response at each floor.
4. Resample the input signal at 20, 10, and 2 Hz and redo steps 4-5 with integration time step size of 0.05, 0.1, and 0.5 sec, respectively. Compare the results and explain your observations.
MATLAB CODE
—————————————————————————————————————–
clear all;
clc;
close all;
%% INPUT Parameters:
m = 1; % Initial arbitrary mass of each story
k = 1; % Initial arbitrary stiffness of each story
%% Solution-1: Form Mass and Stiffness Matrices
M = m * eye(3); % Mass matrix
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Stiffness matrix
%% Solution-2: Adjust Mass and Stiffness based on target frequency
target_frequency = 1; % Natural Frequency (Hz)
target_omega = 2 * pi * target_frequency; % Angular Frequency (rad/s)
% Adjust stiffness based on the target frequency
k = target_omega^2 * m / 2;
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Updated Stiffness matrix
%% Solution-3: Find and Plot Mode Shapes
[eigVectors, eigValues] = eig(K, M); % Solve eigenvalue problem
omega = sqrt(diag(eigValues)); % Natural frequencies (rad/s)
figure;
for i = 1:3
subplot(3, 1, i);
plot([0 eigVectors(:,i)’], ‘o-‘); % Plot mode shapes
title([‘Mode Shape ‘, num2str(i)]);
xlabel(‘Story’);
ylabel(‘Displacement’);
end
%% Solution-4: Implement Newmark-beta algorithm for dynamic analysis
% Parameters for Newmark-beta
beta = 1/4;
gamma = 1/2;
% Load earthquake data
data = load(‘CNP100.txt’); % Load earthquake data
dt = 0.01; % Sampling interval for 100 Hz
time = (0:length(data)-1)*dt;
% Initial conditions
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((data(1) * ones(3, 1)) – K*u); % Initial acceleration
% Time integration using Newmark-beta method
u_history = zeros(3, length(time));
a_history = zeros(3, length(time));
a_history(:, 1) = a;
for i = 1:length(time)-1
% Predictors
u_pred = u + (dt * v) + ((dt^2) * (0.5-beta) * a);
v_pred = v + (dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((data(i+1) * ones(3, 1)) – (K * u_pred));
% Correctors
u = u_pred + (beta * (dt^2) * a_new);
v = v_pred + (gamma * dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
%% Solution-5: Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(time, a_history(i, :));
title([‘Absolute Acceleration Response Sampled at 100 Hz at DOF ‘, num2str(i)]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
%% Solution-6: Resample input signal and repeat the analysis
frequencies = [20, 10, 2];
time_steps = [0.05, 0.1, 0.5];
for j = 1:length(frequencies)
new_fs = frequencies(j);
new_dt = 1/new_fs;
new_data = resample(data, new_fs, 100);
new_time = (0:length(new_data)-1)*new_dt;
% Repeat the Newmark-beta integration with new data
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((new_data(1) * ones(3, 1)) – K*u); % Initial acceleration
u_history = zeros(3, length(new_time));
a_history = zeros(3, length(new_time));
a_history(:, 1) = a;
for i = 1:length(new_time)-1
% Predictors
u_pred = u + (new_dt * v) + ((new_dt^2) * (0.5-beta) * a);
v_pred = v + (new_dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((new_data(i+1) * ones(3, 1)) – K * u_pred);
% Correctors
u = u_pred + (beta * (new_dt^2) * a_new);
v = v_pred + (gamma * new_dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
% Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(new_time, a_history(i, :));
title([‘Absolute Acceleration Response at DOF ‘, num2str(i), ‘ (Resampled at ‘, num2str(new_fs), ‘ Hz)’]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
end
——————————————————————————————————————–
I’m getting error in obtaining:
The first modal period as 1 second.
The correct Newmark Beta plots.I’ve generated an MATLAB code based on these pointed problems, such that:
Q: Consider a 2D 3-story shear building model.
1. Form the mass and stiffness matrices for this building model. No damping in needed for this problem.
2. Using trial and errors, select meaningful story mass and stiffness parameters so that the first natural frequency of the building is 1 sec. Consider that the story mass and stiffness values are similar among the three stories; therefore, you need to set only one stiffness and one mass parameter. Use your engineering judgement and explain your logic. Find and plot the mode shapes of the building model.
3. Implement a Newmark-beta algorithm for time integration of the dynamic equilibrium equation. Use a unidirectional earthquake base excitation as input and solve for the acceleration response at the three DOFs. For the earthquake base excitation, use this input file with a sampling frequency of 100 Hz. Plot the time history of absolute acceleration response at each floor.
4. Resample the input signal at 20, 10, and 2 Hz and redo steps 4-5 with integration time step size of 0.05, 0.1, and 0.5 sec, respectively. Compare the results and explain your observations.
MATLAB CODE
—————————————————————————————————————–
clear all;
clc;
close all;
%% INPUT Parameters:
m = 1; % Initial arbitrary mass of each story
k = 1; % Initial arbitrary stiffness of each story
%% Solution-1: Form Mass and Stiffness Matrices
M = m * eye(3); % Mass matrix
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Stiffness matrix
%% Solution-2: Adjust Mass and Stiffness based on target frequency
target_frequency = 1; % Natural Frequency (Hz)
target_omega = 2 * pi * target_frequency; % Angular Frequency (rad/s)
% Adjust stiffness based on the target frequency
k = target_omega^2 * m / 2;
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Updated Stiffness matrix
%% Solution-3: Find and Plot Mode Shapes
[eigVectors, eigValues] = eig(K, M); % Solve eigenvalue problem
omega = sqrt(diag(eigValues)); % Natural frequencies (rad/s)
figure;
for i = 1:3
subplot(3, 1, i);
plot([0 eigVectors(:,i)’], ‘o-‘); % Plot mode shapes
title([‘Mode Shape ‘, num2str(i)]);
xlabel(‘Story’);
ylabel(‘Displacement’);
end
%% Solution-4: Implement Newmark-beta algorithm for dynamic analysis
% Parameters for Newmark-beta
beta = 1/4;
gamma = 1/2;
% Load earthquake data
data = load(‘CNP100.txt’); % Load earthquake data
dt = 0.01; % Sampling interval for 100 Hz
time = (0:length(data)-1)*dt;
% Initial conditions
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((data(1) * ones(3, 1)) – K*u); % Initial acceleration
% Time integration using Newmark-beta method
u_history = zeros(3, length(time));
a_history = zeros(3, length(time));
a_history(:, 1) = a;
for i = 1:length(time)-1
% Predictors
u_pred = u + (dt * v) + ((dt^2) * (0.5-beta) * a);
v_pred = v + (dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((data(i+1) * ones(3, 1)) – (K * u_pred));
% Correctors
u = u_pred + (beta * (dt^2) * a_new);
v = v_pred + (gamma * dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
%% Solution-5: Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(time, a_history(i, :));
title([‘Absolute Acceleration Response Sampled at 100 Hz at DOF ‘, num2str(i)]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
%% Solution-6: Resample input signal and repeat the analysis
frequencies = [20, 10, 2];
time_steps = [0.05, 0.1, 0.5];
for j = 1:length(frequencies)
new_fs = frequencies(j);
new_dt = 1/new_fs;
new_data = resample(data, new_fs, 100);
new_time = (0:length(new_data)-1)*new_dt;
% Repeat the Newmark-beta integration with new data
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((new_data(1) * ones(3, 1)) – K*u); % Initial acceleration
u_history = zeros(3, length(new_time));
a_history = zeros(3, length(new_time));
a_history(:, 1) = a;
for i = 1:length(new_time)-1
% Predictors
u_pred = u + (new_dt * v) + ((new_dt^2) * (0.5-beta) * a);
v_pred = v + (new_dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((new_data(i+1) * ones(3, 1)) – K * u_pred);
% Correctors
u = u_pred + (beta * (new_dt^2) * a_new);
v = v_pred + (gamma * new_dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
% Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(new_time, a_history(i, :));
title([‘Absolute Acceleration Response at DOF ‘, num2str(i), ‘ (Resampled at ‘, num2str(new_fs), ‘ Hz)’]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
end
——————————————————————————————————————–
I’m getting error in obtaining:
The first modal period as 1 second.
The correct Newmark Beta plots. I’ve generated an MATLAB code based on these pointed problems, such that:
Q: Consider a 2D 3-story shear building model.
1. Form the mass and stiffness matrices for this building model. No damping in needed for this problem.
2. Using trial and errors, select meaningful story mass and stiffness parameters so that the first natural frequency of the building is 1 sec. Consider that the story mass and stiffness values are similar among the three stories; therefore, you need to set only one stiffness and one mass parameter. Use your engineering judgement and explain your logic. Find and plot the mode shapes of the building model.
3. Implement a Newmark-beta algorithm for time integration of the dynamic equilibrium equation. Use a unidirectional earthquake base excitation as input and solve for the acceleration response at the three DOFs. For the earthquake base excitation, use this input file with a sampling frequency of 100 Hz. Plot the time history of absolute acceleration response at each floor.
4. Resample the input signal at 20, 10, and 2 Hz and redo steps 4-5 with integration time step size of 0.05, 0.1, and 0.5 sec, respectively. Compare the results and explain your observations.
MATLAB CODE
—————————————————————————————————————–
clear all;
clc;
close all;
%% INPUT Parameters:
m = 1; % Initial arbitrary mass of each story
k = 1; % Initial arbitrary stiffness of each story
%% Solution-1: Form Mass and Stiffness Matrices
M = m * eye(3); % Mass matrix
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Stiffness matrix
%% Solution-2: Adjust Mass and Stiffness based on target frequency
target_frequency = 1; % Natural Frequency (Hz)
target_omega = 2 * pi * target_frequency; % Angular Frequency (rad/s)
% Adjust stiffness based on the target frequency
k = target_omega^2 * m / 2;
K = [ 2*k, -k, 0; -k, 2*k, -k; 0, -k, k]; % Updated Stiffness matrix
%% Solution-3: Find and Plot Mode Shapes
[eigVectors, eigValues] = eig(K, M); % Solve eigenvalue problem
omega = sqrt(diag(eigValues)); % Natural frequencies (rad/s)
figure;
for i = 1:3
subplot(3, 1, i);
plot([0 eigVectors(:,i)’], ‘o-‘); % Plot mode shapes
title([‘Mode Shape ‘, num2str(i)]);
xlabel(‘Story’);
ylabel(‘Displacement’);
end
%% Solution-4: Implement Newmark-beta algorithm for dynamic analysis
% Parameters for Newmark-beta
beta = 1/4;
gamma = 1/2;
% Load earthquake data
data = load(‘CNP100.txt’); % Load earthquake data
dt = 0.01; % Sampling interval for 100 Hz
time = (0:length(data)-1)*dt;
% Initial conditions
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((data(1) * ones(3, 1)) – K*u); % Initial acceleration
% Time integration using Newmark-beta method
u_history = zeros(3, length(time));
a_history = zeros(3, length(time));
a_history(:, 1) = a;
for i = 1:length(time)-1
% Predictors
u_pred = u + (dt * v) + ((dt^2) * (0.5-beta) * a);
v_pred = v + (dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((data(i+1) * ones(3, 1)) – (K * u_pred));
% Correctors
u = u_pred + (beta * (dt^2) * a_new);
v = v_pred + (gamma * dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
%% Solution-5: Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(time, a_history(i, :));
title([‘Absolute Acceleration Response Sampled at 100 Hz at DOF ‘, num2str(i)]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
%% Solution-6: Resample input signal and repeat the analysis
frequencies = [20, 10, 2];
time_steps = [0.05, 0.1, 0.5];
for j = 1:length(frequencies)
new_fs = frequencies(j);
new_dt = 1/new_fs;
new_data = resample(data, new_fs, 100);
new_time = (0:length(new_data)-1)*new_dt;
% Repeat the Newmark-beta integration with new data
u = zeros(3, 1); % Initial displacement
v = zeros(3, 1); % Initial velocity
a = M ((new_data(1) * ones(3, 1)) – K*u); % Initial acceleration
u_history = zeros(3, length(new_time));
a_history = zeros(3, length(new_time));
a_history(:, 1) = a;
for i = 1:length(new_time)-1
% Predictors
u_pred = u + (new_dt * v) + ((new_dt^2) * (0.5-beta) * a);
v_pred = v + (new_dt * (1-gamma) * a);
% Solve for acceleration
a_new = M ((new_data(i+1) * ones(3, 1)) – K * u_pred);
% Correctors
u = u_pred + (beta * (new_dt^2) * a_new);
v = v_pred + (gamma * new_dt * a_new);
% Store response
u_history(:, i+1) = u;
a_history(:, i+1) = a_new;
a = a_new;
end
% Plot time history of absolute acceleration response
figure;
for i = 1:3
subplot(3, 1, i);
plot(new_time, a_history(i, :));
title([‘Absolute Acceleration Response at DOF ‘, num2str(i), ‘ (Resampled at ‘, num2str(new_fs), ‘ Hz)’]);
xlabel(‘Time (s)’);
ylabel(‘Acceleration (m/s^2)’);
end
end
——————————————————————————————————————–
I’m getting error in obtaining:
The first modal period as 1 second.
The correct Newmark Beta plots. newmarkbeta, modalperiod, structuraldynamics MATLAB Answers — New Questions
[HTTP]:500 – [CorrelationId]:~ [Version]:16.0.0.25012
I use the PnP Modern Search to display search results on my SharePoint page, but I encountered an error like this:
What is causing this problem and how can I fix it?
Thank you
I use the PnP Modern Search to display search results on my SharePoint page, but I encountered an error like this: What is causing this problem and how can I fix it?Thank you Read More
Setting up Limited Account Creation Role in Azure AD
Hi everyone,
I’m looking to set up a specific role in Azure AD that allows a user to only create AD accounts without additional administrative privileges. I’ve explored the default roles but couldn’t find one suitable for this purpose. Could anyone advise on how to create a custom role or modify permissions to achieve this?
Thank you in advance for your assistance!
Best regards,
Bu
Hi everyone,I’m looking to set up a specific role in Azure AD that allows a user to only create AD accounts without additional administrative privileges. I’ve explored the default roles but couldn’t find one suitable for this purpose. Could anyone advise on how to create a custom role or modify permissions to achieve this?Thank you in advance for your assistance!Best regards, Bu Read More
Why do I get this error? com.mathworks.toolbox.javabuilder.internal.MWMCR
I keep on getting this error when trying to run on server.
java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.toolbox.javabuilder.internal.MWMCR
com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
SingleDose.doGet(SingleDose.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51
Can somebody please explain what should I do? I dont have problem to run the .jsp file. The error will come only when I try to simulate the webfigure.
*Work done:* Install SDK, mex -setup, install MCR, putting javabuilder.jar in Tomcat lib, set environment for JAVA_HOME JAVA_JRE CLASSPATH Path CATALINA_HOME.I keep on getting this error when trying to run on server.
java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.toolbox.javabuilder.internal.MWMCR
com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
SingleDose.doGet(SingleDose.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51
Can somebody please explain what should I do? I dont have problem to run the .jsp file. The error will come only when I try to simulate the webfigure.
*Work done:* Install SDK, mex -setup, install MCR, putting javabuilder.jar in Tomcat lib, set environment for JAVA_HOME JAVA_JRE CLASSPATH Path CATALINA_HOME. I keep on getting this error when trying to run on server.
java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.toolbox.javabuilder.internal.MWMCR
com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
SingleDose.doGet(SingleDose.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51
Can somebody please explain what should I do? I dont have problem to run the .jsp file. The error will come only when I try to simulate the webfigure.
*Work done:* Install SDK, mex -setup, install MCR, putting javabuilder.jar in Tomcat lib, set environment for JAVA_HOME JAVA_JRE CLASSPATH Path CATALINA_HOME. java, webfigure MATLAB Answers — New Questions
how to select simulink block through keyboard
hi, i want select the blocks through keyboard, as following fig shows, i want select the lower block, it’s possible or not?hi, i want select the blocks through keyboard, as following fig shows, i want select the lower block, it’s possible or not? hi, i want select the blocks through keyboard, as following fig shows, i want select the lower block, it’s possible or not? select block, keyboard MATLAB Answers — New Questions
Project 3D surface onto 2D plot
Hi all,
I have a set of X,Y,Z data where X and Y represent coordinates and Z the corresponding elevation. How can I now plot a 2D image with the projection of the 3D surface on it?
In stead of:
<<https://www.researchgate.net/profile/M_Hennessey/publication/267491866/figure/fig4/AS:295759909015586@1447526065926/FIGURE-4-LONE-MOUNTAIN-CHARACTERIZED-USING-THE-R-3D-MATLAB-INTERP2-COMMAND-AND-DEM-DATA.png>>
I’d like to have something like this:
<<http://cn.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/19791/versions/2/screenshot.jpg>>
Thanks!Hi all,
I have a set of X,Y,Z data where X and Y represent coordinates and Z the corresponding elevation. How can I now plot a 2D image with the projection of the 3D surface on it?
In stead of:
<<https://www.researchgate.net/profile/M_Hennessey/publication/267491866/figure/fig4/AS:295759909015586@1447526065926/FIGURE-4-LONE-MOUNTAIN-CHARACTERIZED-USING-THE-R-3D-MATLAB-INTERP2-COMMAND-AND-DEM-DATA.png>>
I’d like to have something like this:
<<http://cn.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/19791/versions/2/screenshot.jpg>>
Thanks! Hi all,
I have a set of X,Y,Z data where X and Y represent coordinates and Z the corresponding elevation. How can I now plot a 2D image with the projection of the 3D surface on it?
In stead of:
<<https://www.researchgate.net/profile/M_Hennessey/publication/267491866/figure/fig4/AS:295759909015586@1447526065926/FIGURE-4-LONE-MOUNTAIN-CHARACTERIZED-USING-THE-R-3D-MATLAB-INTERP2-COMMAND-AND-DEM-DATA.png>>
I’d like to have something like this:
<<http://cn.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/19791/versions/2/screenshot.jpg>>
Thanks! matlab, 3d plots MATLAB Answers — New Questions
How to compare between simulink setting file?
How to compare between simulink setting file
visdiff command is not what i wanted..How to compare between simulink setting file
visdiff command is not what i wanted.. How to compare between simulink setting file
visdiff command is not what i wanted.. simulink, compare file MATLAB Answers — New Questions
Below powershell script is not working on all the devices
Hi Guys,
I am trying to push below powershell script on intune through the Scripts option in Devices and it is working for some devices but not on all the devices. Basically we want to change the default font from Aptos to Verdana. Please suggest me here.. Powershell champs confirmed there is no issue in the script. FYI, if i run the below script directly in powershell as administrator it will work straight away and change the font in excel. If i don’t run powershell as administrator and run the script it will throw error saying registry access is not allowed. Please help.
if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions” -force -ea SilentlyContinue };
if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions” -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘extractdatadisableui’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘font’ -Value ‘Verdana, 11’ -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublish’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublishwarning’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions’ -Name ‘fupdateext_78_1’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
Thanks,
Ram
Hi Guys,I am trying to push below powershell script on intune through the Scripts option in Devices and it is working for some devices but not on all the devices. Basically we want to change the default font from Aptos to Verdana. Please suggest me here.. Powershell champs confirmed there is no issue in the script. FYI, if i run the below script directly in powershell as administrator it will work straight away and change the font in excel. If i don’t run powershell as administrator and run the script it will throw error saying registry access is not allowed. Please help.if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions” -force -ea SilentlyContinue };if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions” -force -ea SilentlyContinue };New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘extractdatadisableui’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘font’ -Value ‘Verdana, 11’ -PropertyType String -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublish’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublishwarning’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions’ -Name ‘fupdateext_78_1’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;Thanks,Ram Read More
Can anyone recommend me best vocal remover software for PC?
Hello, I’m looking for a best vocal remover software for PC Windows 11 recently, hoping to remove vocal from a song. I’ve tried several apps, but the effect is not very ideal, the operation is also relatively complicated, and the sound quality is often affected. I wonder if any friends can recommend a vocal remover software that is easy to operate and can maintain the original sound quality as much as possible? If you have good suggestions or experience, please share with me, thank you very much!
Hello, I’m looking for a best vocal remover software for PC Windows 11 recently, hoping to remove vocal from a song. I’ve tried several apps, but the effect is not very ideal, the operation is also relatively complicated, and the sound quality is often affected. I wonder if any friends can recommend a vocal remover software that is easy to operate and can maintain the original sound quality as much as possible? If you have good suggestions or experience, please share with me, thank you very much! Read More
Webwrite to metadata Thingspeak Channel
Helllo,
I would like to write to the Metadat of my channel but I cna’t get it to work. as a test , I tried wiriting to the Status which works.
if fieldName = "status"; is changed to fieldName = "metadata"; it doesn’t work! does anyone know the trick for getting this to work?
code here:
%keys & ID here …
thingSpeakURL = "http://api.thingspeak.com/";
thingSpeakWriteURL = thingSpeakURL + "update";
fieldName = "status";
fieldValue = ‘[100 100 100 92 93 93 94 ; 55 55 56 57 58 63 64 ; 333 444 555 666 777 888 999]’;
response = webwrite(thingSpeakWriteURL,"api_key",writeApiKey,fieldName,fieldValue);Helllo,
I would like to write to the Metadat of my channel but I cna’t get it to work. as a test , I tried wiriting to the Status which works.
if fieldName = "status"; is changed to fieldName = "metadata"; it doesn’t work! does anyone know the trick for getting this to work?
code here:
%keys & ID here …
thingSpeakURL = "http://api.thingspeak.com/";
thingSpeakWriteURL = thingSpeakURL + "update";
fieldName = "status";
fieldValue = ‘[100 100 100 92 93 93 94 ; 55 55 56 57 58 63 64 ; 333 444 555 666 777 888 999]’;
response = webwrite(thingSpeakWriteURL,"api_key",writeApiKey,fieldName,fieldValue); Helllo,
I would like to write to the Metadat of my channel but I cna’t get it to work. as a test , I tried wiriting to the Status which works.
if fieldName = "status"; is changed to fieldName = "metadata"; it doesn’t work! does anyone know the trick for getting this to work?
code here:
%keys & ID here …
thingSpeakURL = "http://api.thingspeak.com/";
thingSpeakWriteURL = thingSpeakURL + "update";
fieldName = "status";
fieldValue = ‘[100 100 100 92 93 93 94 ; 55 55 56 57 58 63 64 ; 333 444 555 666 777 888 999]’;
response = webwrite(thingSpeakWriteURL,"api_key",writeApiKey,fieldName,fieldValue); webwrite metadata MATLAB Answers — New Questions
Converting a color image into a set of data
Hi, I have a thermal image in png form, with a color scale/map to go with it of a cell. I am just looking to try and converrt the colors to the designated values based on the color scale/map to the different values based on the color map. Then I am looking to create a graph of the color intesnsity verus distance along the cell. I have attached an image of what I am trying to convert, if you have any tips or information that may help that would be greately appreciated.Hi, I have a thermal image in png form, with a color scale/map to go with it of a cell. I am just looking to try and converrt the colors to the designated values based on the color scale/map to the different values based on the color map. Then I am looking to create a graph of the color intesnsity verus distance along the cell. I have attached an image of what I am trying to convert, if you have any tips or information that may help that would be greately appreciated. Hi, I have a thermal image in png form, with a color scale/map to go with it of a cell. I am just looking to try and converrt the colors to the designated values based on the color scale/map to the different values based on the color map. Then I am looking to create a graph of the color intesnsity verus distance along the cell. I have attached an image of what I am trying to convert, if you have any tips or information that may help that would be greately appreciated. image analysis, colormap MATLAB Answers — New Questions
Congratulations to the Nonprofit 2024 Partner of the Year Award Winner and Finalists
Drumroll, please! We’re thrilled to announce the winner and finalists for the Nonprofit 2024 Microsoft Partner of the Year Awards.
Congratulations to our outstanding partners, their exceptional work is transforming industries and making a lasting impact!
WINNER
We are proud to announce that Valorem Reply has won the Nonprofit 2024 Microsoft Partner of the Year!
FINALISTS
We are excited to share that Exigo Tech, KPMG and Wipfli were recognized as finalists for Nonprofit 2024 Microsoft Partner of the Year!
Read the announcement blog: https://aka.ms/POTYA2024_announcement
Drumroll, please! We’re thrilled to announce the winner and finalists for the Nonprofit 2024 Microsoft Partner of the Year Awards.
Congratulations to our outstanding partners, their exceptional work is transforming industries and making a lasting impact!
WINNER
We are proud to announce that Valorem Reply has won the Nonprofit 2024 Microsoft Partner of the Year!
FINALISTS
We are excited to share that Exigo Tech, KPMG and Wipfli were recognized as finalists for Nonprofit 2024 Microsoft Partner of the Year!
Read the announcement blog: https://aka.ms/POTYA2024_announcement
Read More
Why do I get ‘An error occurred during writing’ error when writing data to a virtual serial port?
I am a using a virtual COM serial port (created with drivers from an USB-RS232 adapter, Bluetooth adapter, or TCP/IP COM port redirector), and the serial communication object in MATLAB version R2013a (or equivalent serial object in the Instrument Control Toolbox).
However, upon writing data to the port with FPRINTF or FWRITE I get an ‘Unexpected Error: An error occurred during writing.’, even though the data has been written successfully to the device.
s=serial(‘COM4’);
fopen(s);
fprintf(s, ‘abc’);
ERROR: Error using serial/fprintf (line 144)
Unexpected Error: An error occurred during writing.
A similar behavior and error message is observed with FWRITE:
s=serial(‘COM4’);
fopen(s);
fwrite(s, [97 98 99]);
ERROR: Error using serial/fwrite (line 199)
Unsuccessful write: An error occurred during writing.
I have tested that a 3rd party software can write data to the virtual serial port with no error.
Why do I get these errors and what can I do about it?I am a using a virtual COM serial port (created with drivers from an USB-RS232 adapter, Bluetooth adapter, or TCP/IP COM port redirector), and the serial communication object in MATLAB version R2013a (or equivalent serial object in the Instrument Control Toolbox).
However, upon writing data to the port with FPRINTF or FWRITE I get an ‘Unexpected Error: An error occurred during writing.’, even though the data has been written successfully to the device.
s=serial(‘COM4’);
fopen(s);
fprintf(s, ‘abc’);
ERROR: Error using serial/fprintf (line 144)
Unexpected Error: An error occurred during writing.
A similar behavior and error message is observed with FWRITE:
s=serial(‘COM4’);
fopen(s);
fwrite(s, [97 98 99]);
ERROR: Error using serial/fwrite (line 199)
Unsuccessful write: An error occurred during writing.
I have tested that a 3rd party software can write data to the virtual serial port with no error.
Why do I get these errors and what can I do about it? I am a using a virtual COM serial port (created with drivers from an USB-RS232 adapter, Bluetooth adapter, or TCP/IP COM port redirector), and the serial communication object in MATLAB version R2013a (or equivalent serial object in the Instrument Control Toolbox).
However, upon writing data to the port with FPRINTF or FWRITE I get an ‘Unexpected Error: An error occurred during writing.’, even though the data has been written successfully to the device.
s=serial(‘COM4’);
fopen(s);
fprintf(s, ‘abc’);
ERROR: Error using serial/fprintf (line 144)
Unexpected Error: An error occurred during writing.
A similar behavior and error message is observed with FWRITE:
s=serial(‘COM4’);
fopen(s);
fwrite(s, [97 98 99]);
ERROR: Error using serial/fwrite (line 199)
Unsuccessful write: An error occurred during writing.
I have tested that a 3rd party software can write data to the virtual serial port with no error.
Why do I get these errors and what can I do about it? serial, com, rs232, rs-232, fwrite, fprintf MATLAB Answers — New Questions
Why am I unable to use my serial port after a hardware reset if the port was open in MATLAB?
I use USB-devices that create virtual serial ports in Windows, for instance COM5. When MATLAB opens a connection with one of these devices and the device disconnects and reconnects, I am unable to use the device any more. What can I do to regain access to the device?
ERROR: myComPort = serial(‘COM5’);fopen(myComPort);% now disconnect the device
% now connect the device again, the following will be unsuccessful:delete(myComPort)
clear myComPortmyComPort = serial(‘COM5’);fopen(myComPort);Error using serial/fopen (line 72)
Open failed: Port: COM5 is not available. Available ports: COM1, COM3.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.I use USB-devices that create virtual serial ports in Windows, for instance COM5. When MATLAB opens a connection with one of these devices and the device disconnects and reconnects, I am unable to use the device any more. What can I do to regain access to the device?
ERROR: myComPort = serial(‘COM5’);fopen(myComPort);% now disconnect the device
% now connect the device again, the following will be unsuccessful:delete(myComPort)
clear myComPortmyComPort = serial(‘COM5’);fopen(myComPort);Error using serial/fopen (line 72)
Open failed: Port: COM5 is not available. Available ports: COM1, COM3.
Use INSTRFIND to determine if other instrument objects are connected to the requested device. I use USB-devices that create virtual serial ports in Windows, for instance COM5. When MATLAB opens a connection with one of these devices and the device disconnects and reconnects, I am unable to use the device any more. What can I do to regain access to the device?
ERROR: myComPort = serial(‘COM5’);fopen(myComPort);% now disconnect the device
% now connect the device again, the following will be unsuccessful:delete(myComPort)
clear myComPortmyComPort = serial(‘COM5’);fopen(myComPort);Error using serial/fopen (line 72)
Open failed: Port: COM5 is not available. Available ports: COM1, COM3.
Use INSTRFIND to determine if other instrument objects are connected to the requested device. serial, reconnect MATLAB Answers — New Questions
Change a variable string to a normal variable
I need to change a string variable(x="Eval_E01") to a normal variable for example y=Eval_E01.
Is there a instrucction for this?
Thaks in advanceI need to change a string variable(x="Eval_E01") to a normal variable for example y=Eval_E01.
Is there a instrucction for this?
Thaks in advance I need to change a string variable(x="Eval_E01") to a normal variable for example y=Eval_E01.
Is there a instrucction for this?
Thaks in advance string variable, normal variable MATLAB Answers — New Questions
Why do I receive ‘Failed to open serial port COM* to communicate with the board’ or ‘Open fail: Port: COM* is not available. No ports are available.’ error with MATLAB/Simulink support package for Arduino Hardware
Why do I receive the following error when trying to connect to Arduino Hardware with the MATLAB support package?
ERROR: Failed to open serial port COM6 to communicate with board Uno. Make
sure there is no other MATLAB arduino object for this board. For
troubleshooting, see Arduino Hardware Troubleshooting.
Correspondingly using the Simulink Support Package for Arduino, why do I receive the following error when building a model for the Arduino?
ERROR: Open fail: Port: COM* is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device.Why do I receive the following error when trying to connect to Arduino Hardware with the MATLAB support package?
ERROR: Failed to open serial port COM6 to communicate with board Uno. Make
sure there is no other MATLAB arduino object for this board. For
troubleshooting, see Arduino Hardware Troubleshooting.
Correspondingly using the Simulink Support Package for Arduino, why do I receive the following error when building a model for the Arduino?
ERROR: Open fail: Port: COM* is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device. Why do I receive the following error when trying to connect to Arduino Hardware with the MATLAB support package?
ERROR: Failed to open serial port COM6 to communicate with board Uno. Make
sure there is no other MATLAB arduino object for this board. For
troubleshooting, see Arduino Hardware Troubleshooting.
Correspondingly using the Simulink Support Package for Arduino, why do I receive the following error when building a model for the Arduino?
ERROR: Open fail: Port: COM* is not available. No ports are available.
Use INSTRFIND to determine if other instrument objects are connected to the requested device. MATLAB Answers — New Questions
HELPPP -Command Window broken after resetting
I put an input in and then when I restarted my computer the bottom left of my MATLABS online says waiting for input and nothing I put into my command window works. I tried pause, end, ect.. Is there a way to hard reset my command window or the give the input and end it so I can start a different command?? I’m using MATLAB Online.I put an input in and then when I restarted my computer the bottom left of my MATLABS online says waiting for input and nothing I put into my command window works. I tried pause, end, ect.. Is there a way to hard reset my command window or the give the input and end it so I can start a different command?? I’m using MATLAB Online. I put an input in and then when I restarted my computer the bottom left of my MATLABS online says waiting for input and nothing I put into my command window works. I tried pause, end, ect.. Is there a way to hard reset my command window or the give the input and end it so I can start a different command?? I’m using MATLAB Online. waiting for input, command window MATLAB Answers — New Questions
Video analytics anonymous users
Hello
Regarding video analytics, we generated a link so that any user can open it, which was shared with hundreds of users. When reviewing the analytics, we observed that the information only reflects the views of those users who belong to the same tenant.
Are all those views made by anonymous users not counted?
HelloRegarding video analytics, we generated a link so that any user can open it, which was shared with hundreds of users. When reviewing the analytics, we observed that the information only reflects the views of those users who belong to the same tenant.Are all those views made by anonymous users not counted? Read More
Security personal access
Hi Please advise. I cannot access security in my MS account. asking for authentication via app or email. My email has been changed on my account but old email is shown (which is now inactive). Where do I go to get help? TIA
Hi Please advise. I cannot access security in my MS account. asking for authentication via app or email. My email has been changed on my account but old email is shown (which is now inactive). Where do I go to get help? TIA Read More