Month: May 2024
How can I download part of a YouTube video on my computer in Windows 10?
Hey there, community! Can I trim and download a YouTube video to save my favorite part? I’ve stumbled upon this amazing moment in a YouTube video that I absolutely need to save. Thing is, the video clocks in at a whopping 3 hours plus, and downloading the whole thing just to get that one golden clip feels like overkill. I’m wondering if anyone knows of a nifty way to directly download a specific part, or “clip,” from a YouTube video without having to wait ages for the entire thing to download first?
Hey there, community! Can I trim and download a YouTube video to save my favorite part? I’ve stumbled upon this amazing moment in a YouTube video that I absolutely need to save. Thing is, the video clocks in at a whopping 3 hours plus, and downloading the whole thing just to get that one golden clip feels like overkill. I’m wondering if anyone knows of a nifty way to directly download a specific part, or “clip,” from a YouTube video without having to wait ages for the entire thing to download first? Read More
MS booking- Time slot conflict, booked slot is still showing available
Hi, i’ve a query-
My customer booked a meeting with us on our shared bookings page but the time slot they booked is still showing when someone tries to book a new meeting. And i’ve kept only one staff (just if someone suggests this error might be because of multiple staff added)
As can be seen in the below image- customer booked a 15 min meeting for 10:30 (image 1- outlook calendar event), now the 10:30 slot should not be available for a new customer to book, but it is available here. How to fix this?
Hi, i’ve a query-My customer booked a meeting with us on our shared bookings page but the time slot they booked is still showing when someone tries to book a new meeting. And i’ve kept only one staff (just if someone suggests this error might be because of multiple staff added)As can be seen in the below image- customer booked a 15 min meeting for 10:30 (image 1- outlook calendar event), now the 10:30 slot should not be available for a new customer to book, but it is available here. How to fix this? Read More
Sharepoint Lists looks diffrent in Microsoft Teams
Hey!
I’ve been struggling with the new Microsoft List GUI for a long time.
The lists are now displayed correctly again.
Unfortunately not in Microsoft Teams, as the lists look completely different than directly in Sharepoint.
a couple weeks ago the list looks excactly like in Sharepoint, with all the colors and buttons.
Take a look: maybe someone got a solution.
this is the list in sharepoint:
this is the excact list in MS Teams:
and the MS Teams view formular:
the list runs in standard experience for this site
thx!
Hey! I’ve been struggling with the new Microsoft List GUI for a long time.The lists are now displayed correctly again.Unfortunately not in Microsoft Teams, as the lists look completely different than directly in Sharepoint.a couple weeks ago the list looks excactly like in Sharepoint, with all the colors and buttons.Take a look: maybe someone got a solution.this is the list in sharepoint:this is the excact list in MS Teams:and the MS Teams view formular:the list runs in standard experience for this sitethx! Read More
Firewall blocks odbc32
Good morning,
having to install a windows software to read a sql server database, I worked on a win10 machine with sqlserver 2022 express already installed.
I restored my database on the existing instance. Whoever had installed sql had correctly opened the 1433, and activated tcp/ip and namedpipes. The problem is that the windows application does not access the db from any client (apart from the win10 server). Investigating I discovered that from the clients a dns created with odbc64 works correctly, while a dns created with odbc32 does not access. The windows application that I have to install is 32. In addition, if I deactivate the firewall of the win10 server (the domain part is enough for me) the odbc32 also works (and therefore also the windows application). I can’t understand. Can you help me?
Andrea
Good morning,having to install a windows software to read a sql server database, I worked on a win10 machine with sqlserver 2022 express already installed.I restored my database on the existing instance. Whoever had installed sql had correctly opened the 1433, and activated tcp/ip and namedpipes. The problem is that the windows application does not access the db from any client (apart from the win10 server). Investigating I discovered that from the clients a dns created with odbc64 works correctly, while a dns created with odbc32 does not access. The windows application that I have to install is 32. In addition, if I deactivate the firewall of the win10 server (the domain part is enough for me) the odbc32 also works (and therefore also the windows application). I can’t understand. Can you help me?Andrea Read More
Copilot O365 translation
Hi,
I tried to find a way to translate an office document with Copilot O365, but I didn”t find it.
I know that, in Powerpoint, we can use translation but it’s applied on paragraph by paragraph if we want too keep the format of the document.
So is it possible to do it with Copilot?
David
Hi, I tried to find a way to translate an office document with Copilot O365, but I didn”t find it.I know that, in Powerpoint, we can use translation but it’s applied on paragraph by paragraph if we want too keep the format of the document.So is it possible to do it with Copilot? David Read More
How do I convert YouTube to MP4 on my Windows 10 computer?
Hey fellow tech enthusiasts!
I’m trying to download YouTube videos to MP4 format on my Windows system for better compatibility. Unfortunately, the online YouTube downloaders I’ve attempted only offer downloads up to 720p or 1080p, and they’re flooded with annoying ads. Can anyone recommend a safe and ad-free method to batch convert YouTube to MP4 in high quality, ideally in 4K or 8K resolution?
Your assistance would be immensely appreciated!
Hey fellow tech enthusiasts!I’m trying to download YouTube videos to MP4 format on my Windows system for better compatibility. Unfortunately, the online YouTube downloaders I’ve attempted only offer downloads up to 720p or 1080p, and they’re flooded with annoying ads. Can anyone recommend a safe and ad-free method to batch convert YouTube to MP4 in high quality, ideally in 4K or 8K resolution?Your assistance would be immensely appreciated! Read More
Exploring the Capabilities of Azure Cosmos DB for MongoDB using Open MongoDB shell.
Previously we introduced Getting started with Azure Cosmos Database (A Deep Dive) blog which is an end-to-end introduction of Azure Cosmos DB. In this blog we are going to talk about one of the Azure Cosmos Database API known as Azure Cosmos Database for MongoDB.
You have been developing applications while leveraging the knowledge on MongoDB, as a developer, you are looking for a service that scales your database, offers automatic sharding without requiring any configuration, high availability and cost effective.
Azure Cosmos Db for MongoDB has you covered. In this blog, I will help you transition to start using the service. If you are a beginner and anxious about Azure Cosmos DB for MongoDB, be assured that you will learn from step-by-step guidance I will be sharing.
Topics Covered
What is Mongo DB & Azure Cosmos DB for MongoDB
Provisioning Azure Cosmos DB for MongoDB vCore
Performing CRUD Operation in Open MongoDB(vCore) shell.
What is Mongo DB?
Mongo DB is a popular NoSQL database, which is a document database known for its scalability, flexibility, and developer friendliness. Developers can interact with MongoDB using various drivers and APIs (Application Programming Interface).
What is Azure Cosmos DB for MongoDB?
It is a fully managed NoSQL, relational and vector database designed for modern app development. It is known for high response time.
Benefits of Azure Cosmos DB for MongoDB?
Fast response time – ensure fats data access
Instantaneous scalability – Easy to scale up and down with zero warmup period.
Automatic sharding – Helps you focus with the application development as sharding is done automatically.
High availability – Ensures that that data is always available for you.
Cost effective – The database scales depending on your need. Beneficial as you pay for the resources you use.
Real-time analytics – runs analytics workloads against your data without affecting your database.
Create Azure Cosmos DB for MongoDB vCore Cluster on Azure.
Prerequisites
Azure account with active subscription. Create an account
Step 1: Create a Cluster
Signing to Azure portal
Click Create a resource and search for Azure cosmos db.
Click on Azure cosmos DB for mongo DB
Step 2 Select vCore Cluster
Azure Cosmos DB offers two types of resource architectures for MongoDB: Request Unit (RU)-based and vCore-based.
Request Unit (RU)-based – Request Units (RUs) serve as a performance currency in Azure Cosmos DB. Whether you perform writes, point reads, or queries, the costs are always measured in RUs.
vCore-based – This architecture allows you to use Azure Cosmos DB as if it were a MongoDB. It leverages vCores (virtual cores) to allocate resources based on your workload requirements.
Learn more about which model to choose between RU-based and vCore based
Step 3: Fill the details to provision the resource.
Click on configure to choose the resources you need for your resource.
I will go for the free tier because the resource is for demo purposes and not for production. Choose the resources that fit your workload.
If you never selected the free tier, remember to check the checkbox to agree to terms.
Click save after you are done with the configuration.
You need to fill in the details which you need for your cluster, let me break it down for you.
Subscription – select a subscription you want to use to create a cluster
Resource Group – select a resource group or you can create one.
Cluster name – The name should be globally unique.
Location – Select location near you.
MongoDB version – You can leave it to the default.
Admin username – provide administrator’s name
Password – Provide a password which shall be used to access the database.
Step 3: Click on Networking
Select Allow Public access from Azure Services. You can also add a client device to access the cluster.
Click Review and create
The deployment may take up to 5 mins.
After deployment is done, click on Go to Resource, you will be directed to the overview of your cluster you created.
Step 4: Connect to Open MongoDB Shell.
We will use Open MongoDB shell provided with in Azure portal.
We are going to perform CRUD operation with the shell to simulate common operations.
As shown in the image below, click on Quick start, then Open MongoDB(vCore) shell.
You will be required to enter the password you provided earlier. Whenever you see [mongos] test>, it shows that you have connected successfully.
Performing CRUD Operation in Open MongoDB(vCore) shell.
Let us create a school management database on the MongoDB shell. We shall perform the Create, Read, Update and Delete operations.
Step1: Create the Database and Collections
Connect to MongoDB shell
use KirinyagaSchool
Create students’ collection
db.createCollection(“students”)
Create staff collection
db.createCollection(“staff”)
Step 2: Define and insert Sample data.
Insert sample students
db.students.insertMany([
{
student_id: 1,
first_name: “Mike”,
last_name: “Kamau”,
gender: “Male”,
age: 14,
address: “1234 Nairobi Lane, Nairobi”,
class: “8A”
},
{
student_id: 2,
first_name: “Brian”,
last_name: “Kemboi”,
gender: “Male”,
age: 13,
address: “5678 Eldoret Road, Eldoret”,
class: “7B”
},
{
student_id: 3,
first_name: “Jane”,
last_name: “Wanjiku”,
gender: “Female”,
age: 15,
address: “91011 Kisumu Street, Kisumu”,
class: “8A”
}
])
Insert sample staff
db.staff.insertMany([
{
staff_id: 1,
first_name: “Alice”,
last_name: “Muthoni”,
gender: “Female”,
position: “Teacher”,
salary: 50000,
address: “1213 Nyeri Avenue, Nyeri”
},
{
staff_id: 2,
first_name: “John”,
last_name: “Otieno”,
gender: “Male”,
position: “Principal”,
salary: 80000,
address: “1415 Mombasa Road, Mombasa”
},
{
staff_id: 3,
first_name: “Esther”,
last_name: “Njeri”,
gender: “Female”,
position: “Secretary”,
salary: 40000,
address: “1617 Thika Highway, Thika”
}
])
Step 3: Perform CRUD Operations
Create
To insert a new student:
db.students.insertOne({
student_id: 4,
first_name: “Peter”,
last_name: “Kariuki”,
gender: “Male”,
age: 12,
address: “1819 Nakuru Lane, Nakuru”,
class: “6C”
})
To insert a new staff member:
db.staff.insertOne({
staff_id: 4,
first_name: “Daniel”,
last_name: “Mwangi”,
gender: “Male”,
position: “Caretaker”,
salary: 30000,
address: “2021 Meru Street, Meru”
})
Read
To find a student by last name:
db.students.find({ last_name: “Kemboi” })
To get all staff members:
db.staff.find()
Update
To update a student’s class:
db.students.updateOne(
{ student_id: 1 },
{ $set: { class: “9A” } }
)
To increase the salary of a staff member:
db.staff.updateOne(
{ staff_id: 2 },
{ $inc: { salary: 5000 } }
)
Delete
To delete a student:
db.students.deleteOne({ student_id: 4 })
To delete a staff member:
db.staff.deleteOne({ staff_id: 4 })
The expected output
We achieved this blog’s objectives, working with Azure cosmos DB for MongoDB is like MongoDB on Atlas. We have also known the advantages of Azure cosmos DB for MongoDB. Try practicing more by creating applications while using the content learnt.
Read More.
Comparing MongoDB Atlas and Azure Cosmos DB for MongoDB
Azure Cosmos DB for MongoDB on Microsoft Learn
Use Azure Data Studio to connect and query Azure Cosmos DB API for MongoDB
Migrate to vCore-based Azure Cosmos DB for MongoDB
SDKs
Azure Cosmos DB for MongoDB for .NET with the MongoDB driver
Azure Cosmos DB for MongoDB driver for Node.js
Azure Cosmos DB for MongoDB for Python with MongoDB driver
Create a console app with Java and Azure Cosmos DB for MongoDB
Connect a Go application to Azure Cosmos DB for MongoDB
Microsoft Tech Community – Latest Blogs –Read More
European Cloud Summit and Collaboration Summit
Wiesbaden, Germany added 3,000+ tech enthusiast and hosted the Microsoft for Startups Founders Hub Cloud AI Pitch Competition between May 14-16, 2024.
We were pleased to attend the European Cloud and Collaboration Summits – to participate and to gain so much back from everyone.
It was a packed week filled with insights, feedback, and fun. Below is a recap of various aspects of the event – across keynotes, general sessions, breakout sessions, and the Expo Hall.
You can review some great pics the ECS event team took and posted; we sprinkled our own throughout this article.
The event in a nutshell:
3,000+ attendees
212 speakers overall – 121 MVPs, 11 RDs, 42 from Microsoft
241 sessions | 12 tutorials (workshops)
70 sponsors | One giant Expo Hall
Keynotes & general sessions
The event kicked off with a combined general keynote, “Thriving in the age of Copilots” with Host: Laurie Pottmeyer and panelists: Dan Holme, Vesa Juvonen, Dona Sarkar, and Jason Himmelstein.
Across the main two days of the event, we delivered four broader, general sessions: 1) “Modern work in the era of AI” with host: Mark Kashman and panelists: Cathy Dew, Liz Sundet, and Fabian Williams, 2) “Adopt, build, and automate AI-powered solution development” with host: Heather Cook and panelists: Claire Edgson, Laura Graham-Brown, Albert-Jan Schot, Martina Grom, and Kevin McDonnell, 3) “AI landscape” with Carlotta Castelluccio, and “This is why we can’t have the nice things” with Dona Sarkar.
The ECS team recorded the general keynote live – now on-demand on their YouTube channel, “European Collaboration and Cloud Summit 2024 Opening – Live Stream”
Sessions
It is crucial to ensure your organization is technically ready for the full potential of AI. The sessions below focus on technical readiness and ensuring you have the latest guidance. Our experts will share best practices and provide guidance on how to leverage AI and to maximize the benefits of Copilot within your organization.
When discovering opportunities across Azure, Copilot, and OpenAI, professionals, entrepreneurs, and businesses are invited to enhance their knowledge and establish meaningful connections. Attendees can expect interactive demos, enlightening discussions, and a deep dive into Microsoft’s strategic direction with advances in cloud. The goal is to discover both ‘how-to’ and increase awareness of the ‘what-if’ – focusing on the impact of cloud adoption and gravitating towards Responsible AI.
Expo Hall + Cloud AI Statup Stage + tutorials
The Expo Hal* was hopping with demos, discussions, interviews, podcasts, lightning talks, foosball, cotton candy, SWAG, prizes, and community.
There was a busy Cloud AI StartupStage, a Business Stage, and shorter talks delivered in front of a shiny airstream trailer.
Cloud AI Startup Stage
This was a highly informative and engaging event focused on Artificial Intelligence (AI) and its potential for startups. The Microsoft for Startups Founders Hub Program is a platform to provide startups with the resources, tools, and support they need to succeed.
This portion of the event offered value to budding entrepreneurs and established startups looking to scale. For example, on day 2, we focused on accelerating innovation with Microsoft Founders Hub and Azure AI. Startups could kickstart their journey with up to $150k of Azure credits and gain access to 30+ tools and services, benefiting from additional credits and offerings as they evolve. It’s a great way for Startups to navigate technical and business challenges with the help of free, 1:1 sessions.
The Winners
Women in Tech & Allies Panel – in front of the Airstream trailer on the show floor moderator Heather Cook and panelists, Jonah Andersson, Carlotta Castelluccio, Antje Lamartine, Sandy Ussia and Gabrielle Williams held an engaging discussion on the current opportunities and challenges presented by the era of AI. The panel took many questions from the standing room only crowd.
Tutorial (Workshop) Day went full steam — depth training on AI Studio, Copilot Studio, Azure Open AI Services, Viva/SharePoint-powered intranets, Power BI, M365 extensibility & admin. This day saw 700 attendees across 12 tutorials.
In the end…
We are grateful for this year’s active and engaging #CollabSummit & #CloudSummit — so much goodness, caring, learning, and fun!
Great questions, stories, understanding of your concerns, and the sharing in fun.
Thank you and see you next year!
We look forward to seeing in Düsseldorf – May 26-28, 2025 – combining Collaboration Summit (@CollabSummit), Cloud Summit (@EUCloudSummit), and the new BizApps Summit (@BizAppsSummit) into one giant Summit.
Microsoft Tech Community – Latest Blogs –Read More
Error in ode45 solution
Ode45 results dont maintain power conservation for some cases. How to ensure that power conservation is maintained?
While using ode45 to solve coupled differential equation, when one of the input parameters is real,the solution to ode45 maintains power conservation. When i change that input parameter from real to complex then ode45 solution is not maintaing power conservation. I have used relatve error tolerance = 1e-6 and absolute error tolerance = 1e-9. Please let me know what can be done to get the correct results.
For eg, In the below code, tv* parameter was initially real, which maintained power conservation, however when i change tv* to complex, the solution doesnt maintain power conservation.
options=odeset(‘RelTol’,1e-6,’AbsTol’,1e-9);
f=@(z,xx_val) -1i*[tv12*xx_val(2)*exp(1i*del_beta12*z)+tv13*xx_val(3)*exp(1i*del_beta13*z)+tv14*xx_val(4)*exp(1i*del_beta14*z)+tv15*xx_val(5)*exp(1i*del_beta15*z)+tv16*xx_val(6)*exp(1i*del_beta16*z);…
tv21*xx_val(1)*exp(1i*del_beta21*z)+tv23*xx_val(3)*exp(1i*del_beta23*z)+tv24*xx_val(4)*exp(1i*del_beta24*z)+tv25*xx_val(5)*exp(1i*del_beta25*z)+tv26*xx_val(6)*exp(1i*del_beta26*z);…
tv31*xx_val(1)*exp(1i*del_beta31*z)+tv32*xx_val(2)*exp(1i*del_beta32*z)+tv34*xx_val(4)*exp(1i*del_beta34*z)+tv35*xx_val(5)*exp(1i*del_beta35*z)+tv36*xx_val(6)*exp(1i*del_beta36*z);…
tv41*xx_val(1)*exp(1i*del_beta41*z)+tv42*xx_val(2)*exp(1i*del_beta42*z)+tv43*xx_val(3)*exp(1i*del_beta43*z)+tv45*xx_val(5)*exp(1i*del_beta45*z)+tv46*xx_val(6)*exp(1i*del_beta46*z);…
tv51*xx_val(1)*exp(1i*del_beta51*z)+tv52*xx_val(2)*exp(1i*del_beta52*z)+tv53*xx_val(3)*exp(1i*del_beta53*z)+tv54*xx_val(4)*exp(1i*del_beta54*z)+tv56*xx_val(6)*exp(1i*del_beta56*z);…
tv61*xx_val(1)*exp(1i*del_beta61*z)+tv62*xx_val(2)*exp(1i*del_beta62*z)+tv63*xx_val(3)*exp(1i*del_beta63*z)+tv64*xx_val(4)*exp(1i*del_beta64*z)+tv65*xx_val(5)*exp(1i*del_beta65*z)];
[zz,xa_var]=ode45(f,[0 1],init_condit(nn,:),options); %[LP01 LP11a] represent the initial conditionOde45 results dont maintain power conservation for some cases. How to ensure that power conservation is maintained?
While using ode45 to solve coupled differential equation, when one of the input parameters is real,the solution to ode45 maintains power conservation. When i change that input parameter from real to complex then ode45 solution is not maintaing power conservation. I have used relatve error tolerance = 1e-6 and absolute error tolerance = 1e-9. Please let me know what can be done to get the correct results.
For eg, In the below code, tv* parameter was initially real, which maintained power conservation, however when i change tv* to complex, the solution doesnt maintain power conservation.
options=odeset(‘RelTol’,1e-6,’AbsTol’,1e-9);
f=@(z,xx_val) -1i*[tv12*xx_val(2)*exp(1i*del_beta12*z)+tv13*xx_val(3)*exp(1i*del_beta13*z)+tv14*xx_val(4)*exp(1i*del_beta14*z)+tv15*xx_val(5)*exp(1i*del_beta15*z)+tv16*xx_val(6)*exp(1i*del_beta16*z);…
tv21*xx_val(1)*exp(1i*del_beta21*z)+tv23*xx_val(3)*exp(1i*del_beta23*z)+tv24*xx_val(4)*exp(1i*del_beta24*z)+tv25*xx_val(5)*exp(1i*del_beta25*z)+tv26*xx_val(6)*exp(1i*del_beta26*z);…
tv31*xx_val(1)*exp(1i*del_beta31*z)+tv32*xx_val(2)*exp(1i*del_beta32*z)+tv34*xx_val(4)*exp(1i*del_beta34*z)+tv35*xx_val(5)*exp(1i*del_beta35*z)+tv36*xx_val(6)*exp(1i*del_beta36*z);…
tv41*xx_val(1)*exp(1i*del_beta41*z)+tv42*xx_val(2)*exp(1i*del_beta42*z)+tv43*xx_val(3)*exp(1i*del_beta43*z)+tv45*xx_val(5)*exp(1i*del_beta45*z)+tv46*xx_val(6)*exp(1i*del_beta46*z);…
tv51*xx_val(1)*exp(1i*del_beta51*z)+tv52*xx_val(2)*exp(1i*del_beta52*z)+tv53*xx_val(3)*exp(1i*del_beta53*z)+tv54*xx_val(4)*exp(1i*del_beta54*z)+tv56*xx_val(6)*exp(1i*del_beta56*z);…
tv61*xx_val(1)*exp(1i*del_beta61*z)+tv62*xx_val(2)*exp(1i*del_beta62*z)+tv63*xx_val(3)*exp(1i*del_beta63*z)+tv64*xx_val(4)*exp(1i*del_beta64*z)+tv65*xx_val(5)*exp(1i*del_beta65*z)];
[zz,xa_var]=ode45(f,[0 1],init_condit(nn,:),options); %[LP01 LP11a] represent the initial condition Ode45 results dont maintain power conservation for some cases. How to ensure that power conservation is maintained?
While using ode45 to solve coupled differential equation, when one of the input parameters is real,the solution to ode45 maintains power conservation. When i change that input parameter from real to complex then ode45 solution is not maintaing power conservation. I have used relatve error tolerance = 1e-6 and absolute error tolerance = 1e-9. Please let me know what can be done to get the correct results.
For eg, In the below code, tv* parameter was initially real, which maintained power conservation, however when i change tv* to complex, the solution doesnt maintain power conservation.
options=odeset(‘RelTol’,1e-6,’AbsTol’,1e-9);
f=@(z,xx_val) -1i*[tv12*xx_val(2)*exp(1i*del_beta12*z)+tv13*xx_val(3)*exp(1i*del_beta13*z)+tv14*xx_val(4)*exp(1i*del_beta14*z)+tv15*xx_val(5)*exp(1i*del_beta15*z)+tv16*xx_val(6)*exp(1i*del_beta16*z);…
tv21*xx_val(1)*exp(1i*del_beta21*z)+tv23*xx_val(3)*exp(1i*del_beta23*z)+tv24*xx_val(4)*exp(1i*del_beta24*z)+tv25*xx_val(5)*exp(1i*del_beta25*z)+tv26*xx_val(6)*exp(1i*del_beta26*z);…
tv31*xx_val(1)*exp(1i*del_beta31*z)+tv32*xx_val(2)*exp(1i*del_beta32*z)+tv34*xx_val(4)*exp(1i*del_beta34*z)+tv35*xx_val(5)*exp(1i*del_beta35*z)+tv36*xx_val(6)*exp(1i*del_beta36*z);…
tv41*xx_val(1)*exp(1i*del_beta41*z)+tv42*xx_val(2)*exp(1i*del_beta42*z)+tv43*xx_val(3)*exp(1i*del_beta43*z)+tv45*xx_val(5)*exp(1i*del_beta45*z)+tv46*xx_val(6)*exp(1i*del_beta46*z);…
tv51*xx_val(1)*exp(1i*del_beta51*z)+tv52*xx_val(2)*exp(1i*del_beta52*z)+tv53*xx_val(3)*exp(1i*del_beta53*z)+tv54*xx_val(4)*exp(1i*del_beta54*z)+tv56*xx_val(6)*exp(1i*del_beta56*z);…
tv61*xx_val(1)*exp(1i*del_beta61*z)+tv62*xx_val(2)*exp(1i*del_beta62*z)+tv63*xx_val(3)*exp(1i*del_beta63*z)+tv64*xx_val(4)*exp(1i*del_beta64*z)+tv65*xx_val(5)*exp(1i*del_beta65*z)];
[zz,xa_var]=ode45(f,[0 1],init_condit(nn,:),options); %[LP01 LP11a] represent the initial condition ode45_error MATLAB Answers — New Questions
I have a problem involving textbook MATLAB and use of handles and functions
I’m having problems figuring out how to get some MATLAB code from a textbook to run. The code follows. The only original code statements are the first seven lines. I was trying to provide some basic data to get the code to draw a plane. I did have to add some "end" statements to the code, including the end at the bottom. I would like to get this code to draw an image and move it around a screen, but this code is supposed to do that. I need to learn how to get the code to run. I have a number of additional (or perhaps core) questions.
Is "fred" an appropriate handle reference?
Do I need to define a handle reference?
How do I call drawPlaneBody?
Can you help me to get this code (from a textbook) to work?
Thank you most sincerely.
pn = 20;
pe=0;
pd=0;
phi =0;
theta=0;
psi=0;
handle="fred";
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’Erasemode’, mode);
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
coordinates
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
18 0 0;%point6
-2 1 -1;%point3
18 0 0;%point6
-2 -1 -1;%point5
18 0 0;%point6
-2 -1 1;%point4
18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 2;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ + repmat([pn;pe;pd],1,size(XYZ,2));
end
endI’m having problems figuring out how to get some MATLAB code from a textbook to run. The code follows. The only original code statements are the first seven lines. I was trying to provide some basic data to get the code to draw a plane. I did have to add some "end" statements to the code, including the end at the bottom. I would like to get this code to draw an image and move it around a screen, but this code is supposed to do that. I need to learn how to get the code to run. I have a number of additional (or perhaps core) questions.
Is "fred" an appropriate handle reference?
Do I need to define a handle reference?
How do I call drawPlaneBody?
Can you help me to get this code (from a textbook) to work?
Thank you most sincerely.
pn = 20;
pe=0;
pd=0;
phi =0;
theta=0;
psi=0;
handle="fred";
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’Erasemode’, mode);
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
coordinates
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
18 0 0;%point6
-2 1 -1;%point3
18 0 0;%point6
-2 -1 -1;%point5
18 0 0;%point6
-2 -1 1;%point4
18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 2;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ + repmat([pn;pe;pd],1,size(XYZ,2));
end
end I’m having problems figuring out how to get some MATLAB code from a textbook to run. The code follows. The only original code statements are the first seven lines. I was trying to provide some basic data to get the code to draw a plane. I did have to add some "end" statements to the code, including the end at the bottom. I would like to get this code to draw an image and move it around a screen, but this code is supposed to do that. I need to learn how to get the code to run. I have a number of additional (or perhaps core) questions.
Is "fred" an appropriate handle reference?
Do I need to define a handle reference?
How do I call drawPlaneBody?
Can you help me to get this code (from a textbook) to work?
Thank you most sincerely.
pn = 20;
pe=0;
pd=0;
phi =0;
theta=0;
psi=0;
handle="fred";
function handle = drawPlaneBody(pn,pe,pd,phi,theta,psi,handle)
%define points on plane in local NED coordintates
NED = airplanepoints;
%rotate plane by (phi; theta; psi)
NED = rotate(NED, phi, theta, psi);
%translate plane to [pn; pe; pd]
NED = translate(NED, pn, pe, pd);
%transform vertices from NED to XYZ
R = […
0, 1, 0;…
1, 0 , 0;…
0, 0, -1;…
];
XYZ = R* NED;
%plot plane
if isempty(handle)
handle = plot3(XYZ(1,:),XYZ(2,:),XYZ(3,:),’Erasemode’, mode);
else
set(handle, ‘XData’, XYZ(1,:), ‘YData’,XYZ(2,:), ‘ZData’,XYZ(3,:));
drawnow
end
function XYZ = airplanepoints
%define points on the aircraft in local NED
coordinates
XYZ = […
0 0 0;%point1
-2 1 1;%point2
-2 1 -1;%point3
0 0 0;%point1
-2 -1 1;%point4
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
-2 -1 1;%point4
0 0 0;%point1
-2 1 -1;%point3
-2 -1 -1;%point5
0 0 0;%point1
-2 1 1;%point2
18 0 0;%point6
-2 1 -1;%point3
18 0 0;%point6
-2 -1 -1;%point5
18 0 0;%point6
-2 -1 1;%point4
18 0 0;%point6
-2 1 1;%point2
0 0 0;%point1
-5 0 0;%point7
-5 -10 0;%point8
-8 -10 0;%point9
-8 10 0;%point10
-5 10 0;%point11
-5 0 0;%point7
-15.5 0 0;%point12
-15.5 2 0;%point13
-17.5 2 0;%point14
-17.5 -2 0;%point15
-15.5 -2 0;%point16
-15.5 0 0;%point12
-18 0 0;%point6
-18 0 2;%point17
-15.5 0 0;%point15
-18 0 0;%point16
];
end
function XYZ=rotate(XYZ,phi,theta,psi)
%define rotation matrix
R_roll = [
1, 0, 0;
0, cos(phi), -sin(phi);
0, sin(phi), cos(phi)];
R_pitch = [
cos(theta), 0, sin(theta);
0, 1, 0;
-sin(theta), 0, cos(theta)];
R_yaw = [
cos(psi), -sin(psi), 0;
sin(psi), cos(psi), 0;
0, 0, 1];
R = R_roll*R_pitch*R_yaw;
%rotate vertices
XYZ =R*XYZ;
end
function XYZ = translate(XYZ, pn, pe, pd)
XYZ = XYZ + repmat([pn;pe;pd],1,size(XYZ,2));
end
end handle, matlab function, how to use functions MATLAB Answers — New Questions
Why can’t I see the messages sent to the teams channel via webhook on my cell phone?
curl -H ‘Content-Type: application/json’ -d ‘{“text”: “Hello World”}’ url
But you can’t see it on your cell phone.
curl -H ‘Content-Type: application/json’ -d ‘{“text”: “Hello World”}’ url
But you can’t see it on your cell phone.
curl -H ‘Content-Type: application/json’ -d ‘{“text”: “Hello World”}’ urlThe pc side can see this message.But you can’t see it on your cell phone. curl -H ‘Content-Type: application/json’ -d ‘{“text”: “Hello World”}’ urlThe pc side can see this message.But you can’t see it on your cell phone. Read More
Is there a “once” function?
Hi all,
I have an array of objects that should each have a property _serverDir_ set. Setting this property requires a little bit of effort and computation time (checking folders etc).
When I put this logic inside a "Dependent = True" property of my class, this logic is run on *every* object in my array of objects.
Is there a natural location to store the _serverDir_ information so that it only gets run *once* by the first object that requests this property, and each subsequent object re-uses this result?
Thanks,
Sven.Hi all,
I have an array of objects that should each have a property _serverDir_ set. Setting this property requires a little bit of effort and computation time (checking folders etc).
When I put this logic inside a "Dependent = True" property of my class, this logic is run on *every* object in my array of objects.
Is there a natural location to store the _serverDir_ information so that it only gets run *once* by the first object that requests this property, and each subsequent object re-uses this result?
Thanks,
Sven. Hi all,
I have an array of objects that should each have a property _serverDir_ set. Setting this property requires a little bit of effort and computation time (checking folders etc).
When I put this logic inside a "Dependent = True" property of my class, this logic is run on *every* object in my array of objects.
Is there a natural location to store the _serverDir_ information so that it only gets run *once* by the first object that requests this property, and each subsequent object re-uses this result?
Thanks,
Sven. static property, once MATLAB Answers — New Questions
Analysis Services low thread count and CPU usage on one server, high on another
We have an Analysis Services instance that runs fast on one server (environment A) and slow on another (environment B). B is more than twice as slow as A: at least 7 hours slower.
Performance monitor shows that environment A is using 95%+ CPU and creates 60+ Processing Pool threads. Environment B has 2 threads for the Processing pool and sits at 20% CPU.
The msmdsrv.ini files are identical, except for the disk locations. MaxThreads is set to 0 (automatic).
On identical hardware with identical msmdsrv config files, is there anything else that changes how many threads SSAS processing will use?
For additional context:
Both have identical CPU hardware: 2 sockets, 8 vCPUs. The databases they read from are identical. We’ve connected cubes from one server to the warehouses on the other, and processing is only slow on environment B regardless of where the SQL database is.
RAM allocation is the same, there’s plenty of space left.
Disk usage is normal, the drives are spread out over different drives in the same configuration.
We have an Analysis Services instance that runs fast on one server (environment A) and slow on another (environment B). B is more than twice as slow as A: at least 7 hours slower. Performance monitor shows that environment A is using 95%+ CPU and creates 60+ Processing Pool threads. Environment B has 2 threads for the Processing pool and sits at 20% CPU. The msmdsrv.ini files are identical, except for the disk locations. MaxThreads is set to 0 (automatic). On identical hardware with identical msmdsrv config files, is there anything else that changes how many threads SSAS processing will use? For additional context:Both have identical CPU hardware: 2 sockets, 8 vCPUs. The databases they read from are identical. We’ve connected cubes from one server to the warehouses on the other, and processing is only slow on environment B regardless of where the SQL database is.RAM allocation is the same, there’s plenty of space left.Disk usage is normal, the drives are spread out over different drives in the same configuration. Read More
Fitting not working or bad fit
% Define the data
dr_data = [2.5453, 0.042123; 5.0907, 0.075326; 7.636, 0.059506; 10.1813, 0.071553; 12.7267, 0.071365; 15.272, 0.067195; 17.8173, 0.046372; 20.3627, 0.043397; 22.908, 0.017179; 25.4533, -0.0063329; 27.9987, -0.030789; 30.544, -0.047569; 33.0893, -0.089512; 35.6347, -0.080675; 38.18, -0.089138; 40.7253, -0.1102; 43.2707, -0.12061; 45.816, -0.11857; 48.3613, -0.11955; 50.9067, -0.10803; 53.452, -0.10462; 55.9973, -0.099548; 58.5427, -0.097164; 61.088, -0.09994; 63.6333, -0.077017; 66.1787, -0.062839; 68.724, -0.048422; 71.2693, -0.03686; 73.8147, -0.01469; 76.3, 0];
dtheta_data = [2.5453, -0.099251; 5.0907, -0.16064; 7.636, -0.21858; 10.1813, -0.18965; 12.7267, -0.16996; 15.272, -0.18172; 17.8173, -0.15029; 20.3627, -0.12541; 22.908, -0.082786; 25.4533, -0.0071716; 27.9987, 0.03695; 30.544, 0.089002; 33.0893, 0.12873; 35.6347, 0.13092; 38.18, 0.13908; 40.7253, 0.17211; 43.2707, 0.16686; 45.816, 0.15826; 48.3613, 0.14872; 50.9067, 0.15295; 53.452, 0.12677; 55.9973, 0.10964; 58.5427, 0.10223; 61.088, 0.10951; 63.6333, 0.088493; 66.1787, 0.068903; 68.724, 0.054396; 71.2693, 0.035731; 73.8147, 0.030172; 76.3, 0];
% Define the function for the differential equations
function dydr = odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R)
dydr = zeros(4,1);
dydr(1) = y(2);
dydr(2) = -((lambda_init+1)*y(2)+1/r*(kappa_init*r^2*cos(theta_k_init)-(lambda_init+1))*y(1)-kappa_init*r*y(3)*sin(theta_k_init)+16*lambda_init*r^2/(c^4*R^2))/(r*(lambda_init+1));
dydr(3) = y(4);
dydr(4) = -(y(4)+1/r*(kappa_init*r^2*cos(theta_k_init)-1)*y(3)+kappa_init*r*y(1)*sin(theta_k_init))/r;
end
% Boundary conditions
function res = bcfun(ya, yb, ya1, ya3, yb1, yb3)
res = [ya(1)-ya1; ya(3)-ya3; yb(1)-yb1; yb(3)-yb3];
end
% Define the function to compute residuals
function residuals = compute_residuals(params, dr_data, dtheta_data, rout, R_init)
lambda_init = params(1);
kappa_init = params(2);
theta_k_init = params(3);
ya1 = params(4); % Boundary condition parameter ya(1)
ya3 = params(5); % Boundary condition parameter ya(3)
yb1 = params(6); % Boundary condition parameter yb(1)
yb3 = params(7); % Boundary condition parameter
c = sqrt(4 – (rout/R_init)^2);
R_init = 2000; % Initial value of R
rout = 76.3; % Max value of r
% Adjust the number of points for interpolation
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, 0, ya3, 0]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Ensure that arrays have compatible sizes
dr_residuals = dr_data(:, 2) – dr_sol;
dtheta_residuals = dtheta_data(:, 2) – dtheta_sol;
residuals = [dr_residuals; dtheta_residuals];
end
% Initial guess for the parameters
params_init = [2.1, 0.03, 0.004, 0, 0, 0, 0]; % Initial guess for parameters including boundary conditions
% Bounds for parameters
lb = [1, 0.001, 0, -Inf, -Inf, -Inf, -Inf]; % Lower bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
ub = [3, 0.5, pi/2, Inf, Inf, Inf, Inf]; % Upper bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
% Perform optimization
params_opt = lsqnonlin(@(params) compute_residuals(params, dr_data, dtheta_data, rout, R_init), params_init, lb, ub);
% Extract optimized parameters
lambda_opt = params_opt(1);
kappa_opt = params_opt(2);
theta_k_opt = params_opt(3);
ya1_opt = params_opt(4);
ya3_opt = params_opt(5);
yb1_opt = params_opt(6);
yb3_opt = params_opt(7);
% Display optimized parameters
disp([‘Optimized lambda: ‘, num2str(lambda_opt)]);
disp([‘Optimized kappa: ‘, num2str(kappa_opt)]);
disp([‘Optimized theta_k: ‘, num2str(theta_k_opt)]);
disp([‘Optimized ya1: ‘, num2str(ya1_opt)]);
disp([‘Optimized ya3: ‘, num2str(ya3_opt)]);
disp([‘Optimized yb1: ‘, num2str(yb1_opt)]);
disp([‘Optimized yb3: ‘, num2str(yb3_opt)]);
% Plot the solutions using optimized parameters
lambda_init = lambda_opt;
kappa_init = kappa_opt;
theta_k_init = theta_k_opt;
ya1 = ya1_opt;
ya3 = ya3_opt;
yb1 = yb1_opt;
yb3 = yb3_opt;
c = sqrt(4 – (rout/R_init)^2);
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, yb1, ya3, yb3]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Plot the solutions
figure;
subplot(2,1,1);
plot(r, dr_sol, ‘b-‘, dr_data(:,1), dr_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dr(r)’);
title(‘Solution of dr(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
subplot(2,1,2);
plot(r, dtheta_sol, ‘b-‘, dtheta_data(:,1), dtheta_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dtheta(r)’);
title(‘Solution of dtheta(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
Now, I want to fit the simulated d_r(r) vs r and d_theta(r) vs r values with the above mentioned coupled differential eqns by usuing the fitting parameters lamda, kappa, theta_k. For the sake of good fitting one can use boundary conditions as parameter. However getting errors. Please help me to solve those errors and fitting those data.% Define the data
dr_data = [2.5453, 0.042123; 5.0907, 0.075326; 7.636, 0.059506; 10.1813, 0.071553; 12.7267, 0.071365; 15.272, 0.067195; 17.8173, 0.046372; 20.3627, 0.043397; 22.908, 0.017179; 25.4533, -0.0063329; 27.9987, -0.030789; 30.544, -0.047569; 33.0893, -0.089512; 35.6347, -0.080675; 38.18, -0.089138; 40.7253, -0.1102; 43.2707, -0.12061; 45.816, -0.11857; 48.3613, -0.11955; 50.9067, -0.10803; 53.452, -0.10462; 55.9973, -0.099548; 58.5427, -0.097164; 61.088, -0.09994; 63.6333, -0.077017; 66.1787, -0.062839; 68.724, -0.048422; 71.2693, -0.03686; 73.8147, -0.01469; 76.3, 0];
dtheta_data = [2.5453, -0.099251; 5.0907, -0.16064; 7.636, -0.21858; 10.1813, -0.18965; 12.7267, -0.16996; 15.272, -0.18172; 17.8173, -0.15029; 20.3627, -0.12541; 22.908, -0.082786; 25.4533, -0.0071716; 27.9987, 0.03695; 30.544, 0.089002; 33.0893, 0.12873; 35.6347, 0.13092; 38.18, 0.13908; 40.7253, 0.17211; 43.2707, 0.16686; 45.816, 0.15826; 48.3613, 0.14872; 50.9067, 0.15295; 53.452, 0.12677; 55.9973, 0.10964; 58.5427, 0.10223; 61.088, 0.10951; 63.6333, 0.088493; 66.1787, 0.068903; 68.724, 0.054396; 71.2693, 0.035731; 73.8147, 0.030172; 76.3, 0];
% Define the function for the differential equations
function dydr = odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R)
dydr = zeros(4,1);
dydr(1) = y(2);
dydr(2) = -((lambda_init+1)*y(2)+1/r*(kappa_init*r^2*cos(theta_k_init)-(lambda_init+1))*y(1)-kappa_init*r*y(3)*sin(theta_k_init)+16*lambda_init*r^2/(c^4*R^2))/(r*(lambda_init+1));
dydr(3) = y(4);
dydr(4) = -(y(4)+1/r*(kappa_init*r^2*cos(theta_k_init)-1)*y(3)+kappa_init*r*y(1)*sin(theta_k_init))/r;
end
% Boundary conditions
function res = bcfun(ya, yb, ya1, ya3, yb1, yb3)
res = [ya(1)-ya1; ya(3)-ya3; yb(1)-yb1; yb(3)-yb3];
end
% Define the function to compute residuals
function residuals = compute_residuals(params, dr_data, dtheta_data, rout, R_init)
lambda_init = params(1);
kappa_init = params(2);
theta_k_init = params(3);
ya1 = params(4); % Boundary condition parameter ya(1)
ya3 = params(5); % Boundary condition parameter ya(3)
yb1 = params(6); % Boundary condition parameter yb(1)
yb3 = params(7); % Boundary condition parameter
c = sqrt(4 – (rout/R_init)^2);
R_init = 2000; % Initial value of R
rout = 76.3; % Max value of r
% Adjust the number of points for interpolation
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, 0, ya3, 0]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Ensure that arrays have compatible sizes
dr_residuals = dr_data(:, 2) – dr_sol;
dtheta_residuals = dtheta_data(:, 2) – dtheta_sol;
residuals = [dr_residuals; dtheta_residuals];
end
% Initial guess for the parameters
params_init = [2.1, 0.03, 0.004, 0, 0, 0, 0]; % Initial guess for parameters including boundary conditions
% Bounds for parameters
lb = [1, 0.001, 0, -Inf, -Inf, -Inf, -Inf]; % Lower bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
ub = [3, 0.5, pi/2, Inf, Inf, Inf, Inf]; % Upper bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
% Perform optimization
params_opt = lsqnonlin(@(params) compute_residuals(params, dr_data, dtheta_data, rout, R_init), params_init, lb, ub);
% Extract optimized parameters
lambda_opt = params_opt(1);
kappa_opt = params_opt(2);
theta_k_opt = params_opt(3);
ya1_opt = params_opt(4);
ya3_opt = params_opt(5);
yb1_opt = params_opt(6);
yb3_opt = params_opt(7);
% Display optimized parameters
disp([‘Optimized lambda: ‘, num2str(lambda_opt)]);
disp([‘Optimized kappa: ‘, num2str(kappa_opt)]);
disp([‘Optimized theta_k: ‘, num2str(theta_k_opt)]);
disp([‘Optimized ya1: ‘, num2str(ya1_opt)]);
disp([‘Optimized ya3: ‘, num2str(ya3_opt)]);
disp([‘Optimized yb1: ‘, num2str(yb1_opt)]);
disp([‘Optimized yb3: ‘, num2str(yb3_opt)]);
% Plot the solutions using optimized parameters
lambda_init = lambda_opt;
kappa_init = kappa_opt;
theta_k_init = theta_k_opt;
ya1 = ya1_opt;
ya3 = ya3_opt;
yb1 = yb1_opt;
yb3 = yb3_opt;
c = sqrt(4 – (rout/R_init)^2);
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, yb1, ya3, yb3]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Plot the solutions
figure;
subplot(2,1,1);
plot(r, dr_sol, ‘b-‘, dr_data(:,1), dr_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dr(r)’);
title(‘Solution of dr(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
subplot(2,1,2);
plot(r, dtheta_sol, ‘b-‘, dtheta_data(:,1), dtheta_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dtheta(r)’);
title(‘Solution of dtheta(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
Now, I want to fit the simulated d_r(r) vs r and d_theta(r) vs r values with the above mentioned coupled differential eqns by usuing the fitting parameters lamda, kappa, theta_k. For the sake of good fitting one can use boundary conditions as parameter. However getting errors. Please help me to solve those errors and fitting those data. % Define the data
dr_data = [2.5453, 0.042123; 5.0907, 0.075326; 7.636, 0.059506; 10.1813, 0.071553; 12.7267, 0.071365; 15.272, 0.067195; 17.8173, 0.046372; 20.3627, 0.043397; 22.908, 0.017179; 25.4533, -0.0063329; 27.9987, -0.030789; 30.544, -0.047569; 33.0893, -0.089512; 35.6347, -0.080675; 38.18, -0.089138; 40.7253, -0.1102; 43.2707, -0.12061; 45.816, -0.11857; 48.3613, -0.11955; 50.9067, -0.10803; 53.452, -0.10462; 55.9973, -0.099548; 58.5427, -0.097164; 61.088, -0.09994; 63.6333, -0.077017; 66.1787, -0.062839; 68.724, -0.048422; 71.2693, -0.03686; 73.8147, -0.01469; 76.3, 0];
dtheta_data = [2.5453, -0.099251; 5.0907, -0.16064; 7.636, -0.21858; 10.1813, -0.18965; 12.7267, -0.16996; 15.272, -0.18172; 17.8173, -0.15029; 20.3627, -0.12541; 22.908, -0.082786; 25.4533, -0.0071716; 27.9987, 0.03695; 30.544, 0.089002; 33.0893, 0.12873; 35.6347, 0.13092; 38.18, 0.13908; 40.7253, 0.17211; 43.2707, 0.16686; 45.816, 0.15826; 48.3613, 0.14872; 50.9067, 0.15295; 53.452, 0.12677; 55.9973, 0.10964; 58.5427, 0.10223; 61.088, 0.10951; 63.6333, 0.088493; 66.1787, 0.068903; 68.724, 0.054396; 71.2693, 0.035731; 73.8147, 0.030172; 76.3, 0];
% Define the function for the differential equations
function dydr = odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R)
dydr = zeros(4,1);
dydr(1) = y(2);
dydr(2) = -((lambda_init+1)*y(2)+1/r*(kappa_init*r^2*cos(theta_k_init)-(lambda_init+1))*y(1)-kappa_init*r*y(3)*sin(theta_k_init)+16*lambda_init*r^2/(c^4*R^2))/(r*(lambda_init+1));
dydr(3) = y(4);
dydr(4) = -(y(4)+1/r*(kappa_init*r^2*cos(theta_k_init)-1)*y(3)+kappa_init*r*y(1)*sin(theta_k_init))/r;
end
% Boundary conditions
function res = bcfun(ya, yb, ya1, ya3, yb1, yb3)
res = [ya(1)-ya1; ya(3)-ya3; yb(1)-yb1; yb(3)-yb3];
end
% Define the function to compute residuals
function residuals = compute_residuals(params, dr_data, dtheta_data, rout, R_init)
lambda_init = params(1);
kappa_init = params(2);
theta_k_init = params(3);
ya1 = params(4); % Boundary condition parameter ya(1)
ya3 = params(5); % Boundary condition parameter ya(3)
yb1 = params(6); % Boundary condition parameter yb(1)
yb3 = params(7); % Boundary condition parameter
c = sqrt(4 – (rout/R_init)^2);
R_init = 2000; % Initial value of R
rout = 76.3; % Max value of r
% Adjust the number of points for interpolation
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, 0, ya3, 0]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Ensure that arrays have compatible sizes
dr_residuals = dr_data(:, 2) – dr_sol;
dtheta_residuals = dtheta_data(:, 2) – dtheta_sol;
residuals = [dr_residuals; dtheta_residuals];
end
% Initial guess for the parameters
params_init = [2.1, 0.03, 0.004, 0, 0, 0, 0]; % Initial guess for parameters including boundary conditions
% Bounds for parameters
lb = [1, 0.001, 0, -Inf, -Inf, -Inf, -Inf]; % Lower bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
ub = [3, 0.5, pi/2, Inf, Inf, Inf, Inf]; % Upper bounds for lambda, kappa, theta_k, ya1, ya3, yb1, yb3
% Perform optimization
params_opt = lsqnonlin(@(params) compute_residuals(params, dr_data, dtheta_data, rout, R_init), params_init, lb, ub);
% Extract optimized parameters
lambda_opt = params_opt(1);
kappa_opt = params_opt(2);
theta_k_opt = params_opt(3);
ya1_opt = params_opt(4);
ya3_opt = params_opt(5);
yb1_opt = params_opt(6);
yb3_opt = params_opt(7);
% Display optimized parameters
disp([‘Optimized lambda: ‘, num2str(lambda_opt)]);
disp([‘Optimized kappa: ‘, num2str(kappa_opt)]);
disp([‘Optimized theta_k: ‘, num2str(theta_k_opt)]);
disp([‘Optimized ya1: ‘, num2str(ya1_opt)]);
disp([‘Optimized ya3: ‘, num2str(ya3_opt)]);
disp([‘Optimized yb1: ‘, num2str(yb1_opt)]);
disp([‘Optimized yb3: ‘, num2str(yb3_opt)]);
% Plot the solutions using optimized parameters
lambda_init = lambda_opt;
kappa_init = kappa_opt;
theta_k_init = theta_k_opt;
ya1 = ya1_opt;
ya3 = ya3_opt;
yb1 = yb1_opt;
yb3 = yb3_opt;
c = sqrt(4 – (rout/R_init)^2);
num_points = size(dr_data, 1);
solinit = bvpinit(linspace(0.0001, rout, num_points), [ya1, yb1, ya3, yb3]);
sol = bvp4c(@(r, y) odefun(r, y, lambda_init, kappa_init, theta_k_init, c, R_init), @(ya, yb) bcfun(ya, yb, ya1, ya3, yb1, yb3), solinit);
r = linspace(0.0001, rout, num_points);
y = deval(sol, r);
dr_sol = y(1,:);
dtheta_sol = y(3,:);
% Plot the solutions
figure;
subplot(2,1,1);
plot(r, dr_sol, ‘b-‘, dr_data(:,1), dr_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dr(r)’);
title(‘Solution of dr(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
subplot(2,1,2);
plot(r, dtheta_sol, ‘b-‘, dtheta_data(:,1), dtheta_data(:,2), ‘ro’);
xlabel(‘r’);
ylabel(‘dtheta(r)’);
title(‘Solution of dtheta(r) vs r’);
legend(‘Fitted Solution’, ‘Data’);
Now, I want to fit the simulated d_r(r) vs r and d_theta(r) vs r values with the above mentioned coupled differential eqns by usuing the fitting parameters lamda, kappa, theta_k. For the sake of good fitting one can use boundary conditions as parameter. However getting errors. Please help me to solve those errors and fitting those data. curve fitting MATLAB Answers — New Questions
Issues integration viva connections in Ms Teams
Hello all,
We’re currently experiencing an issue in SharePoint online used through Viva connections in Teams. The issue is visible in both the desktop as web application.
When we open sites via Viva connections we’re able to see content and documents on pages but when we use the horizontal navigation bar to navigate to certain folders we’re seeing a blank screen in Teams in the desktop and browser. In SharePoint online we don’t see this issue.
(Navigating to a folder)
(Blank screen)
The same issue can be found here that was posted by someone else experiencing this issue: Links to SharePoint document folders do not work within the Viva – Microsoft Community
Kind regards,
Siebe ST
Hello all, We’re currently experiencing an issue in SharePoint online used through Viva connections in Teams. The issue is visible in both the desktop as web application. When we open sites via Viva connections we’re able to see content and documents on pages but when we use the horizontal navigation bar to navigate to certain folders we’re seeing a blank screen in Teams in the desktop and browser. In SharePoint online we don’t see this issue. (Navigating to a folder) (Blank screen) The same issue can be found here that was posted by someone else experiencing this issue: Links to SharePoint document folders do not work within the Viva – Microsoft Community Kind regards,Siebe ST Read More
Matlab Warning: Solver not applicable (mosek)
Matlab + yalmip toolbox, when calling cplex or mosek to solve the optimization problem, the result is always wrong: Warning: Solver not applicable (mosek), Warning: Solver not applicable (cplex), I think my software is installed correctly, Now I have several reasons for doubt:
1. Too many constraints, the scale of problem solving is too large
2. The software version does not match?(matlab2014b+mosek 8.0.0.60/cplex 12.6.3)
3. There are some mistakes in the code or there is no feasible solution (I think it is unlikely)
Please help me see what to do,thank you !
Code for solving part:
ops=sdpsettings
ops = sdpsettings(‘verbose’,2,’solver’,’mosek’,’fmincon.MaxFunEvals’,30000);
sol =solvesdp(Constraint,f,ops,’full’);
if sol.problem== 0
value(f)
else
disp(‘求解过程中出错’);
operation result:
ops =
solver: ”
verbose: 1
debug: 0
usex0: 0
warning: 1
cachesolvers: 0
showprogress: 0
saveduals: 1
removeequalities: 0
savesolveroutput: 0
savesolverinput: 0
saveyalmipmodel: 0
convertconvexquad: 1
assertgpnonnegativity: 1
thisisnotagp: 0
radius: Inf
relax: 0
dualize: 0
savedebug: 0
expand: 1
allowmilp: 1
allownonconvex: 1
shift: 0
dimacs: 0
beeponproblem: [-5 -4 -3 -2 -1]
bisection: [1×1 struct]
bilevel: [1×1 struct]
bmibnb: [1×1 struct]
bnb: [1×1 struct]
cutsdp: [1×1 struct]
kkt: [1×1 struct]
moment: [1×1 struct]
mp: [1×1 struct]
mpcvx: [1×1 struct]
plot: [1×1 struct]
robust: [1×1 struct]
sos: [1×1 struct]
refiner: [1×1 struct]
baron: []
bintprog: [1×1 struct]
bonmin: []
cdcs: [1×1 struct]
cdd: [1×1 struct]
cbc: [1×1 struct]
clp: [1×1 struct]
cplex: [1×1 struct]
csdp: [1×1 struct]
dsdp: [1×1 struct]
ecos: []
filtersd: [1×1 struct]
fmincon: [1×1 struct]
fminsearch: [1×1 struct]
frlib: [1×1 struct]
glpk: [1×1 struct]
gurobi: [1×1 struct]
ipopt: [1×1 struct]
intlinprog: [1×1 optim.options.Intlinprog]
knitro: [1×1 struct]
linprog: [1×1 struct]
lmilab: [1×1 struct]
lmirank: [1×1 struct]
logdetppa: [1×1 struct]
lpsolve: [1×1 struct]
lsqnonneg: [1×1 struct]
lsqlin: [1×1 struct]
kypd: [1×1 struct]
nag: [1×1 struct]
mosek: [1×1 struct]
nomad: []
ooqp: []
penbmi: [1×1 struct]
penlab: []
pensdp: [1×1 struct]
pop: [1×1 struct]
qpoases: []
osqp: []
qsopt: [1×1 struct]
quadprog: [1×1 struct]
quadprogbb: [1×1 struct]
scip: []
scs: [1×1 struct]
sdpa: [1×1 struct]
sdplr: [1×1 struct]
sdpt3: [1×1 struct]
sdpnal: [1×1 struct]
sedumi: [1×1 struct]
sparsepop: [1×1 struct]
sparsecolo: [1×1 struct]
vsdp: [1×1 struct]
xpress: []
Warning: Solver not applicable (mosek)
求解过程中出错
>>Matlab + yalmip toolbox, when calling cplex or mosek to solve the optimization problem, the result is always wrong: Warning: Solver not applicable (mosek), Warning: Solver not applicable (cplex), I think my software is installed correctly, Now I have several reasons for doubt:
1. Too many constraints, the scale of problem solving is too large
2. The software version does not match?(matlab2014b+mosek 8.0.0.60/cplex 12.6.3)
3. There are some mistakes in the code or there is no feasible solution (I think it is unlikely)
Please help me see what to do,thank you !
Code for solving part:
ops=sdpsettings
ops = sdpsettings(‘verbose’,2,’solver’,’mosek’,’fmincon.MaxFunEvals’,30000);
sol =solvesdp(Constraint,f,ops,’full’);
if sol.problem== 0
value(f)
else
disp(‘求解过程中出错’);
operation result:
ops =
solver: ”
verbose: 1
debug: 0
usex0: 0
warning: 1
cachesolvers: 0
showprogress: 0
saveduals: 1
removeequalities: 0
savesolveroutput: 0
savesolverinput: 0
saveyalmipmodel: 0
convertconvexquad: 1
assertgpnonnegativity: 1
thisisnotagp: 0
radius: Inf
relax: 0
dualize: 0
savedebug: 0
expand: 1
allowmilp: 1
allownonconvex: 1
shift: 0
dimacs: 0
beeponproblem: [-5 -4 -3 -2 -1]
bisection: [1×1 struct]
bilevel: [1×1 struct]
bmibnb: [1×1 struct]
bnb: [1×1 struct]
cutsdp: [1×1 struct]
kkt: [1×1 struct]
moment: [1×1 struct]
mp: [1×1 struct]
mpcvx: [1×1 struct]
plot: [1×1 struct]
robust: [1×1 struct]
sos: [1×1 struct]
refiner: [1×1 struct]
baron: []
bintprog: [1×1 struct]
bonmin: []
cdcs: [1×1 struct]
cdd: [1×1 struct]
cbc: [1×1 struct]
clp: [1×1 struct]
cplex: [1×1 struct]
csdp: [1×1 struct]
dsdp: [1×1 struct]
ecos: []
filtersd: [1×1 struct]
fmincon: [1×1 struct]
fminsearch: [1×1 struct]
frlib: [1×1 struct]
glpk: [1×1 struct]
gurobi: [1×1 struct]
ipopt: [1×1 struct]
intlinprog: [1×1 optim.options.Intlinprog]
knitro: [1×1 struct]
linprog: [1×1 struct]
lmilab: [1×1 struct]
lmirank: [1×1 struct]
logdetppa: [1×1 struct]
lpsolve: [1×1 struct]
lsqnonneg: [1×1 struct]
lsqlin: [1×1 struct]
kypd: [1×1 struct]
nag: [1×1 struct]
mosek: [1×1 struct]
nomad: []
ooqp: []
penbmi: [1×1 struct]
penlab: []
pensdp: [1×1 struct]
pop: [1×1 struct]
qpoases: []
osqp: []
qsopt: [1×1 struct]
quadprog: [1×1 struct]
quadprogbb: [1×1 struct]
scip: []
scs: [1×1 struct]
sdpa: [1×1 struct]
sdplr: [1×1 struct]
sdpt3: [1×1 struct]
sdpnal: [1×1 struct]
sedumi: [1×1 struct]
sparsepop: [1×1 struct]
sparsecolo: [1×1 struct]
vsdp: [1×1 struct]
xpress: []
Warning: Solver not applicable (mosek)
求解过程中出错
>> Matlab + yalmip toolbox, when calling cplex or mosek to solve the optimization problem, the result is always wrong: Warning: Solver not applicable (mosek), Warning: Solver not applicable (cplex), I think my software is installed correctly, Now I have several reasons for doubt:
1. Too many constraints, the scale of problem solving is too large
2. The software version does not match?(matlab2014b+mosek 8.0.0.60/cplex 12.6.3)
3. There are some mistakes in the code or there is no feasible solution (I think it is unlikely)
Please help me see what to do,thank you !
Code for solving part:
ops=sdpsettings
ops = sdpsettings(‘verbose’,2,’solver’,’mosek’,’fmincon.MaxFunEvals’,30000);
sol =solvesdp(Constraint,f,ops,’full’);
if sol.problem== 0
value(f)
else
disp(‘求解过程中出错’);
operation result:
ops =
solver: ”
verbose: 1
debug: 0
usex0: 0
warning: 1
cachesolvers: 0
showprogress: 0
saveduals: 1
removeequalities: 0
savesolveroutput: 0
savesolverinput: 0
saveyalmipmodel: 0
convertconvexquad: 1
assertgpnonnegativity: 1
thisisnotagp: 0
radius: Inf
relax: 0
dualize: 0
savedebug: 0
expand: 1
allowmilp: 1
allownonconvex: 1
shift: 0
dimacs: 0
beeponproblem: [-5 -4 -3 -2 -1]
bisection: [1×1 struct]
bilevel: [1×1 struct]
bmibnb: [1×1 struct]
bnb: [1×1 struct]
cutsdp: [1×1 struct]
kkt: [1×1 struct]
moment: [1×1 struct]
mp: [1×1 struct]
mpcvx: [1×1 struct]
plot: [1×1 struct]
robust: [1×1 struct]
sos: [1×1 struct]
refiner: [1×1 struct]
baron: []
bintprog: [1×1 struct]
bonmin: []
cdcs: [1×1 struct]
cdd: [1×1 struct]
cbc: [1×1 struct]
clp: [1×1 struct]
cplex: [1×1 struct]
csdp: [1×1 struct]
dsdp: [1×1 struct]
ecos: []
filtersd: [1×1 struct]
fmincon: [1×1 struct]
fminsearch: [1×1 struct]
frlib: [1×1 struct]
glpk: [1×1 struct]
gurobi: [1×1 struct]
ipopt: [1×1 struct]
intlinprog: [1×1 optim.options.Intlinprog]
knitro: [1×1 struct]
linprog: [1×1 struct]
lmilab: [1×1 struct]
lmirank: [1×1 struct]
logdetppa: [1×1 struct]
lpsolve: [1×1 struct]
lsqnonneg: [1×1 struct]
lsqlin: [1×1 struct]
kypd: [1×1 struct]
nag: [1×1 struct]
mosek: [1×1 struct]
nomad: []
ooqp: []
penbmi: [1×1 struct]
penlab: []
pensdp: [1×1 struct]
pop: [1×1 struct]
qpoases: []
osqp: []
qsopt: [1×1 struct]
quadprog: [1×1 struct]
quadprogbb: [1×1 struct]
scip: []
scs: [1×1 struct]
sdpa: [1×1 struct]
sdplr: [1×1 struct]
sdpt3: [1×1 struct]
sdpnal: [1×1 struct]
sedumi: [1×1 struct]
sparsepop: [1×1 struct]
sparsecolo: [1×1 struct]
vsdp: [1×1 struct]
xpress: []
Warning: Solver not applicable (mosek)
求解过程中出错
>> optimization;matlab+mosek;optimization MATLAB Answers — New Questions
Windows update download error – 0x80240067
I cannot download or install my windows updates.
I cannot download or install my windows updates. Read More
Enhancing Creative Projects with Picsart and Microsoft Tools
As mobile photography and digital content creation continue to evolve, Picsart stands out with its advanced editing tools powered by artificial intelligence and machine learning algorithms. These technologies enable precise background removal, sophisticated filter application, and high-accuracy adjustments, catering to both novice and seasoned designers. For users seeking an expanded toolkit, the Picsart mod apk provides access to premium features that are otherwise locked in the standard version. This modified application enhances the usability and functionality, allowing for an unrestricted creative process. However, it is critical to approach such modifications with due diligence, considering the potential implications on software security and compliance. Utilizing robust and feature-rich editing tools like Picsart within proper guidelines can significantly amplify productivity and innovation in digital content creation.
As mobile photography and digital content creation continue to evolve, Picsart stands out with its advanced editing tools powered by artificial intelligence and machine learning algorithms. These technologies enable precise background removal, sophisticated filter application, and high-accuracy adjustments, catering to both novice and seasoned designers. For users seeking an expanded toolkit, the Picsart mod apk provides access to premium features that are otherwise locked in the standard version. This modified application enhances the usability and functionality, allowing for an unrestricted creative process. However, it is critical to approach such modifications with due diligence, considering the potential implications on software security and compliance. Utilizing robust and feature-rich editing tools like Picsart within proper guidelines can significantly amplify productivity and innovation in digital content creation. Read More
Is Lisence “Matlab Basic Package” required to use license “Matlab embedded Coder Package”?
Mi question is simple, do I need to have License ""Matlab Basic Package" in order to be able to use "Matlab embedded Coder Package"? or if I only buy "Matlab embedded Coder Package" license is enough for my activities as Model base designer.
Thanks in advanceMi question is simple, do I need to have License ""Matlab Basic Package" in order to be able to use "Matlab embedded Coder Package"? or if I only buy "Matlab embedded Coder Package" license is enough for my activities as Model base designer.
Thanks in advance Mi question is simple, do I need to have License ""Matlab Basic Package" in order to be able to use "Matlab embedded Coder Package"? or if I only buy "Matlab embedded Coder Package" license is enough for my activities as Model base designer.
Thanks in advance license, embedded coder MATLAB Answers — New Questions
Palo Alto Global Protect Logs Missing Most information
Hi all,
I’ve integrated Palo Firewall with MS Sentinel.
For most log type (Traffic, Threat, System), everything is working fine.
But for GlobalProtect log type, it’s missing almost all valuable values (no username, authentication status (failed or success), Portal Name, Gateway Name, etc…
I used to following URL to defines CEF format.
https://github.com/pemontto/Palo-Alto-CEF/blob/master/10.0/globalprotect.txt
PS: PANOS version 11.x
Any idea ??
Regards,
HA
Hi all, I’ve integrated Palo Firewall with MS Sentinel.For most log type (Traffic, Threat, System), everything is working fine.But for GlobalProtect log type, it’s missing almost all valuable values (no username, authentication status (failed or success), Portal Name, Gateway Name, etc…I used to following URL to defines CEF format.https://github.com/pemontto/Palo-Alto-CEF/blob/master/10.0/globalprotect.txt PS: PANOS version 11.x Any idea ?? Regards, HA Read More