Month: August 2024
finding the remainder of the division of two symbolic variables
I want to get 2*V^2 from the operation below
syms A V
rem(2*V^2+3A,A)
but it seems like rem() function does not work with symbolic variables. Is there a way to achieve this in another way?I want to get 2*V^2 from the operation below
syms A V
rem(2*V^2+3A,A)
but it seems like rem() function does not work with symbolic variables. Is there a way to achieve this in another way? I want to get 2*V^2 from the operation below
syms A V
rem(2*V^2+3A,A)
but it seems like rem() function does not work with symbolic variables. Is there a way to achieve this in another way? symbolic MATLAB Answers — New Questions
User is not able to log onto AVD
Hello All,
Hope you are doing great,
Br
Ravi Kumar
Hello All, Hope you are doing great, Two users in our environment are unable to log into Azure AVD from their machines “Kept on Saying Invalid credentials”. Both of them recently had their laptop’s touchpads replaced, and since then, they have been unable to log into AVD. However, they can log into AVD from different machines without any issues. Please provide your valuable advice on this matter. BrRavi Kumar Read More
Stop script Buttons being printed
Hi All
I have an Excel spreadsheet in SharePoint, I have created some script to clear a form with a button within the sheet, is there any way to stop the button being to be printed?
Currently when the sheet is printed the button also shows
Hi AllI have an Excel spreadsheet in SharePoint, I have created some script to clear a form with a button within the sheet, is there any way to stop the button being to be printed? Currently when the sheet is printed the button also shows Read More
% Complete and Planned % Complete is not same
Hello Experts,
I have a scenario where I am running a project. Following is the implementation of the same:
There are no dependencies in the project and neither the baselines for my project. I have just used the % Complete to update the project.
The formula for the Planned % Complete is as follows:
IIf([Start]>Now(),0,IIf([Finish]<Now(),100,(ProjDateDiff([Start],Now(),[Project Calendar])/[Duration])*100))
A very simple project but the percentage is not coming the same. Why?
Regards
Hello Experts,I have a scenario where I am running a project. Following is the implementation of the same: There are no dependencies in the project and neither the baselines for my project. I have just used the % Complete to update the project.The formula for the Planned % Complete is as follows:IIf([Start]>Now(),0,IIf([Finish]<Now(),100,(ProjDateDiff([Start],Now(),[Project Calendar])/[Duration])*100)) A very simple project but the percentage is not coming the same. Why? Regards Read More
Teams Notification for Sharepoint News – how to disable it?
Since last week, we in Germany have automatically received a Teams notification when news is published in Sharepoint, regardless of who wrote the message or whether I am even interested in it. How can I stop this? I couldn’t find anything about it in the Teams settings. Can this be turned off company-wide?
Since last week, we in Germany have automatically received a Teams notification when news is published in Sharepoint, regardless of who wrote the message or whether I am even interested in it. How can I stop this? I couldn’t find anything about it in the Teams settings. Can this be turned off company-wide? Read More
Modify page template: modifications do not reflect in existing pages
In a specific Sharepoint site, i created a page template and set this as the default template.
I started to create several pages based on this template.
then, i decided to a 2 webparts to this template. However, modification made on this template does not show on existing pages that where created with this template.
I’m moving our internal KB from WordPress to Sharepoint.
Now, i’m afraid that, after adding a few 100 pages, management would want to see some changes in the layout. How do you Sharepointgurus tackle this?
thanks in advance
In a specific Sharepoint site, i created a page template and set this as the default template.I started to create several pages based on this template.then, i decided to a 2 webparts to this template. However, modification made on this template does not show on existing pages that where created with this template. I’m moving our internal KB from WordPress to Sharepoint.Now, i’m afraid that, after adding a few 100 pages, management would want to see some changes in the layout. How do you Sharepointgurus tackle this? thanks in advance Read More
IOS : COPILOT copy/paste issue.
Hello,
we have deployed the COPILOT application via INTUNE on our ANDROID and IOS smartphones.
We have also authorized copy and paste between managed applications in our policies for ANDROID and IOS/.
On Android, when we copy from Outlook to the COPILOT application, it works.
On IOS, when you copy from Outlook to the COPILOT application, the data is not copied and a message indicates that copy/paste is not authorized.
Is anyone experiencing the same problem?
Hello,we have deployed the COPILOT application via INTUNE on our ANDROID and IOS smartphones.We have also authorized copy and paste between managed applications in our policies for ANDROID and IOS/.On Android, when we copy from Outlook to the COPILOT application, it works.On IOS, when you copy from Outlook to the COPILOT application, the data is not copied and a message indicates that copy/paste is not authorized.Is anyone experiencing the same problem? Read More
Azure OpenAI Assistants error to upload file in vector store
Hi everyone,
I work on python and i’m using OpenAI Assistants to do file search
This morning i found a new error in the Azure service for vector stores when i try to upload files.
The file is a simply text file. Until this morning everything works correctly.
Using this method:
file_batch = client.beta.vector_stores.file_batches.upload_and_poll(
vector_store_id=vector_store.id,
files=[file_stream]
)
I obtain this results:
VectorStoreFileBatch(id=’vsfb_54481954a81c4304a50836a045c46b3e’, created_at=1722517040, file_counts=FileCounts(cancelled=0, completed=0, failed=1, in_progress=0, total=1), object=’vector_store.file_batch’, status=’failed’, vector_store_id=’vs_toxChpcsKo4zP5hJ1rolC9ND’)
Looking the file i can see the error:
client.beta.vector_stores.files.list(vector_store.id).data
[VectorStoreFile(id=’assistant-ZkqNET3MpPlCMofluUe5QADJ’, created_at=1722517035, last_error=LastError(code=’server_error’, message=’An internal error occurred.’)]
I repeated the flow but everytime i ge the same problem.
I tested the same thing with OpenAI and it worked.
Is this happening to anyone else?
Thanks,
Matteo
Hi everyone, I work on python and i’m using OpenAI Assistants to do file search This morning i found a new error in the Azure service for vector stores when i try to upload files.The file is a simply text file. Until this morning everything works correctly. Using this method:file_batch = client.beta.vector_stores.file_batches.upload_and_poll(
vector_store_id=vector_store.id,
files=[file_stream]
) I obtain this results:VectorStoreFileBatch(id=’vsfb_54481954a81c4304a50836a045c46b3e’, created_at=1722517040, file_counts=FileCounts(cancelled=0, completed=0, failed=1, in_progress=0, total=1), object=’vector_store.file_batch’, status=’failed’, vector_store_id=’vs_toxChpcsKo4zP5hJ1rolC9ND’) Looking the file i can see the error:client.beta.vector_stores.files.list(vector_store.id).data
[VectorStoreFile(id=’assistant-ZkqNET3MpPlCMofluUe5QADJ’, created_at=1722517035, last_error=LastError(code=’server_error’, message=’An internal error occurred.’)] I repeated the flow but everytime i ge the same problem. I tested the same thing with OpenAI and it worked. Is this happening to anyone else? Thanks,Matteo Read More
Bookings is ignoring calendar clashes
Hi
I’ve an issue with MS Bookings whereby it ignores other calendar appointments when making bookings.
The setting for Events on Office calendar affect availability is checked.
The setting for Always show time slots in business time zone is checked.
I have tested this with one member of staff, more than one, and have removed and re-added them in every possible combination.
Bookings are still made with clashes:
The bookings are being made with either of the members of staff, and customers are not selecting which they want to book with.
Any suggestions?
Thanks!
Hi I’ve an issue with MS Bookings whereby it ignores other calendar appointments when making bookings. The setting for Events on Office calendar affect availability is checked. The setting for Always show time slots in business time zone is checked. I have tested this with one member of staff, more than one, and have removed and re-added them in every possible combination. Bookings are still made with clashes: The bookings are being made with either of the members of staff, and customers are not selecting which they want to book with. Any suggestions? Thanks! Read More
New Outlook – Link functionality not working properly
Recently in the new Outlook environment a change was made to the way Links are handled. It used to be so that when I clicked a link, a new tab was opened in my edge browser. Since this week suddenly a new window opens (looks like EdgeWebview) that doesn’t accommodate my web plugins (Dashlane) nor calls upon cookies to prefill fields.
So for example when i follow a link to new courses on the Learning Platform, it forces me to log in manually. Of course I can rightclick copy paste the link, but it is still a nuisance.
All information i could find refer to older documentation and functionalities that are not present in the current settings menu.
Does anyone have a clue how to change the behavior for handling hyperlinks within outlook?
Recently in the new Outlook environment a change was made to the way Links are handled. It used to be so that when I clicked a link, a new tab was opened in my edge browser. Since this week suddenly a new window opens (looks like EdgeWebview) that doesn’t accommodate my web plugins (Dashlane) nor calls upon cookies to prefill fields.So for example when i follow a link to new courses on the Learning Platform, it forces me to log in manually. Of course I can rightclick copy paste the link, but it is still a nuisance. All information i could find refer to older documentation and functionalities that are not present in the current settings menu. Does anyone have a clue how to change the behavior for handling hyperlinks within outlook? Read More
New on Microsoft AppSource: July 18-24, 2024
We continue to expand the Microsoft AppSource ecosystem. For this volume, 134 new offers successfully met the onboarding criteria and went live. See details of the new offers below:
Get it now in our marketplace
Access Patient Flow Manager: Access Patient Flow Manager provides real-time bed occupancy updates, improving patient care, reducing risk, and saving time. It interfaces with existing patient administration systems and departmental solutions, standardizes data capture, and digitally manages bed supply and demand.
AffableBPM AI-Based Data Analytics Copilot: Data Analytics is a Microsoft Azure Open AI-powered service that converts your questions into database searches and presents the results in an intuitive visual format. It provides instant insights without the need for complex tools or technical skills. It’s perfect for quick decision making and enhances productivity by bypassing traditional setup and configuration steps.
Doxee: Using data from Microsoft Dynamics 365, the Doxee platform lets you create quotes, proposals, responsive emails, catalogues, and much more for a wide variety of output channels and formats like PDF, HTML5, Microsoft Word, and e-mail. Create documents in seconds instead of hours, while avoiding errors caused by copying and pasting and the use of outdated templates.
Health AI247: This database lets medical professionals access patient records and research symptoms for an efficient workflow. By entering an ID number, doctors can retrieve medical records and provide informed and timely care.
Imperium Power Platform Co-Managed Services: Imperium Dynamics offers Co-Managed Services for Microsoft Power Platform to support in-house teams with complex issues and enhancements. It provides additional expertise to effectively manage Power Platform solutions.
Limitless Digital Workplace for Education: This intranet portal from IT-DEV combines communication functionalities from Microsoft 365, tailored to the needs of educational organizations. It simplifies digital expertise, offering personalized portal appearance, interactive media content, targeted information delivery, extended communication capabilities, expandable intranet content management, service center access, and integrated applications and systems.
Limitless Digital Workplace for Healthcare: This communication solution from IT-DEV is tailored to the needs of the healthcare industry. It combines essential communication functionalities from Microsoft 365, including SharePoint, Teams, and Viva, to enhance usability and interactivity. The solution offers a ready-to-deploy intranet portal, customizable branding, engaging media content, applications and systems, enhanced communication reach, scalable self-service intranet, procedures and documents, and interactive communication.
PortalTalk: Governance Solution for Microsoft Teams: PortalTalk by QS Solutions streamlines administrative duties with automated site provisioning, offers robust access control, and empowers Teams administrators to manage their domains autonomously while IT staff retain comprehensive control over the system. It enhances an organization’s security stance and simplifies administrative processes, delivering a secure and compliant environment for Teams and SharePoint document management.
RF Plus WMS for Business Central: RF Plus is a warehouse management system for Microsoft Dynamics 365 Business Central, trusted by thousands of users worldwide. It includes modules for inbound and outbound processes, inventory management, and more. The app supports the Essentials and Premium Editions of Microsoft Dynamics 365 Business Central and is available in English in several countries.
Street As: Street As optimizes address fields for New Zealand postal addresses, displaying Address, Suburb, Town/City, Postcode, and Country/Region code. The system can be configured to treat empty Country/Region fields as New Zealand addresses, and advanced features allow for contact display on report layouts with per-report settings. A suburb lookup feature populates Town/City and Postcode fields.
Timbuktu Wireless: Timbuktu Wireless automates the conversion of legacy PRG code to over 50 programming languages. It includes up to 200,000 daily AI tokens and a flexible GUI for full control of the AI model, source text, prompt text, and output filename. The tool aids developers in understanding the original Visual FoxPro business logic in a conversion project to any of the supported programming languages. The PRG file import process is simple, and scripts are processed and saved automatically.
Visual Copilots for Knowledge Work: Unlock your team’s full potential with Unplex Me, an AI-driven visual copilots suite. Use agentic copilots and avatars to visualize and organize thoughts on a dynamic and cognitive digital canvas. Designed for enterprise, mid-market, and startup segments, Unplex Me transforms the way you collaborate, innovate, and drive productivity.
XPL Connect: XPL Connect links the XPL Travel ERP platform with supplier channels, offering multiple API connections for flights, hotels, car rentals, and transfers. It simplifies booking management, providing real-time searches, dynamic rates, and availability. XPL Connect enhances the functionality of XPL Travel, improving operational efficiency and delivering a superior user experience.
Go further with workshops, proofs of concept, and implementations
Adoption and Change Management on Copilot for Microsoft 365: CDW’s program helps organizations manage change and create learning structures using Copilot for Microsoft 365 to support employees. The program showcases the intelligence added to employee experiences by unleashing their creativity, unlocking productivity, and leveling up their skills.
ToolsGroup PriceAI: 5-Month Implementation and Proof of Concept: enVista offers an implementation readiness assessment to ensure successful technology adoption, working with clients to create action plans, validate timelines, and guide the implementation process. It also provides change management support to ensure maximum compliance and acceptance.
Cerium AI Workshop: Microsoft Copilot Engagement Series: Cerium’s two-day Copilot workshop provides a tailored understanding of generative AI in the workplace, with hands-on demonstrations and a customized roadmap towards adoption. Overall outcomes include a summary of workshop findings, a roadmap towards adoption, proposed project services, and a framework for building an organizational AI policy.
Know, Enable, and Adopt Copilot for Microsoft 365: 3-Month Implementation: C3ntro AI Evolution helps businesses integrate and adopt AI solutions and Microsoft Copilot. It guides organizations through four key phases: AI Advisory, Copilot Deployment and Readiness, Adoption and Change Management for Copilot, and Microsoft Copilot Extensibility. This implementation is available in Spanish.
Copilot for Microsoft 365: Implementation: Copilot is an AI assistant that automates processes and provides useful information. Copilot Studio allows for custom tool and workflow creation. ITQAN Global offers custom Copilot development and integration with Teams, with a four-phase implementation plan including data collection, model development, interface design, and testing.
Copilot Studio: 1-Day Workshop: The Evopoint Copilot Studio Training Workshop helps build conversational assistants with Microsoft Power Platform, offering innovative chatbot solutions and process automation. The workshop enables hands-on experience in designing, building, and deploying data-driven chatbots that utilize Power Automate for process automation.
Data Platform and Power BI Center of Excellence: 6-Week Implementation: Advaiya’s Data platform and Microsoft Power BI Center of Excellence (CoE) offers enterprise-class best practices and governance for the self-service era. This 6-week implementation establishes best practices, policies, and processes to ensure the health and success of your Power BI deployment across the enterprise.
Dynamics 365 and Shopify integration: 3-Week Integration: Evincable’s Microsoft Dynamics 365 integration with Shopify streamlines sales processes, enhances customer experiences, and provides data-driven insights. Benefits include unified customer data, efficient sales management, real-time inventory sync, and advanced analytics. The agenda guides businesses through the integration process, from defining goals to deployment and ongoing support.
Microsoft 365 Copilot Evaluation Accelerator: Fujitsu’s Copilot for Microsoft 365 Evaluation Accelerator offers a guided experience to help organizations deploy and maximize the value of their Copilot licenses. The program includes a “get ready” phase, an “onboard and engage” phase, and a “deliver impact” phase, with activities such as training, feedback collection, and business case development. Fujitsu’s expertise in delivering innovative AI solutions can help drive real business value.
Microsoft 365 Copilot Evaluation Accelerator Role-Based: Fujitsu’s Evaluation Accelerator helps deploy Copilot for Microsoft 365 in weeks. It consists of four phases: get ready, onboard and engage, deliver impact, and extend and optimize. Benefits include aligning Copilot with business goals, personalized insights, and access to best practices. Fujitsu’s expertise in delivering innovative AI solutions drives real business value.
Microsoft 365 Copilot Studio Value Discovery: 3-Day Workshop: Fujitsu’s workshop helps businesses explore scenarios and use cases for Microsoft Copilot Studio, a low-code platform for developing custom copilots. The workshop consists of three phases: assess, build the vision, and plan for value, with optional modules that can be customized. Fujitsu also offers additional on-demand services, such as building a business case or cost/benefit analysis.
Modern Intranet with SharePoint Online and Viva Connections: CDW helps organizations design an engaging intranet user experience for their employees. The solution includes knowledge transfer, compliance policies, and end user adoption techniques. The proposal is tailored to the customer’s needs and budget.
Power Apps: Consulting Meeting: Get a tailored Canvas or Model-Driven App using Power Apps for your business needs. The Canvas App offers a customizable and mobile-friendly interface, while the Model-Driven App provides robust functionality built on your existing data model. From consultation to training, PartnerHelper ensures seamless integration into your workflow, enhancing productivity and efficiency.
Power Platform Services: 4-Week Advisory Service: Tietoevry offers custom Copilot building and app design services for Microsoft Power Platform with a flexible delivery model, handling the entire process or working alongside in-house consultants. The typical delivery process includes assessment, concept draft, PoC development, and adjusting based on feedback.
Microsoft Intune: 4-Week Implementation: Intune Implementation from Spyglass offers a fully functional and deployed instance of Intune that follows a device management maturity model consisting of six phases. It includes ongoing services for proactive device management tasks.
Microsoft Teams Premium: 5-Day Pilot: Microsoft Teams Premium offers Intelligent Recap, virtual appointments, live translation, and meeting security. Symity provides a pilot program to understand the product’s features and identify quick wins. The pilot includes three phases: Plan, Enable, and Grow, with the goal of highlighting the business value of Teams Premium and providing an actionable plan for scaled enablement.
ToolsGroup Price AI: 6-Month Implementation Change Management: enVista offers Implementation Readiness Assessment to ensure successful transition to new technologies. It provides tailored action plans, project management, subject matter expertise, and technical advice during the implementation phase. It also offer change management services to help organizations adapt to new software and processes.
Workshop for Microsoft 365 Threat Protection: This workshop from CDW analyzes and assesses endpoint vulnerabilities using Microsoft cloud solutions. It provides evidence-based insight to ensure security, governance, and compliance across the organization. CDW tailors a proposal to your environment, needs, and budget, with varying prices and durations.
Contact our partners
Aptean Warehouse Management System
ToolsGroup PriceAI: 1-Week Assessment and Implementation
Comnica Contact Center Software
Construction Materials Specifications Assistant
Encarp – Employee Parking Management in Australia
Fresh Intranet – Your Powerful and Engaging Digital Workspace
Gantt Chart Maker with Microsoft Licensing
ImageLink Document Management for Business Central
Imperium Co-Managed for Azure Service
Imperium Fabric Co-Managed Service
Imperium Finance and Supply Chain Management Co-Managed Service
Inoxision Archive Connector (DE)
Introductory and Briefing to the Microsoft Copilots by Comtrade: 1-Day Workshop
Inventory and Asset Reservation
Invoice Generator with Microsoft Licensing
Kelvin Autonomous Operations Software
LABWORKS eWorksheet Management
Mannai Dynamics HR Payroll solution
MetaPro for Professional Services
Microsoft Licensing Analysis: 2-Hour Consultation
ModaSuite 365 Seasonal Abilitation
Multi-Entity Management for Real Consulting Greek Essentials
Multi-Stage Process for Case or Any Entity in Dynamics CRM
Parcel Carrier Invoice Data Automation
POS ONE – POS365 BC Integration
PositivityTech Financial Services Industry Benchmark Platform
Power Platform Consulting Offer
Prodware AI Form Assistant for Microsoft Dynamics 365 Apps
Profituity Platform Next – ACH Processing Platform
Rockton Pricing Management – Admin Portal
Senseye Predictive Maintenance
SharePoint Online Migration: 3-Day Assessment
SMART Core Localization for Moldova
SMART WHT Localization for Moldova
TamblaOne Workforce Management
TRASER Rental 365 x Continia Document Capture
Unifii360 Advance Backorder Management
Wise Pool and Spa Service Software – Enterprise
Yobi Signal as a Service: Data Enrichment
This content was generated by Microsoft Azure OpenAI and then revised by human editors.
Microsoft Tech Community – Latest Blogs –Read More
Parfeval with backgorund pool cannot read XML file
Inside the parfeval I am using xml_read with an XML path. This function works properly with a parpool object but not with a backgorundPoolInside the parfeval I am using xml_read with an XML path. This function works properly with a parpool object but not with a backgorundPool Inside the parfeval I am using xml_read with an XML path. This function works properly with a parpool object but not with a backgorundPool backgroundpool, parfeval MATLAB Answers — New Questions
code does not call a designed function that works in other program
Hello and sorry for this long query. I am not very good at this , I have to admit it.
I am encountering an issue when trying to apply custom boundary conditions in a PDE model using MATLAB. Specifically, I have a custom boundary condition function mybc1 that works correctly in another code when using structuralBC to apply displacement conditions to vertices. However, in my current code, when I try to use applyBoundaryCondition to set mixed boundary conditions on specific faces, it seems that the solver does not enter the custom boundary condition function mybc1.
Here’s a brief description of what I am trying to do:
Model Definition: I have defined a PDE model with certain geometry and mesh.
Boundary Condition Application: I attempt to apply mixed boundary conditions on specific faces using applyBoundaryCondition with the u parameter set to a custom function handle @(location, state)mybc1(location, state, dis, ts, in).
Issue: It appears that the solver does not call the mybc1 function during the solution process. I verified this by setting breakpoints inside mybc1, which are never hit.
The mybc1 function interpolates the acceleration data (dis) at the times specified by the solver (state.time) and returns the corresponding values. This function has been tested and works correctly in another program with structuralBC.
code as follows:
%____________Define dimensions of the plate________________________________
len = 1.22; % length in x direction
width = 1.22; % Width in y direction
sq_side = 0.10; % Side length of the squares in corners
% Create the geometry description matrix___________________________________
% —–Define the outer boundary——————————————-
outer_boundary = [3, 4, 0, len, len, 0, 0, 0, width, width]’;
%——Define squares in the corners—————————————
square_1 = [3, 4, 0, sq_side, sq_side, 0, 0, 0, sq_side, sq_side]’;
square_2 = [3, 4, len – sq_side, len, len, len – sq_side, 0, 0, sq_side, sq_side]’;
square_3 = [3, 4, len – sq_side, len, len, len – sq_side, width – sq_side, width – sq_side, width, width]’;
square_4 = [3, 4, 0, sq_side, sq_side, 0, width – sq_side, width – sq_side, width, width]’;
%——Combine all the geometries——————————————
gdm = [outer_boundary, square_1, square_2, square_3, square_4];
%——Define the names for each region————————————
ns = (char(‘R1′,’R2′,’R3′,’R4′,’R5′))’;
sf = ‘R1+R2+R3+R4+R5’;
%——-Create the geometry————————————————
model = createpde(2);
geometryFromEdges(model, decsg(gdm, sf, ns));
%——-Generate the mesh and plot the geometry—————————-
msh = generateMesh(model, ‘Hmax’, 0.1); % Use ‘Hmax’ to control mesh density
figure
pdemesh(model)
%_____________Create the different regions of the model___________________
% Obtain nodes and elements of the mesh
[p,e,t] = meshToPet(model.Mesh);
% ———-Plot with Faces labels—————————————-
figure;
pdegplot(model, ‘FaceLabels’, ‘on’, ‘FaceAlpha’, 0.5);
figure
pdemesh(model, ‘NodeLabels’, ‘on’);
% Definition of the constants
E = 4E9;
h_thick = 0.05;
nu = 0.3;
mass = 100;
D = E*h_thick^3/(12*(1-nu)^2);
% Now we create the PDE systems as symbolic equations_____________________
syms pres
syms u1(x,y,t) u2(x,y,t)
pdeeq = [-laplacian(u1,[x y])+u2; D*laplacian(u2,[x y])+ mass*diff(u1,t,t)-pres];
symcoeffs = pdeCoefficients(pdeeq,[u1,u2],’Symbolic’,true);
c2=symcoeffs.c;
m2=symcoeffs.m;
%——Display the symbolic coefficients———————————–
structfun(@disp,symcoeffs);
symcoeffs=subs(symcoeffs,pres,1);
coeffs=pdeCoefficientsToDouble(symcoeffs);
%——pass these coefficients to the pde model—————————-
specifyCoefficients(model,’m’,coeffs.m,’d’,coeffs.d,’c’,…
coeffs.c,’a’,coeffs.a,’f’,coeffs.f);
% INITIAL CONDITIONS ——————————————————
setInitialConditions(model,[0;0],[0;0]);
%USE THE DATA FROM ASHMOLEAN AS BOUNDARY CONDITIONS————————
%load the vector containing the acceleration values
load(totaldata.mat’, ‘DATA’,…
‘TIME’,’fs’);
ac=DATA;
% ——-Create vector time, not starting in 0
num_samples = size(DATA, 1);
dt = 1 / fs; % interval between measurements
t = (1:num_samples) * dt; % vector of times
% TRANSFORM ACCELERATIONS INTO DISPLACEMENTS_______________________________
acvedi=AccVelDis(962.54,1005.11,992.35,ac,fs,t);
dis=acvedi{3};
t=[0,t]; % I start the time at 0
% Boundary conditions in the faces using the displacement vectors
in=0; %counter variable
Faces=[1,2,3,5]; %Vector with faces numbers
for jk = 1:numel(Faces)
in=in+1;%add 1 in every loop to access the different measurmentes contained in the matrix acceleration
face= Faces(jk);
dis1=dis(:,in);
applyBoundaryCondition(model,"mixed","Face",[face,face],"u",@(location,state)mybc1(location,state,dis1,t),"EquationIndex",1,"q",[0 0],"g",0);
%applyBoundaryCondition(model,"dirichlet","Face",face,"h",[0 0 ; 0 1],"r",bcfunc)
end
in=0;
tim=[t(2) t(3)]; %tim represents the time of interest to solve the pde
res=solvepde(model, tim);
% Access the solution at the nodal locations
sol=res.NodalSolution;
And this is the function that works in another code:
function bcMatrix = mybc1(location,state,acs,ti)
%This function is use to extrapolate the values of acceleration for the
%time instances chosen by the system to do the integration of the system.
%as imput it requires the measurements matrix and the corresponding time
%measurements. As output, it provices the extrapoleted values for the state
%time
T=state.time;
% Check if T is NaN and assign the previous value if true
if isnan(T)
vq = NaN(size(location.x)); %this is what documentation says????
else
ac = acs; %gets the value of the corresponding acceleration
vq = interp1(ti, ac, T); %interpolates it
end
bcMatrix = vq;
end
I would really appreciate any help/guidanceHello and sorry for this long query. I am not very good at this , I have to admit it.
I am encountering an issue when trying to apply custom boundary conditions in a PDE model using MATLAB. Specifically, I have a custom boundary condition function mybc1 that works correctly in another code when using structuralBC to apply displacement conditions to vertices. However, in my current code, when I try to use applyBoundaryCondition to set mixed boundary conditions on specific faces, it seems that the solver does not enter the custom boundary condition function mybc1.
Here’s a brief description of what I am trying to do:
Model Definition: I have defined a PDE model with certain geometry and mesh.
Boundary Condition Application: I attempt to apply mixed boundary conditions on specific faces using applyBoundaryCondition with the u parameter set to a custom function handle @(location, state)mybc1(location, state, dis, ts, in).
Issue: It appears that the solver does not call the mybc1 function during the solution process. I verified this by setting breakpoints inside mybc1, which are never hit.
The mybc1 function interpolates the acceleration data (dis) at the times specified by the solver (state.time) and returns the corresponding values. This function has been tested and works correctly in another program with structuralBC.
code as follows:
%____________Define dimensions of the plate________________________________
len = 1.22; % length in x direction
width = 1.22; % Width in y direction
sq_side = 0.10; % Side length of the squares in corners
% Create the geometry description matrix___________________________________
% —–Define the outer boundary——————————————-
outer_boundary = [3, 4, 0, len, len, 0, 0, 0, width, width]’;
%——Define squares in the corners—————————————
square_1 = [3, 4, 0, sq_side, sq_side, 0, 0, 0, sq_side, sq_side]’;
square_2 = [3, 4, len – sq_side, len, len, len – sq_side, 0, 0, sq_side, sq_side]’;
square_3 = [3, 4, len – sq_side, len, len, len – sq_side, width – sq_side, width – sq_side, width, width]’;
square_4 = [3, 4, 0, sq_side, sq_side, 0, width – sq_side, width – sq_side, width, width]’;
%——Combine all the geometries——————————————
gdm = [outer_boundary, square_1, square_2, square_3, square_4];
%——Define the names for each region————————————
ns = (char(‘R1′,’R2′,’R3′,’R4′,’R5′))’;
sf = ‘R1+R2+R3+R4+R5’;
%——-Create the geometry————————————————
model = createpde(2);
geometryFromEdges(model, decsg(gdm, sf, ns));
%——-Generate the mesh and plot the geometry—————————-
msh = generateMesh(model, ‘Hmax’, 0.1); % Use ‘Hmax’ to control mesh density
figure
pdemesh(model)
%_____________Create the different regions of the model___________________
% Obtain nodes and elements of the mesh
[p,e,t] = meshToPet(model.Mesh);
% ———-Plot with Faces labels—————————————-
figure;
pdegplot(model, ‘FaceLabels’, ‘on’, ‘FaceAlpha’, 0.5);
figure
pdemesh(model, ‘NodeLabels’, ‘on’);
% Definition of the constants
E = 4E9;
h_thick = 0.05;
nu = 0.3;
mass = 100;
D = E*h_thick^3/(12*(1-nu)^2);
% Now we create the PDE systems as symbolic equations_____________________
syms pres
syms u1(x,y,t) u2(x,y,t)
pdeeq = [-laplacian(u1,[x y])+u2; D*laplacian(u2,[x y])+ mass*diff(u1,t,t)-pres];
symcoeffs = pdeCoefficients(pdeeq,[u1,u2],’Symbolic’,true);
c2=symcoeffs.c;
m2=symcoeffs.m;
%——Display the symbolic coefficients———————————–
structfun(@disp,symcoeffs);
symcoeffs=subs(symcoeffs,pres,1);
coeffs=pdeCoefficientsToDouble(symcoeffs);
%——pass these coefficients to the pde model—————————-
specifyCoefficients(model,’m’,coeffs.m,’d’,coeffs.d,’c’,…
coeffs.c,’a’,coeffs.a,’f’,coeffs.f);
% INITIAL CONDITIONS ——————————————————
setInitialConditions(model,[0;0],[0;0]);
%USE THE DATA FROM ASHMOLEAN AS BOUNDARY CONDITIONS————————
%load the vector containing the acceleration values
load(totaldata.mat’, ‘DATA’,…
‘TIME’,’fs’);
ac=DATA;
% ——-Create vector time, not starting in 0
num_samples = size(DATA, 1);
dt = 1 / fs; % interval between measurements
t = (1:num_samples) * dt; % vector of times
% TRANSFORM ACCELERATIONS INTO DISPLACEMENTS_______________________________
acvedi=AccVelDis(962.54,1005.11,992.35,ac,fs,t);
dis=acvedi{3};
t=[0,t]; % I start the time at 0
% Boundary conditions in the faces using the displacement vectors
in=0; %counter variable
Faces=[1,2,3,5]; %Vector with faces numbers
for jk = 1:numel(Faces)
in=in+1;%add 1 in every loop to access the different measurmentes contained in the matrix acceleration
face= Faces(jk);
dis1=dis(:,in);
applyBoundaryCondition(model,"mixed","Face",[face,face],"u",@(location,state)mybc1(location,state,dis1,t),"EquationIndex",1,"q",[0 0],"g",0);
%applyBoundaryCondition(model,"dirichlet","Face",face,"h",[0 0 ; 0 1],"r",bcfunc)
end
in=0;
tim=[t(2) t(3)]; %tim represents the time of interest to solve the pde
res=solvepde(model, tim);
% Access the solution at the nodal locations
sol=res.NodalSolution;
And this is the function that works in another code:
function bcMatrix = mybc1(location,state,acs,ti)
%This function is use to extrapolate the values of acceleration for the
%time instances chosen by the system to do the integration of the system.
%as imput it requires the measurements matrix and the corresponding time
%measurements. As output, it provices the extrapoleted values for the state
%time
T=state.time;
% Check if T is NaN and assign the previous value if true
if isnan(T)
vq = NaN(size(location.x)); %this is what documentation says????
else
ac = acs; %gets the value of the corresponding acceleration
vq = interp1(ti, ac, T); %interpolates it
end
bcMatrix = vq;
end
I would really appreciate any help/guidance Hello and sorry for this long query. I am not very good at this , I have to admit it.
I am encountering an issue when trying to apply custom boundary conditions in a PDE model using MATLAB. Specifically, I have a custom boundary condition function mybc1 that works correctly in another code when using structuralBC to apply displacement conditions to vertices. However, in my current code, when I try to use applyBoundaryCondition to set mixed boundary conditions on specific faces, it seems that the solver does not enter the custom boundary condition function mybc1.
Here’s a brief description of what I am trying to do:
Model Definition: I have defined a PDE model with certain geometry and mesh.
Boundary Condition Application: I attempt to apply mixed boundary conditions on specific faces using applyBoundaryCondition with the u parameter set to a custom function handle @(location, state)mybc1(location, state, dis, ts, in).
Issue: It appears that the solver does not call the mybc1 function during the solution process. I verified this by setting breakpoints inside mybc1, which are never hit.
The mybc1 function interpolates the acceleration data (dis) at the times specified by the solver (state.time) and returns the corresponding values. This function has been tested and works correctly in another program with structuralBC.
code as follows:
%____________Define dimensions of the plate________________________________
len = 1.22; % length in x direction
width = 1.22; % Width in y direction
sq_side = 0.10; % Side length of the squares in corners
% Create the geometry description matrix___________________________________
% —–Define the outer boundary——————————————-
outer_boundary = [3, 4, 0, len, len, 0, 0, 0, width, width]’;
%——Define squares in the corners—————————————
square_1 = [3, 4, 0, sq_side, sq_side, 0, 0, 0, sq_side, sq_side]’;
square_2 = [3, 4, len – sq_side, len, len, len – sq_side, 0, 0, sq_side, sq_side]’;
square_3 = [3, 4, len – sq_side, len, len, len – sq_side, width – sq_side, width – sq_side, width, width]’;
square_4 = [3, 4, 0, sq_side, sq_side, 0, width – sq_side, width – sq_side, width, width]’;
%——Combine all the geometries——————————————
gdm = [outer_boundary, square_1, square_2, square_3, square_4];
%——Define the names for each region————————————
ns = (char(‘R1′,’R2′,’R3′,’R4′,’R5′))’;
sf = ‘R1+R2+R3+R4+R5’;
%——-Create the geometry————————————————
model = createpde(2);
geometryFromEdges(model, decsg(gdm, sf, ns));
%——-Generate the mesh and plot the geometry—————————-
msh = generateMesh(model, ‘Hmax’, 0.1); % Use ‘Hmax’ to control mesh density
figure
pdemesh(model)
%_____________Create the different regions of the model___________________
% Obtain nodes and elements of the mesh
[p,e,t] = meshToPet(model.Mesh);
% ———-Plot with Faces labels—————————————-
figure;
pdegplot(model, ‘FaceLabels’, ‘on’, ‘FaceAlpha’, 0.5);
figure
pdemesh(model, ‘NodeLabels’, ‘on’);
% Definition of the constants
E = 4E9;
h_thick = 0.05;
nu = 0.3;
mass = 100;
D = E*h_thick^3/(12*(1-nu)^2);
% Now we create the PDE systems as symbolic equations_____________________
syms pres
syms u1(x,y,t) u2(x,y,t)
pdeeq = [-laplacian(u1,[x y])+u2; D*laplacian(u2,[x y])+ mass*diff(u1,t,t)-pres];
symcoeffs = pdeCoefficients(pdeeq,[u1,u2],’Symbolic’,true);
c2=symcoeffs.c;
m2=symcoeffs.m;
%——Display the symbolic coefficients———————————–
structfun(@disp,symcoeffs);
symcoeffs=subs(symcoeffs,pres,1);
coeffs=pdeCoefficientsToDouble(symcoeffs);
%——pass these coefficients to the pde model—————————-
specifyCoefficients(model,’m’,coeffs.m,’d’,coeffs.d,’c’,…
coeffs.c,’a’,coeffs.a,’f’,coeffs.f);
% INITIAL CONDITIONS ——————————————————
setInitialConditions(model,[0;0],[0;0]);
%USE THE DATA FROM ASHMOLEAN AS BOUNDARY CONDITIONS————————
%load the vector containing the acceleration values
load(totaldata.mat’, ‘DATA’,…
‘TIME’,’fs’);
ac=DATA;
% ——-Create vector time, not starting in 0
num_samples = size(DATA, 1);
dt = 1 / fs; % interval between measurements
t = (1:num_samples) * dt; % vector of times
% TRANSFORM ACCELERATIONS INTO DISPLACEMENTS_______________________________
acvedi=AccVelDis(962.54,1005.11,992.35,ac,fs,t);
dis=acvedi{3};
t=[0,t]; % I start the time at 0
% Boundary conditions in the faces using the displacement vectors
in=0; %counter variable
Faces=[1,2,3,5]; %Vector with faces numbers
for jk = 1:numel(Faces)
in=in+1;%add 1 in every loop to access the different measurmentes contained in the matrix acceleration
face= Faces(jk);
dis1=dis(:,in);
applyBoundaryCondition(model,"mixed","Face",[face,face],"u",@(location,state)mybc1(location,state,dis1,t),"EquationIndex",1,"q",[0 0],"g",0);
%applyBoundaryCondition(model,"dirichlet","Face",face,"h",[0 0 ; 0 1],"r",bcfunc)
end
in=0;
tim=[t(2) t(3)]; %tim represents the time of interest to solve the pde
res=solvepde(model, tim);
% Access the solution at the nodal locations
sol=res.NodalSolution;
And this is the function that works in another code:
function bcMatrix = mybc1(location,state,acs,ti)
%This function is use to extrapolate the values of acceleration for the
%time instances chosen by the system to do the integration of the system.
%as imput it requires the measurements matrix and the corresponding time
%measurements. As output, it provices the extrapoleted values for the state
%time
T=state.time;
% Check if T is NaN and assign the previous value if true
if isnan(T)
vq = NaN(size(location.x)); %this is what documentation says????
else
ac = acs; %gets the value of the corresponding acceleration
vq = interp1(ti, ac, T); %interpolates it
end
bcMatrix = vq;
end
I would really appreciate any help/guidance handles, pde, applyboundaryconditions, function, differential equations MATLAB Answers — New Questions
Friend Function implementation in MATLAB
Typically, the private properties of a class are not accessible by any other class or function from outside.
But, a friend function can be granted special access to private and protected members of a class in C++.
For further reference: https://en.cppreference.com/w/cpp/language/friend
Is there any way, I can implement this in MATLAB?
It would be really helpful if anyone could provide a sample code illustrating the implementation in MATLAB.
Thanks in advance.Typically, the private properties of a class are not accessible by any other class or function from outside.
But, a friend function can be granted special access to private and protected members of a class in C++.
For further reference: https://en.cppreference.com/w/cpp/language/friend
Is there any way, I can implement this in MATLAB?
It would be really helpful if anyone could provide a sample code illustrating the implementation in MATLAB.
Thanks in advance. Typically, the private properties of a class are not accessible by any other class or function from outside.
But, a friend function can be granted special access to private and protected members of a class in C++.
For further reference: https://en.cppreference.com/w/cpp/language/friend
Is there any way, I can implement this in MATLAB?
It would be really helpful if anyone could provide a sample code illustrating the implementation in MATLAB.
Thanks in advance. matlab, oop, programming MATLAB Answers — New Questions
Updating SharePoint Column without Overwriting
Hello,
I have a Sharepoint List that contains two columns, column A and column B which can contain multiple person or group (so no string value, more like Teams functionnality) When column B is not empty, I would like to update column A with the value of column B without overwriting what it contains, so only append the value of B in A.
Does somebody know how to achieve that ?
Thanks in advance
Hello, I have a Sharepoint List that contains two columns, column A and column B which can contain multiple person or group (so no string value, more like Teams functionnality) When column B is not empty, I would like to update column A with the value of column B without overwriting what it contains, so only append the value of B in A.Does somebody know how to achieve that ? Thanks in advance Read More
Mã giới thiệu KuCoin: QBAYT4XB – Mã mời
Mã tham chiếu chính thức cho quan hệ đối tác (đối tác) của sàn giao dịch KuCoin được xác định là QBAYT4XB. Nhờ mã mời này, bạn sẽ nhận được chiết khấu hoa hồng cao nhất trọn đời. Mở ra cánh cửa giao dịch tiền điện tử thuận lợi với mã giới thiệu QBAYT4XB.
Mã tham chiếu chính thức cho quan hệ đối tác (đối tác) của sàn giao dịch KuCoin được xác định là QBAYT4XB. Nhờ mã mời này, bạn sẽ nhận được chiết khấu hoa hồng cao nhất trọn đời. Mở ra cánh cửa giao dịch tiền điện tử thuận lợi với mã giới thiệu QBAYT4XB. Read More
iOS Microsoft Defender Compliance Policy not showing compliance despite successfull setup of the app
I am having an issue on multiple tenants and after a lot of try and error I am not getting it.
All tenant enroll their devices through the Apple DEP in supervised mode and deploy the Microsoft Defender app using a VPP token with a device based license.
The app is successfully installed on the devices and users are able to sign in to the app and the defender is showing everything is green. However the Compliance policy does not switch to compliant even after long waiting. Strangely this is not happening always… around half of the enrollments switch to compliant while the other half does not. Sometimes the issue also resolve by reinstalling the app.
I have this issue on multiple tenants. I am using the Filter profile with auto enrollment (which also does not start always) but the VPN onboarding has the same issue.
So if someone else had this issue and has an idea where this comes from: Please give me a comment.
I am having an issue on multiple tenants and after a lot of try and error I am not getting it. All tenant enroll their devices through the Apple DEP in supervised mode and deploy the Microsoft Defender app using a VPP token with a device based license. The app is successfully installed on the devices and users are able to sign in to the app and the defender is showing everything is green. However the Compliance policy does not switch to compliant even after long waiting. Strangely this is not happening always… around half of the enrollments switch to compliant while the other half does not. Sometimes the issue also resolve by reinstalling the app. I have this issue on multiple tenants. I am using the Filter profile with auto enrollment (which also does not start always) but the VPN onboarding has the same issue. So if someone else had this issue and has an idea where this comes from: Please give me a comment. Read More
Get Microsoft Customer | Get Microsoft Office +1-844-200-0457
+1-844-200-0457 — Microsoft Certified Agent- Online Now. Microsoft® Gold Partner. Free Diagnosis Provided. Money Back Guarantee. 70,000+ Happy Customers. BBB Rating A+. Featured on HUFFPOST. Featured on TechCrunch.
+1-844-200-0457 — Microsoft Certified Agent- Online Now. Microsoft® Gold Partner. Free Diagnosis Provided. Money Back Guarantee. 70,000+ Happy Customers. BBB Rating A+. Featured on HUFFPOST. Featured on TechCrunch. Read More
Add event to other person’s calendar
I am using the new outlook. I am able to add a new calendar event and select the calendar in which to add this. However, the drop down list of calendars only includes a few colleagues, and not all who have given me editing permissions. How can I resolve this please
I am using the new outlook. I am able to add a new calendar event and select the calendar in which to add this. However, the drop down list of calendars only includes a few colleagues, and not all who have given me editing permissions. How can I resolve this please Read More
How to use indices of one matrix as entries of another matrix?
Hello, I have two matrices, M1 ans M2. They both have rows and columns fom 0 to 9 and a to f (16 * 16) matrix.
Mi matrix is filled with random numbers form 0 to 255 in hex decimal notation.
The second matrix M2 is empty but has the same row and column indexs. I need to fill M2 with the help of M1. For eample, in M2, at row 3 and colm 4 ( 34,the first entry of M1) will be 00 ( index of the first entry of M1). In M2 at row 6 col A, the entry will be 01, at row 2 col 9, the entry will be 02, and so on.
%% % Initialize M2 with zeros
M2 = zeros(16,16);
for row = 0:15
for col = 0:15
% get the value from M1
value= M1(row+1,col+1);
% Convert the values to row and col indices for M2
hexStr=dec2hex(value,2); % convert to 2 digit hex
M2_row=hex2dec(hexStr(1))+1;% convert first digit to decimal
M2_col=hex2dec(hexStr(2))+1;% convert first digit to decimal
% %Debugging
% % place the original rows and columns in M2
%
M2(M2_row, M2_col)=row*16+col;
end
end
M2;
If anyone can help.Hello, I have two matrices, M1 ans M2. They both have rows and columns fom 0 to 9 and a to f (16 * 16) matrix.
Mi matrix is filled with random numbers form 0 to 255 in hex decimal notation.
The second matrix M2 is empty but has the same row and column indexs. I need to fill M2 with the help of M1. For eample, in M2, at row 3 and colm 4 ( 34,the first entry of M1) will be 00 ( index of the first entry of M1). In M2 at row 6 col A, the entry will be 01, at row 2 col 9, the entry will be 02, and so on.
%% % Initialize M2 with zeros
M2 = zeros(16,16);
for row = 0:15
for col = 0:15
% get the value from M1
value= M1(row+1,col+1);
% Convert the values to row and col indices for M2
hexStr=dec2hex(value,2); % convert to 2 digit hex
M2_row=hex2dec(hexStr(1))+1;% convert first digit to decimal
M2_col=hex2dec(hexStr(2))+1;% convert first digit to decimal
% %Debugging
% % place the original rows and columns in M2
%
M2(M2_row, M2_col)=row*16+col;
end
end
M2;
If anyone can help. Hello, I have two matrices, M1 ans M2. They both have rows and columns fom 0 to 9 and a to f (16 * 16) matrix.
Mi matrix is filled with random numbers form 0 to 255 in hex decimal notation.
The second matrix M2 is empty but has the same row and column indexs. I need to fill M2 with the help of M1. For eample, in M2, at row 3 and colm 4 ( 34,the first entry of M1) will be 00 ( index of the first entry of M1). In M2 at row 6 col A, the entry will be 01, at row 2 col 9, the entry will be 02, and so on.
%% % Initialize M2 with zeros
M2 = zeros(16,16);
for row = 0:15
for col = 0:15
% get the value from M1
value= M1(row+1,col+1);
% Convert the values to row and col indices for M2
hexStr=dec2hex(value,2); % convert to 2 digit hex
M2_row=hex2dec(hexStr(1))+1;% convert first digit to decimal
M2_col=hex2dec(hexStr(2))+1;% convert first digit to decimal
% %Debugging
% % place the original rows and columns in M2
%
M2(M2_row, M2_col)=row*16+col;
end
end
M2;
If anyone can help. matrix indexes MATLAB Answers — New Questions