Month: June 2024
Prevent Graph Bars from spilling on the 0 line when number is negative
Hi,
I’m using line graphs with a solid fill and a solid line to make the end rounded. The problem is when that when a number is negative, the solid line spills on the wrong side of the zero line.
Any way I could prevent that? Maybe delete that single blue line and leave the others ones that would hopefully be positive ? I’m pretty sure the problem is the solid line, but it’s the only way to get that rounded look I believe.
I’m using Excel version 2405 on windows. Office 365.
Thanks in advance !
Here is a picture
Hi,I’m using line graphs with a solid fill and a solid line to make the end rounded. The problem is when that when a number is negative, the solid line spills on the wrong side of the zero line. Any way I could prevent that? Maybe delete that single blue line and leave the others ones that would hopefully be positive ? I’m pretty sure the problem is the solid line, but it’s the only way to get that rounded look I believe. I’m using Excel version 2405 on windows. Office 365.Thanks in advance ! Here is a picture Read More
Grow with Copilot for Microsoft 365 – June 2024
Welcome to Grow with Copilot for Microsoft 365, where we curate key relevant news, insights, and resources to help small and medium organizations harness the power of Copilot.
In this edition, we take a deep dive into how small and medium-sized businesses are embracing AI in their everyday workflows despite the common hurdles SMB employees often encounter in adopting AI technologies. We also highlight Floww, a FinTech firm that capitalizes on Copilot for Microsoft 365 to boost operational efficiency and communications, discuss how Copilot is tackling the pressing issue of data security and privacy, and lastly, provide resources for the adoption of Copilot and best practices for skill development to help organizations fully leverage Copilot’s capabilities.
A deeper look at the state of AI in small & medium businesses
We are witnessing how AI is reshaping work for organizations of all sizes in last month’s 2024 Work Trend Index Annual Report. This month, we dove deeper into the report for findings specific to small and medium businesses.
From the study, leaders believe that the top three benefits being increasing employee productivity, accelerating growth and innovation, and automating and streamlining business. In addition, while 78% of SMB workers have used generative AI at work, even more so (+10 ppts) compared to large businesses, SMB workers face more challenges in AI adoption, either feeling more (+9 ppts) intimidated to learn how to use generative AI tools or (-5 ppts) having received any AI training at work.
As we continue to learn in our work with SMB customers, there is a path forward: identify a business problem and apply AI, integrate AI tools across your business, take a top down and bottoms up approach, and prioritize training. Read more from Brenna Robinson’s blog on Microsoft 365 as well as her interviews in Fortune magazine, Inc. magazine, and Entrepreneur magazine.
SMB Customer spotlight: Floww
Speaking of working with customers, we’d like to you to meet Floww, a fast-growing FinTech company with about 100 employees in the United Kingdom that has created a financial infrastructure platform that connects investors and innovators. Floww helps startups and scaleups find funding from angels, VCs, and other private equity investors, and helps investors manage their portfolios and collaborate with each other.
Floww uses Copilot for Microsoft 365 to improve efficiency and communications:
Copilot for Microsoft 365 process, analyze, and summarize large amounts of data from various sources, such as financial documents, regulatory compliance, and customer profiles. Copilot also helps Floww create mockups, draft policies, and share information with customers faster and easier.
Floww trusts Microsoft to ensure data security and compliance:
Floww works with sensitive data that requires high levels of security and compliance. Floww relies on Microsoft’s security tools and features to protect its data and maintain its ISO certification. Floww also values the trust that Microsoft provides for its customers and partners.
Check out the full customer story and other customer stories here.
How Copilot for Microsoft 365 delivers on data security and privacy
Like Floww, many customers have data privacy and compliance top of mind. It’s no wonder as research shows 82% of ransomware attacks are targeted at small and medium-sized businesses[1].
Our customers, when using Microsoft 365 for Business and Copilot for Microsoft 365, get peace of mind with the highest standards of data protection. Microsoft 365 for Business protects passwords, secure access, keep your business data safe, manage your devices so they stay secure, and defend your business against cyberthreats. You can learn more about our three subscriptions plans here. Additionally, as a Microsoft 365 for Business user, your Web-grounded AI chat in the browser, Outlook, M365 apps or Teams come with enterprise data protection to safeguard your business data and devices with integrated identity, security, compliance, device management, and privacy protection.
Now Copilot for Microsoft 365 also works with work & business data in the Microsoft 365 Graph – your emails, calendars, and documents you have access to. That is how it has the power to become your personal assistant at work, from recapping Teams meetings, to turning a Word document into a stunning PowerPoint. Here’s how Microsoft protects your data and gives you control over it.
Tenant Security
Copilot operates within the Microsoft 365 tenant, inheriting all the existing security, privacy, identity, and compliance requirements. It is built upon a foundation of trust, ensuring that organizational data is distinct and separate from other tenants. Watch this video to learn more about how Copilot is built upon a foundation of trust.
Data Defense
Data is considered the customer’s business, and Copilot respects the customer’s control over its collection, use, and distribution. It ensures that data is stored, encrypted, processed, and defended to the highest standards. Further, we don’t use your customer data to train foundation models, and Copilot adheres to existing data permissions and policies, and its responses to you based only on data that you personally can access. Watch the following video to learn how data is stored, encrypted, processed, and defended.
Azure OpenAI Service
Interactions with Copilot (prompts) are processed using Azure OpenAI services, which prioritize the integrity and protection of your organizational data. Watch this video for a deeper understanding of how Azure OpenAI services power Copilot while prioritizing data integrity.
For all the latest updates and deep dive information start at Microsoft Copilot for Microsoft 365 documentation | Microsoft Learn and aka.ms/copilotlab to learn more about how to use Copilot. Find adoption and skilling best practices at adoption.microsoft.com
[1] FBI Releases the Internet Crime Complaint Center 2021 Internet Crime Report, FBI. March 22, 2022.
More highlights: Build, Mechanics, new Partner resources
Last month, Microsoft Build 2024 had over 3000 in-person attendees in Seattle and over 200K+ virtual attendees. We announced exciting news across the company, but one not-to-be-missed for SMB is Team Copilot. Available as preview later in this calendar year, Team Copilot expands Copilot beyond a personal assistant to work on behalf of a team, improving collaboration and project management. Read Jared Spataro’s blog for how it works as well as other news in Copilot for Microsoft 365. Watch the 90-Second Recap: Satya Nadella’s Keynote if you want to get all the news announced across Microsoft.
Not to be missed: the top two Copilot videos in Microsoft Mechanics, the Microsoft official video programming to teach you how to apply Microsoft innovation to the work you do every day, explain how Copilot for Microsoft 365 works and how to get ready for Copilot in three simple set up steps.
If you are one of our CSPs, we recently launched new partner led adoption immersion experience – consisting of new click-through demos for Sales, Marketing HR, Exec personas (with more coming soon), facilitator guide to deliver this in a workshop, and participate guide for end users to follow along. Check here for the entirety of the content: aka.ms/CopilotImmersionCSPLed .Go here to quickly access the full list of demos: aka.ms/CopilotImmersion/DemosList.
That’s it for this edition! Thank you for reading. Let us know in the comments how you use Copilot for Microsoft 365 to grow your business!
Microsoft Tech Community – Latest Blogs –Read More
How to use roialignLayer in the network?
https://ww2.mathworks.cn/matlabcentral/answers/1965924-use-roialign-layer-in-a-fastrcnn-network
Hello, I encountered a similar issue as in the link while using roialignLayer.The error displayed on my network is:
Input size mismatch.Size of input to this layer is different from the expected input size.Inputs to this layer:
from layer"activation_40_relu"(size 14(S)× 14(S)× 1024(C)× 1(B))
from layer "regionProposal" (size 1(S)×5(C)×1(B))
Can someone tell me how to modify the network or provide an example of successfully using roialignLayer?
Thank you very much, the network has provided.https://ww2.mathworks.cn/matlabcentral/answers/1965924-use-roialign-layer-in-a-fastrcnn-network
Hello, I encountered a similar issue as in the link while using roialignLayer.The error displayed on my network is:
Input size mismatch.Size of input to this layer is different from the expected input size.Inputs to this layer:
from layer"activation_40_relu"(size 14(S)× 14(S)× 1024(C)× 1(B))
from layer "regionProposal" (size 1(S)×5(C)×1(B))
Can someone tell me how to modify the network or provide an example of successfully using roialignLayer?
Thank you very much, the network has provided. https://ww2.mathworks.cn/matlabcentral/answers/1965924-use-roialign-layer-in-a-fastrcnn-network
Hello, I encountered a similar issue as in the link while using roialignLayer.The error displayed on my network is:
Input size mismatch.Size of input to this layer is different from the expected input size.Inputs to this layer:
from layer"activation_40_relu"(size 14(S)× 14(S)× 1024(C)× 1(B))
from layer "regionProposal" (size 1(S)×5(C)×1(B))
Can someone tell me how to modify the network or provide an example of successfully using roialignLayer?
Thank you very much, the network has provided. deep learning, computer vision MATLAB Answers — New Questions
Is the “kinematicTrajectory” function correct for calculating angular velocity?
Hello there,
I noticed that the “kinematicTrajectory” function calculates angular velocity from the body frame to the earth frame using the “rotatepoint” function. The “rotatepoint” function can be formulated with the Rzyx rotation matrix.
where is roll, is pitch, is yaw.
However, some papers [1] and references [2] use the transfer matrix T.
Does anyone know which is correct?
[1] Emran, Bara J., and Homayoun Najjaran. "A review of quadrotor: An underactuated mechanical system." Annual Reviews in Control 46 (2018): 165-180.
[2] KINEMATICS OF MOVING FRAMES. [Online]. Available: https://ocw.mit.edu/courses/2-017j-design-of-electromechanical-robotic-systems-fall-2009/0da9fb3965410fd50979bb179b56805a_MIT2_017JF09_ch09.pdf.Hello there,
I noticed that the “kinematicTrajectory” function calculates angular velocity from the body frame to the earth frame using the “rotatepoint” function. The “rotatepoint” function can be formulated with the Rzyx rotation matrix.
where is roll, is pitch, is yaw.
However, some papers [1] and references [2] use the transfer matrix T.
Does anyone know which is correct?
[1] Emran, Bara J., and Homayoun Najjaran. "A review of quadrotor: An underactuated mechanical system." Annual Reviews in Control 46 (2018): 165-180.
[2] KINEMATICS OF MOVING FRAMES. [Online]. Available: https://ocw.mit.edu/courses/2-017j-design-of-electromechanical-robotic-systems-fall-2009/0da9fb3965410fd50979bb179b56805a_MIT2_017JF09_ch09.pdf. Hello there,
I noticed that the “kinematicTrajectory” function calculates angular velocity from the body frame to the earth frame using the “rotatepoint” function. The “rotatepoint” function can be formulated with the Rzyx rotation matrix.
where is roll, is pitch, is yaw.
However, some papers [1] and references [2] use the transfer matrix T.
Does anyone know which is correct?
[1] Emran, Bara J., and Homayoun Najjaran. "A review of quadrotor: An underactuated mechanical system." Annual Reviews in Control 46 (2018): 165-180.
[2] KINEMATICS OF MOVING FRAMES. [Online]. Available: https://ocw.mit.edu/courses/2-017j-design-of-electromechanical-robotic-systems-fall-2009/0da9fb3965410fd50979bb179b56805a_MIT2_017JF09_ch09.pdf. kinematictrajectory, rotation matrix, issue MATLAB Answers — New Questions
how to fill color in 1/4 th circle
clear
syms x
figure
fun = sqrt(2*x-x.^2);
fplot(fun,[0,2.2]);
hold on
y1 = [0 1 0 0];
x1 = [0 1 1 0];
fill(x1,y1,’y’);
hold on
x2 = 1:0.01:2;
y2 = sqrt(2*x2-x2.^2);
fill([x2,fliplr(x2)],[y2,fliplr(y2)],’r’)clear
syms x
figure
fun = sqrt(2*x-x.^2);
fplot(fun,[0,2.2]);
hold on
y1 = [0 1 0 0];
x1 = [0 1 1 0];
fill(x1,y1,’y’);
hold on
x2 = 1:0.01:2;
y2 = sqrt(2*x2-x2.^2);
fill([x2,fliplr(x2)],[y2,fliplr(y2)],’r’) clear
syms x
figure
fun = sqrt(2*x-x.^2);
fplot(fun,[0,2.2]);
hold on
y1 = [0 1 0 0];
x1 = [0 1 1 0];
fill(x1,y1,’y’);
hold on
x2 = 1:0.01:2;
y2 = sqrt(2*x2-x2.^2);
fill([x2,fliplr(x2)],[y2,fliplr(y2)],’r’) xy MATLAB Answers — New Questions
警告: 在读取工作表 2016 时发生错误:未定义与 ‘Interface.00020846_0000_0000_C000_000000000046’ 类型的输入参数相对应的函数 ‘Select’。 警告: 在读取工作表 2017 时发生错误:未定义与 ‘Interface.00020846_0000_0000_C000_000000000046
clc
clear
% 让用户选择要读取的 Excel 文件
[filename, pathname] = uigetfile({‘*.xls;*.xlsx’,’Excel Files (*.xls, *.xlsx)’},’选择要读取的Excel文件’);
% 检查用户是否取消了选择
if isequal(filename,0)
disp(‘用户取消了文件选择’);
return;
end
% 构造完整的文件路径
fullfile = fullfile(pathname, filename);
% 获取 Excel 文件中的所有工作表信息
[~,sheets] = xlsfinfo(fullfile);
% 创建一个单元格数组来存储所有工作表的数据
all_data = cell(length(sheets), 1);
% 逐个读取每个工作表的数据
for i = 1:length(sheets)
try
data = xlsread(fullfile, sheets{i});
all_data{i} = data;
catch exception
warning([‘在读取工作表 ‘, sheets{i}, ‘ 时发生错误:’, exception.message]);
end
end
% 显示每个工作表的数据大小
for i = 1:length(sheets)
if ~isempty(all_data{i})
disp([‘工作表名:’, sheets{i}, ‘,数据大小:’, num2str(size(all_data{i}))]);
end
endclc
clear
% 让用户选择要读取的 Excel 文件
[filename, pathname] = uigetfile({‘*.xls;*.xlsx’,’Excel Files (*.xls, *.xlsx)’},’选择要读取的Excel文件’);
% 检查用户是否取消了选择
if isequal(filename,0)
disp(‘用户取消了文件选择’);
return;
end
% 构造完整的文件路径
fullfile = fullfile(pathname, filename);
% 获取 Excel 文件中的所有工作表信息
[~,sheets] = xlsfinfo(fullfile);
% 创建一个单元格数组来存储所有工作表的数据
all_data = cell(length(sheets), 1);
% 逐个读取每个工作表的数据
for i = 1:length(sheets)
try
data = xlsread(fullfile, sheets{i});
all_data{i} = data;
catch exception
warning([‘在读取工作表 ‘, sheets{i}, ‘ 时发生错误:’, exception.message]);
end
end
% 显示每个工作表的数据大小
for i = 1:length(sheets)
if ~isempty(all_data{i})
disp([‘工作表名:’, sheets{i}, ‘,数据大小:’, num2str(size(all_data{i}))]);
end
end clc
clear
% 让用户选择要读取的 Excel 文件
[filename, pathname] = uigetfile({‘*.xls;*.xlsx’,’Excel Files (*.xls, *.xlsx)’},’选择要读取的Excel文件’);
% 检查用户是否取消了选择
if isequal(filename,0)
disp(‘用户取消了文件选择’);
return;
end
% 构造完整的文件路径
fullfile = fullfile(pathname, filename);
% 获取 Excel 文件中的所有工作表信息
[~,sheets] = xlsfinfo(fullfile);
% 创建一个单元格数组来存储所有工作表的数据
all_data = cell(length(sheets), 1);
% 逐个读取每个工作表的数据
for i = 1:length(sheets)
try
data = xlsread(fullfile, sheets{i});
all_data{i} = data;
catch exception
warning([‘在读取工作表 ‘, sheets{i}, ‘ 时发生错误:’, exception.message]);
end
end
% 显示每个工作表的数据大小
for i = 1:length(sheets)
if ~isempty(all_data{i})
disp([‘工作表名:’, sheets{i}, ‘,数据大小:’, num2str(size(all_data{i}))]);
end
end 表格中的数据就是缺失的 MATLAB Answers — New Questions
How to add math symbols to Live Script text?
Some five years ago, I used Matlab as a handy "math typewriter": it was easy to insert symbols to text without remembering their LaTeX keywords. I just opened a dropdown list and picked what I needed.
Now, I have installed Matlab R2023b to my new laptop, and I can not find that functionality any more.
Is it still there, and I’m just not able to find it?
Or, has it been removed, and I’b better just learn my LaTeX?
Or, should I install some extra library to get is working again?
Or, could I return to the old Matlab version (maybe Matlab 2018 or something like this)?Some five years ago, I used Matlab as a handy "math typewriter": it was easy to insert symbols to text without remembering their LaTeX keywords. I just opened a dropdown list and picked what I needed.
Now, I have installed Matlab R2023b to my new laptop, and I can not find that functionality any more.
Is it still there, and I’m just not able to find it?
Or, has it been removed, and I’b better just learn my LaTeX?
Or, should I install some extra library to get is working again?
Or, could I return to the old Matlab version (maybe Matlab 2018 or something like this)? Some five years ago, I used Matlab as a handy "math typewriter": it was easy to insert symbols to text without remembering their LaTeX keywords. I just opened a dropdown list and picked what I needed.
Now, I have installed Matlab R2023b to my new laptop, and I can not find that functionality any more.
Is it still there, and I’m just not able to find it?
Or, has it been removed, and I’b better just learn my LaTeX?
Or, should I install some extra library to get is working again?
Or, could I return to the old Matlab version (maybe Matlab 2018 or something like this)? live script, mathematical symbols, text MATLAB Answers — New Questions
customizing Stakeholders’s setting so that they can only see the shared dashboard in Azure Devops!
hi every body
how can I customize the access settings of Stakeholders in a way that they can NOT see the backlog/board details, especially “assigned to” field
and they can follow the project only from the dashboards and analytic views or board/backlog without details
hi every bodyhow can I customize the access settings of Stakeholders in a way that they can NOT see the backlog/board details, especially “assigned to” fieldand they can follow the project only from the dashboards and analytic views or board/backlog without details Read More
Initially during reation of storage account i did not allowed enabled infrastructure scope.
Later i created using encryption scopes.Then i created a bolob container in advanced section while adding a infrastructure scope it is not showing no availablse scope.
In which step i would miss please correct me.
Later i created using encryption scopes.Then i created a bolob container in advanced section while adding a infrastructure scope it is not showing no availablse scope.In which step i would miss please correct me. Read More
How do I programmatically set the parameters of a Get Transform block?
I want to programmatically set the rigid body tree parameter of a get transform block and I tried doing that using the set_param function. If i write the value of the parameter as a string:
set_param(strcat(modelName, ‘/Get Transform’), ‘RigidBodyTree’, ‘DOF3_Arm’) %DOF3_Arm = importrobot(‘RobotStructure’);
the associated field in the Block’s Parameter will just have a string but no rigid body tree, and if I use a variable instead of the string i get the following error:
Error using Script_function_back2WF
Invalid setting in Get Transform block (mask) ‘Get Transform’ for parameter
‘RigidBodyTree’
What is the correct way of setting this parameter? Thank you in advance!I want to programmatically set the rigid body tree parameter of a get transform block and I tried doing that using the set_param function. If i write the value of the parameter as a string:
set_param(strcat(modelName, ‘/Get Transform’), ‘RigidBodyTree’, ‘DOF3_Arm’) %DOF3_Arm = importrobot(‘RobotStructure’);
the associated field in the Block’s Parameter will just have a string but no rigid body tree, and if I use a variable instead of the string i get the following error:
Error using Script_function_back2WF
Invalid setting in Get Transform block (mask) ‘Get Transform’ for parameter
‘RigidBodyTree’
What is the correct way of setting this parameter? Thank you in advance! I want to programmatically set the rigid body tree parameter of a get transform block and I tried doing that using the set_param function. If i write the value of the parameter as a string:
set_param(strcat(modelName, ‘/Get Transform’), ‘RigidBodyTree’, ‘DOF3_Arm’) %DOF3_Arm = importrobot(‘RobotStructure’);
the associated field in the Block’s Parameter will just have a string but no rigid body tree, and if I use a variable instead of the string i get the following error:
Error using Script_function_back2WF
Invalid setting in Get Transform block (mask) ‘Get Transform’ for parameter
‘RigidBodyTree’
What is the correct way of setting this parameter? Thank you in advance! matlab, simulink, matlab code, functions MATLAB Answers — New Questions
How to Create Slicing Number of 2D plots in matlab
How to Create Slicing Number of 2D plots in matlab Similar plot which i was uploadedHow to Create Slicing Number of 2D plots in matlab Similar plot which i was uploaded How to Create Slicing Number of 2D plots in matlab Similar plot which i was uploaded for research graphs plotting MATLAB Answers — New Questions
Multiple PID tuning in order to control all four states in the inverted pendulum model
Hi!
I have to control the four states of the classical nonlinear inverted pendulum on a cart model (position and velocity of the cart, angle and angular velocity of the pendulum) in Simulink through PID control. Being on a cart it doesn’t have to go through the swing up, the initial condition for the angle is -0.5 (desired angle with a small perturbation), so it’s just the balancing problem.
This is my Simulink control scheme:
My implementation works as it should, but I had to manually tune the four PIDs because I wasn’t able to obtain the same system with just one controller (if I give a vector of the four errors as input to a single PID block designed with a vector of four gains it messes up and creates a 4-dimensional output instead of executing the row-column product) and I tried everything but couldn’t tune the multiple PIDs at the same time. Of course, the tuner app embedded in every PID block is useless in my case since the output of the system isn’t just depending on a single PID’s control input. I wonder if I can automatically find the optimal choices for the PID controllers, can someone help me?Hi!
I have to control the four states of the classical nonlinear inverted pendulum on a cart model (position and velocity of the cart, angle and angular velocity of the pendulum) in Simulink through PID control. Being on a cart it doesn’t have to go through the swing up, the initial condition for the angle is -0.5 (desired angle with a small perturbation), so it’s just the balancing problem.
This is my Simulink control scheme:
My implementation works as it should, but I had to manually tune the four PIDs because I wasn’t able to obtain the same system with just one controller (if I give a vector of the four errors as input to a single PID block designed with a vector of four gains it messes up and creates a 4-dimensional output instead of executing the row-column product) and I tried everything but couldn’t tune the multiple PIDs at the same time. Of course, the tuner app embedded in every PID block is useless in my case since the output of the system isn’t just depending on a single PID’s control input. I wonder if I can automatically find the optimal choices for the PID controllers, can someone help me? Hi!
I have to control the four states of the classical nonlinear inverted pendulum on a cart model (position and velocity of the cart, angle and angular velocity of the pendulum) in Simulink through PID control. Being on a cart it doesn’t have to go through the swing up, the initial condition for the angle is -0.5 (desired angle with a small perturbation), so it’s just the balancing problem.
This is my Simulink control scheme:
My implementation works as it should, but I had to manually tune the four PIDs because I wasn’t able to obtain the same system with just one controller (if I give a vector of the four errors as input to a single PID block designed with a vector of four gains it messes up and creates a 4-dimensional output instead of executing the row-column product) and I tried everything but couldn’t tune the multiple PIDs at the same time. Of course, the tuner app embedded in every PID block is useless in my case since the output of the system isn’t just depending on a single PID’s control input. I wonder if I can automatically find the optimal choices for the PID controllers, can someone help me? pid, tuning, simulink MATLAB Answers — New Questions
Azure App Service Flask Deployment issues with Error “didn’t respond to HTTP pings on port: 8000”
Hello Everyone,
I am Deploying the Flask Web app with Immersive Reader and I am trying deploying it by a ZIP file, tried with visual studio code too by the steps mentioned over the link below:
https://learn.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=flask%2Cwindows%2Cazure-cli%2Czip-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli
So, I have gone through each step mentioned there and applied it and showing me the below result.
I have gone through diagnostic resources. But didn’t find any solution for the following error in logs.
Hello Everyone,I am Deploying the Flask Web app with Immersive Reader and I am trying deploying it by a ZIP file, tried with visual studio code too by the steps mentioned over the link below:https://learn.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=flask%2Cwindows%2Cazure-cli%2Czip-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcliSo, I have gone through each step mentioned there and applied it and showing me the below result. I have gone through diagnostic resources. But didn’t find any solution for the following error in logs. Read More
Form won’t close to open main
I have a login page and a main page. On my login page, I has this for the code and everything works fine.
Private Sub btn_login_Click()
If DCount(“uusername”, “usertable”, “uusername= ‘” & txt_username & “‘ and upassword= ‘” & txt_password & “‘”) = 0 Then
Me.lbl_incorrect.Visible = True
Else
DoCmd.Close acForm, “LoginForm”
DoCmd.OpenForm “MainForm”
End If
End Sub
On my main page I have this code when logging out. Some reason when I click yes it just sits there on that form. I don’t know what I am missing.
Private Sub btn_logout_Click()
respond = MsgBox(“Do you really want to logout?”, vbYesNo + vbQuestion, “| Logout Confirmation |”)
If response = vbYes Then
DoCmd.Close acForm, “MainForm”, acSaveNo
DoCmd.OpenForm “LoginForm”
Else
Cancel = True
End If
End Sub
I have a login page and a main page. On my login page, I has this for the code and everything works fine. Private Sub btn_login_Click()
If DCount(“uusername”, “usertable”, “uusername= ‘” & txt_username & “‘ and upassword= ‘” & txt_password & “‘”) = 0 Then
Me.lbl_incorrect.Visible = True
Else
DoCmd.Close acForm, “LoginForm”
DoCmd.OpenForm “MainForm”
End If
End Sub On my main page I have this code when logging out. Some reason when I click yes it just sits there on that form. I don’t know what I am missing. Private Sub btn_logout_Click()
respond = MsgBox(“Do you really want to logout?”, vbYesNo + vbQuestion, “| Logout Confirmation |”)
If response = vbYes Then
DoCmd.Close acForm, “MainForm”, acSaveNo
DoCmd.OpenForm “LoginForm”
Else
Cancel = True
End If
End Sub Read More
Fusing layers of a color image
Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData.Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData. Hi,
After segmenting the 3 layers of a Truecolor image , I tried to fuse the segmented images but an error appear , every layer is an rgb image after overlaying a color for the region to segmented using ind2rgb
<</matlabcentral/answers/uploaded_files/48640/voi1.PNG>>
<</matlabcentral/answers/uploaded_files/48641/voi2.PNG>>
<</matlabcentral/answers/uploaded_files/48642/voi3.PNG>>
here is the code
image(I_rgb1)
im1=imoverlay(FC1,FC1~=2)
title(sprintf(‘Fuzzy connected component 1’));
figure(2)
image(I_rgb2)
im2=imoverlay(FC2,FC2~=2)
title(sprintf(‘Fuzzy connected component 2’));
figure(3)
image(I_rgb3)
im3=imoverlay(FC3,FC3~=2);
title(sprintf(‘Fuzzy connected component 3’));
FC= cat(3,im1,im2,im3);
when i want to display the image, image() doesn’t work also imshow()
figure ;
imshow(FC,[])
% the error: images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
image(FC)
% the error :Invalid datatype for Image CData. Numeric or logical matrix required for image CData. display color image, truecolorimage, indexedimage, overlaying, superpose MATLAB Answers — New Questions
How to detect right triangles from an image and find the three side lengths of each triangle?
Post Content Post Content digital image processing, hough MATLAB Answers — New Questions
Extracting Data from an Array of Arrays using a Loop?
Hello All,
Context: I am using Simulink and Simscape to simulate some system responses to motion. Simulation output writes to the Matlab workspace to an Array of Arrays (object maybe? Not super sure if that’s the right nomenclature) called "out". Our model is set up such that it iterates over a range of values for a single parameter. One test might have 5 iterations, the next might have 50, and so on. This means "out" changes size each time we run our model.
Problem: Now on to the issue. I am trying to extract data from each iteration and put them all into a Matrix. I can access all the data I want manually, using the notation "out(1,1).RollAngle.Data" for the first iteration, "out(1,2).RollAngle.Data" for the second iteration, and so on. However, this is too cumbersome since most of our tests are going to have 20-plus iterations.
Can anybody help me create a for loop that would append each data series as a new column in a matrix? This might be super obvious, but it’s a new problem for me…
Thanks!Hello All,
Context: I am using Simulink and Simscape to simulate some system responses to motion. Simulation output writes to the Matlab workspace to an Array of Arrays (object maybe? Not super sure if that’s the right nomenclature) called "out". Our model is set up such that it iterates over a range of values for a single parameter. One test might have 5 iterations, the next might have 50, and so on. This means "out" changes size each time we run our model.
Problem: Now on to the issue. I am trying to extract data from each iteration and put them all into a Matrix. I can access all the data I want manually, using the notation "out(1,1).RollAngle.Data" for the first iteration, "out(1,2).RollAngle.Data" for the second iteration, and so on. However, this is too cumbersome since most of our tests are going to have 20-plus iterations.
Can anybody help me create a for loop that would append each data series as a new column in a matrix? This might be super obvious, but it’s a new problem for me…
Thanks! Hello All,
Context: I am using Simulink and Simscape to simulate some system responses to motion. Simulation output writes to the Matlab workspace to an Array of Arrays (object maybe? Not super sure if that’s the right nomenclature) called "out". Our model is set up such that it iterates over a range of values for a single parameter. One test might have 5 iterations, the next might have 50, and so on. This means "out" changes size each time we run our model.
Problem: Now on to the issue. I am trying to extract data from each iteration and put them all into a Matrix. I can access all the data I want manually, using the notation "out(1,1).RollAngle.Data" for the first iteration, "out(1,2).RollAngle.Data" for the second iteration, and so on. However, this is too cumbersome since most of our tests are going to have 20-plus iterations.
Can anybody help me create a for loop that would append each data series as a new column in a matrix? This might be super obvious, but it’s a new problem for me…
Thanks! arrays, simulation output, append data to matrix, matlab MATLAB Answers — New Questions
Inverter DC Capacitor Voltage Control
Using PI to control the DC capacitor voltage of the inverter, but there are pulses from 0.4 seconds. I don’t know what the cause is.Using PI to control the DC capacitor voltage of the inverter, but there are pulses from 0.4 seconds. I don’t know what the cause is. Using PI to control the DC capacitor voltage of the inverter, but there are pulses from 0.4 seconds. I don’t know what the cause is. inverter MATLAB Answers — New Questions
How to speed up my code (computing jacobian)
My input are a lot of linear expressions such as x1+x2, x2+3*x3 etc. How to speed up my code as follows
allvars = symvar(input); % There are about 1000 LINEAR expressions in ‘input’
J = jacobian(input, allvars);My input are a lot of linear expressions such as x1+x2, x2+3*x3 etc. How to speed up my code as follows
allvars = symvar(input); % There are about 1000 LINEAR expressions in ‘input’
J = jacobian(input, allvars); My input are a lot of linear expressions such as x1+x2, x2+3*x3 etc. How to speed up my code as follows
allvars = symvar(input); % There are about 1000 LINEAR expressions in ‘input’
J = jacobian(input, allvars); symbolic, linear, matlab MATLAB Answers — New Questions