Category: News
Availability options issue
Hi, I’m using MS Booking to create timeslots for induction sessions for students. I can’t seem to block out lunchtime, even though I’ve defined custom availability hours of 9am-1pm and 2pm-5pm.
I’d swear this was working a couple of weeks ago when I set the dates.
I’ve got General Availability set to none, and Time Increments set to 30mins.
Any advice is greatly appreciated,
Hi, I’m using MS Booking to create timeslots for induction sessions for students. I can’t seem to block out lunchtime, even though I’ve defined custom availability hours of 9am-1pm and 2pm-5pm.I’d swear this was working a couple of weeks ago when I set the dates. I’ve got General Availability set to none, and Time Increments set to 30mins. Any advice is greatly appreciated, availability optionsbooking form Read More
Defender for Android release notes?
Hi everyone,
I searched online for a page that showed me the release notes for the versions of the Defender version for Android but I couldn’t find anything about it.
Can you help me, is there an explanatory page?
Thank you all.
Hi everyone,I searched online for a page that showed me the release notes for the versions of the Defender version for Android but I couldn’t find anything about it.Can you help me, is there an explanatory page?Thank you all. Read More
Restrictions in between the session – Azure Student Code – AZ 400 Trainings
We are reaching out to inquire whether any recent restrictions have been imposed on the utilization of Azure passcodes. We have encountered significant difficulties accessing the Azure student passcodes, particularly during AZ 400 training sessions over the past few months.
During these training sessions, participants consistently encounter the following error:
{
“status”: “Failed”,
“error”: {
“code”: “Forbidden”,
“message”: “The subscription ‘aacb3810-b205-4b2c-8405-09a8ba2848f2’ is not allowed to create or update the serverfarm.”,
“details”: [
{
“message”: “The subscription ‘aacb3810-b205-4b2c-8405-09a8ba2848f2’ is not allowed to create or update the serverfarm.”
},
{
“code”: “Forbidden”
},
{}
]
}
}
Additionally, we have observed that the Free tier is displaying as 0, despite deleting all VMs and services. We are unable to create any new services, including those under the Free tier, either via the Bicep template or directly through the portal. This issue persists across multiple regions.
This error has become a recurring obstacle during our training sessions, and it is increasingly challenging to reassure our students. It appears that Microsoft is consistently blocking these actions, and we urgently require resolution and clarification on this matter.
We appreciate your immediate attention to this issue and request a prompt response.
We are reaching out to inquire whether any recent restrictions have been imposed on the utilization of Azure passcodes. We have encountered significant difficulties accessing the Azure student passcodes, particularly during AZ 400 training sessions over the past few months. During these training sessions, participants consistently encounter the following error:{ “status”: “Failed”, “error”: { “code”: “Forbidden”, “message”: “The subscription ‘aacb3810-b205-4b2c-8405-09a8ba2848f2’ is not allowed to create or update the serverfarm.”, “details”: [ { “message”: “The subscription ‘aacb3810-b205-4b2c-8405-09a8ba2848f2’ is not allowed to create or update the serverfarm.” }, { “code”: “Forbidden” }, {} ] }} Additionally, we have observed that the Free tier is displaying as 0, despite deleting all VMs and services. We are unable to create any new services, including those under the Free tier, either via the Bicep template or directly through the portal. This issue persists across multiple regions. This error has become a recurring obstacle during our training sessions, and it is increasingly challenging to reassure our students. It appears that Microsoft is consistently blocking these actions, and we urgently require resolution and clarification on this matter. We appreciate your immediate attention to this issue and request a prompt response. Read More
Pacific Daylight Time (PDT) not available on Microsoft 365
On March 10, 2024, in Vancouver, B.C. we entered Pacific Daylight Time (PDT) UTC-7:00. In my Microsoft 365 settings, my timezone was set to UTC-8:00 Pacific Time (US & Canada). I tried to manually change it to the correct option, but no option for Pacific Time UTC-7:00 was available in the dropdown menu. I tried a few different things, including changing to an entirely different timezone so as to try changing it back to Pacific Time, but I simply do not see the correct option.
I discovered this issue because I am having trouble getting my personal booking page on Microsoft Bookings to show the correct available times. This may be an unrelated issue, but I wanted to get my global timezone fixed first.
On March 10, 2024, in Vancouver, B.C. we entered Pacific Daylight Time (PDT) UTC-7:00. In my Microsoft 365 settings, my timezone was set to UTC-8:00 Pacific Time (US & Canada). I tried to manually change it to the correct option, but no option for Pacific Time UTC-7:00 was available in the dropdown menu. I tried a few different things, including changing to an entirely different timezone so as to try changing it back to Pacific Time, but I simply do not see the correct option. I discovered this issue because I am having trouble getting my personal booking page on Microsoft Bookings to show the correct available times. This may be an unrelated issue, but I wanted to get my global timezone fixed first. Read More
How do I download music from YouTube to computer mp3 format?
I’m looking to download music from YouTube directly onto my computer in MP3 format, but I’m not sure how to go about it. I’ve seen several methods online, but I’m having trouble figuring out which ones are reliable and safe to use without violating any terms of service. Could anyone recommend a straightforward and legal way to convert YouTube videos to MP3 files? Any advice on software or online tools that facilitate this while ensuring good audio quality would be greatly appreciated. Thank you!
I’m looking to download music from YouTube directly onto my computer in MP3 format, but I’m not sure how to go about it. I’ve seen several methods online, but I’m having trouble figuring out which ones are reliable and safe to use without violating any terms of service. Could anyone recommend a straightforward and legal way to convert YouTube videos to MP3 files? Any advice on software or online tools that facilitate this while ensuring good audio quality would be greatly appreciated. Thank you! Read More
Copilot for Microsoft 365 System prompt
Hey everyone!
Mary David Pasch mentioned Copilot for M365 system prompt in Microsoft Mechanics Youtube video.
System prompt in the video is something like:
< I im_start I >system [system] (#instructions) ## Where to find information – You can respond using retrieved information from search using the Microsoft Graph …## Your response style and tone- Your responses should be informative, professional and logical – Your responses positive, polite and engaging## How to respond with gathered information – You can leverage search result information from multiple searches to respond ## Citing information used to respond – You should provide a citation with the entity name hyperlinked to the source ## Safety and responsibility – You should not respond in a way that is harmful < I im_end I >
The system prompt presented instructs to be professional informative, logical etc.
I have two questions about this:
Is the system prompt presented anywhere near the real one Copilot for M365 ?
If yesFrom the prompting point of view, is the context and expectations easier for Copilot to process without additional and overlapping prompting (for example “act like student and be unformal”) ?
I ask this because I see Copilot sometimes “chocking” if there is too much instructions in one prompt. I usually prompt more conversational way.
And of course sometimes I need specific “role” outputs , but Im thinkin should I just trust the system prompt generally.
Microsofts “prompting guide” suggests that be as specific as possible and prompt should include goal, context etc.
So is the LLM so advanced that I dont have to waste my thoughts to this? 🙂
I hope I was clear enough, Thanks for the answers in advance!
Hey everyone! Mary David Pasch mentioned Copilot for M365 system prompt in Microsoft Mechanics Youtube video. System prompt in the video is something like:< I im_start I >system [system] (#instructions) ## Where to find information – You can respond using retrieved information from search using the Microsoft Graph …## Your response style and tone- Your responses should be informative, professional and logical – Your responses positive, polite and engaging## How to respond with gathered information – You can leverage search result information from multiple searches to respond ## Citing information used to respond – You should provide a citation with the entity name hyperlinked to the source ## Safety and responsibility – You should not respond in a way that is harmful < I im_end I > The system prompt presented instructs to be professional informative, logical etc. I have two questions about this:Is the system prompt presented anywhere near the real one Copilot for M365 ?If yesFrom the prompting point of view, is the context and expectations easier for Copilot to process without additional and overlapping prompting (for example “act like student and be unformal”) ? I ask this because I see Copilot sometimes “chocking” if there is too much instructions in one prompt. I usually prompt more conversational way.And of course sometimes I need specific “role” outputs , but Im thinkin should I just trust the system prompt generally.Microsofts “prompting guide” suggests that be as specific as possible and prompt should include goal, context etc.So is the LLM so advanced that I dont have to waste my thoughts to this? 🙂 I hope I was clear enough, Thanks for the answers in advance! Read More
Edge consuming a lot of CPU after patch 124.0.2478.51
Good day,
I run a build server that is running a BVT test pack for our internal system. It runs test in parallel in order to get through all the test cases. The tech stack is DevOps self hosted agents, nunit + Selenium and C# .net Core
After Edge has updated to version 124.0.2478.51 (18 April) the CPU usage has changed from 5-7% to +20% until the server crashes. If I rollback the the previous version everything works as expected.
Is anybody else experiencing this?
Good day, I run a build server that is running a BVT test pack for our internal system. It runs test in parallel in order to get through all the test cases. The tech stack is DevOps self hosted agents, nunit + Selenium and C# .net Core After Edge has updated to version 124.0.2478.51 (18 April) the CPU usage has changed from 5-7% to +20% until the server crashes. If I rollback the the previous version everything works as expected. Is anybody else experiencing this? Read More
A workbook for Logic App (standard) run history and resubmitting multiple runs.
After we published a sample workbook for organizing the Logic Apps events emitted to Application Insight in this blog post, we received feedback from multiple customers to have the ability to select and resubmit multiple runs from this workbook.
We worked with the Azure Monitor team to have the ability to select multiple rows and perform an ARM action iteratively on the selected rows. The Azure Monitor team recently released this feature and with that we are publishing a new sample workbook that enables you to select multiple runs for resubmission.
Please note that this workbook only works with Application Insight V2 integration and enabling V2 integration requires you updating the host.json file as described here.
Deploying Workbook Template.
The sample template is published here, and we can deploy this workbook template from the azure portal following the instruction from this blog post.
Mapping Logic App to Workbook
Once deployed, you can follow the steps described in the previous blogpost to associate your application insight and the logic app to the workbook template.
Viewing a Run using monitoring view
You can click on the view link to bring-up your familiar workflow monitoring view
And you can use the Resubmit link to resubmit a single run.
Resubmitting Multiple Runs
When you select multiple runs, you would see the new button named “Resubmit Selected Runs” at the bottom of the runs table and you can use this to resubmit all selected runs.
This will bring-up the following context view that you can use to verify the run ids before they are resubmitted.
Microsoft Tech Community – Latest Blogs –Read More
Introducing our Security 101 course for beginners!
Everyone is involved in cybersecurity to some extent nowadays, it’s a team sport. To help everyone upskill in the cybersecurity space, we’ve released an open-source Security 101 for beginners course that helps explain key concepts of cybersecurity.
What’s in store?
CIA Triad & more: Dive into core concepts like the CIA triad and learn the difference between risks and threats.
Security Controls: Get the lowdown on what security controls are and their various forms.
Zero Trust: Unpack the buzzword ‘zero trust’ and discover its significance in today’s cybersecurity landscape.
Key concepts in cybersecurity: across identity, networking, security operations, infrastructure, and data security.
Who’s it for?
This course is designed for beginners to explain key security foundations, but you may already be an experienced professional in another area who hasn’t done any formal security training too.
Getting started
The whole course is contained in this repository on GitHub.
Fork It: Fork the entire course repository to your GitHub account. This lets you tweak the code and tackle the challenges at your pace.
Star It: Star the repository for easy access later.
Course breakdown
Video Intro: Kick off with a video that sets the stage for what you’ll learn.
Written Guide: Deep dive into each topic with a detailed written lesson.
Quizzes: Test your understanding with quizzes.
Extra Resources: Hungry for more? We’ve got extra resources for those eager to expand their expertise.
Ready to embark on your cybersecurity adventure? Head to our GitHub repository and start learning!:rocket::locked: If you found it useful, don’t forget to share with others:
aka.ms/sec101-beginners
Microsoft Tech Community – Latest Blogs –Read More
How do I put map_info into customized enviwrite matlab code?
This is my map_info
MapCellsReference with properties:
XWorldLimits: [699960 809760]
YWorldLimits: [3190200 3300000]
RasterSize: [5490 5490]
RasterInterpretation: ‘cells’
ColumnsStartFrom: ‘north’
RowsStartFrom: ‘west’
CellExtentInWorldX: 20
CellExtentInWorldY: 20
RasterExtentInWorldX: 109800
RasterExtentInWorldY: 109800
XIntrinsicLimits: [0.5 5490.5]
YIntrinsicLimits: [0.5 5490.5]
TransformationType: ‘rectilinear’
CoordinateSystemType: ‘planar’
ProjectedCRS: [1×1 projcrs]
I want to put this information into enviwrite code which is as follows
fprintf(fid, ‘ENVIn’);
fprintf(fid, ‘description = {n’);
fprintf(fid, ‘Exported from MATLAB with coordinate and wavelength info}n’);
fprintf(fid, ‘%s %i n’, elements{1}, im_size(2)); % samples
fprintf(fid, ‘%s %i n’, elements{2}, im_size(1)); % lines
fprintf(fid, ‘%s %i n’, elements{3}, im_size(3)); % bands
fprintf(fid, ‘%s %i n’, elements{4}, t); % data type
fprintf(fid, ‘interleave = bsqn’);
fprintf(fid, ‘map info = {%s}n’, coordinate_information.map_info);
fprintf(fid, ‘projection info = {%s}n’, coordinate_information.projection_info);
fprintf(fid, ‘wavelength = {‘);
fprintf(fid, ‘%g, ‘, wavelength_data(1:end-1));
fprintf(fid, ‘%g}n’, wavelength_data(end));
fclose(fid);
I request you to please put above mentioned map_info into this customized enviwrite code. Looking forward for your kind cooperation.
DevendraThis is my map_info
MapCellsReference with properties:
XWorldLimits: [699960 809760]
YWorldLimits: [3190200 3300000]
RasterSize: [5490 5490]
RasterInterpretation: ‘cells’
ColumnsStartFrom: ‘north’
RowsStartFrom: ‘west’
CellExtentInWorldX: 20
CellExtentInWorldY: 20
RasterExtentInWorldX: 109800
RasterExtentInWorldY: 109800
XIntrinsicLimits: [0.5 5490.5]
YIntrinsicLimits: [0.5 5490.5]
TransformationType: ‘rectilinear’
CoordinateSystemType: ‘planar’
ProjectedCRS: [1×1 projcrs]
I want to put this information into enviwrite code which is as follows
fprintf(fid, ‘ENVIn’);
fprintf(fid, ‘description = {n’);
fprintf(fid, ‘Exported from MATLAB with coordinate and wavelength info}n’);
fprintf(fid, ‘%s %i n’, elements{1}, im_size(2)); % samples
fprintf(fid, ‘%s %i n’, elements{2}, im_size(1)); % lines
fprintf(fid, ‘%s %i n’, elements{3}, im_size(3)); % bands
fprintf(fid, ‘%s %i n’, elements{4}, t); % data type
fprintf(fid, ‘interleave = bsqn’);
fprintf(fid, ‘map info = {%s}n’, coordinate_information.map_info);
fprintf(fid, ‘projection info = {%s}n’, coordinate_information.projection_info);
fprintf(fid, ‘wavelength = {‘);
fprintf(fid, ‘%g, ‘, wavelength_data(1:end-1));
fprintf(fid, ‘%g}n’, wavelength_data(end));
fclose(fid);
I request you to please put above mentioned map_info into this customized enviwrite code. Looking forward for your kind cooperation.
Devendra This is my map_info
MapCellsReference with properties:
XWorldLimits: [699960 809760]
YWorldLimits: [3190200 3300000]
RasterSize: [5490 5490]
RasterInterpretation: ‘cells’
ColumnsStartFrom: ‘north’
RowsStartFrom: ‘west’
CellExtentInWorldX: 20
CellExtentInWorldY: 20
RasterExtentInWorldX: 109800
RasterExtentInWorldY: 109800
XIntrinsicLimits: [0.5 5490.5]
YIntrinsicLimits: [0.5 5490.5]
TransformationType: ‘rectilinear’
CoordinateSystemType: ‘planar’
ProjectedCRS: [1×1 projcrs]
I want to put this information into enviwrite code which is as follows
fprintf(fid, ‘ENVIn’);
fprintf(fid, ‘description = {n’);
fprintf(fid, ‘Exported from MATLAB with coordinate and wavelength info}n’);
fprintf(fid, ‘%s %i n’, elements{1}, im_size(2)); % samples
fprintf(fid, ‘%s %i n’, elements{2}, im_size(1)); % lines
fprintf(fid, ‘%s %i n’, elements{3}, im_size(3)); % bands
fprintf(fid, ‘%s %i n’, elements{4}, t); % data type
fprintf(fid, ‘interleave = bsqn’);
fprintf(fid, ‘map info = {%s}n’, coordinate_information.map_info);
fprintf(fid, ‘projection info = {%s}n’, coordinate_information.projection_info);
fprintf(fid, ‘wavelength = {‘);
fprintf(fid, ‘%g, ‘, wavelength_data(1:end-1));
fprintf(fid, ‘%g}n’, wavelength_data(end));
fclose(fid);
I request you to please put above mentioned map_info into this customized enviwrite code. Looking forward for your kind cooperation.
Devendra how do i put map_info into customized enviwrite ? MATLAB Answers — New Questions
Extracting Property Values from Property Functions
I’m encountering an error in MATLAB while attempting to extract `x` and `y` values from property functions. The property functions I’m working with look like this:
– `
@(P) (subs(P, x, 2) == 0)
`
– `
@(P) (subs(P, x, 6) == 0)
`
My goal is to extract the `x` value where the condition is met and then use that value to find the corresponding `y` by substituting into a simple polynomial. However, I’m encountering the following error:
Error using isSubspacePoly>get_property_values (line 208)
No valid x value found for the given property function.
Here’s the code snippet for the `get_property_values` function:
function [x_val, y_val] = get_property_values(propertyFcn)
syms x; % Symbolic variable
P = x; % Simple polynomial to apply the property function
% Get the condition from the property function
eqn = propertyFcn(P);
% Solve for x to meet the property condition
x_val = double(solve(eqn, x));
if isempty(x_val) % Handle cases with no valid solution
error(‘No valid x value found for the given property function.’);
end
% Compute y by substituting x_val into the polynomial
y_val = double(subs(P, x, x_val));
if isempty(y_val) % Ensure valid y_val
error(‘No valid y value obtained from the given property function.’);
end
end
The error occurs when there’s no valid solution for `x_val`. If I can’t get `x`, then I can’t find `y`. What might be causing this? Could it be an issue with the property function or something else? Any suggestions on how to extract `x` and `y` values correctly would be helpful.I’m encountering an error in MATLAB while attempting to extract `x` and `y` values from property functions. The property functions I’m working with look like this:
– `
@(P) (subs(P, x, 2) == 0)
`
– `
@(P) (subs(P, x, 6) == 0)
`
My goal is to extract the `x` value where the condition is met and then use that value to find the corresponding `y` by substituting into a simple polynomial. However, I’m encountering the following error:
Error using isSubspacePoly>get_property_values (line 208)
No valid x value found for the given property function.
Here’s the code snippet for the `get_property_values` function:
function [x_val, y_val] = get_property_values(propertyFcn)
syms x; % Symbolic variable
P = x; % Simple polynomial to apply the property function
% Get the condition from the property function
eqn = propertyFcn(P);
% Solve for x to meet the property condition
x_val = double(solve(eqn, x));
if isempty(x_val) % Handle cases with no valid solution
error(‘No valid x value found for the given property function.’);
end
% Compute y by substituting x_val into the polynomial
y_val = double(subs(P, x, x_val));
if isempty(y_val) % Ensure valid y_val
error(‘No valid y value obtained from the given property function.’);
end
end
The error occurs when there’s no valid solution for `x_val`. If I can’t get `x`, then I can’t find `y`. What might be causing this? Could it be an issue with the property function or something else? Any suggestions on how to extract `x` and `y` values correctly would be helpful. I’m encountering an error in MATLAB while attempting to extract `x` and `y` values from property functions. The property functions I’m working with look like this:
– `
@(P) (subs(P, x, 2) == 0)
`
– `
@(P) (subs(P, x, 6) == 0)
`
My goal is to extract the `x` value where the condition is met and then use that value to find the corresponding `y` by substituting into a simple polynomial. However, I’m encountering the following error:
Error using isSubspacePoly>get_property_values (line 208)
No valid x value found for the given property function.
Here’s the code snippet for the `get_property_values` function:
function [x_val, y_val] = get_property_values(propertyFcn)
syms x; % Symbolic variable
P = x; % Simple polynomial to apply the property function
% Get the condition from the property function
eqn = propertyFcn(P);
% Solve for x to meet the property condition
x_val = double(solve(eqn, x));
if isempty(x_val) % Handle cases with no valid solution
error(‘No valid x value found for the given property function.’);
end
% Compute y by substituting x_val into the polynomial
y_val = double(subs(P, x, x_val));
if isempty(y_val) % Ensure valid y_val
error(‘No valid y value obtained from the given property function.’);
end
end
The error occurs when there’s no valid solution for `x_val`. If I can’t get `x`, then I can’t find `y`. What might be causing this? Could it be an issue with the property function or something else? Any suggestions on how to extract `x` and `y` values correctly would be helpful. matlab code, matlab, matlab coder, matlab function MATLAB Answers — New Questions
Help with updating for loop
Hi all,I have a problem with the following sample code:
M=[1 2 3 4 5 6 7 8 9 10]
for i=1:length(M)
M(i)=[]
end
My code is not complete, but my problem is that when one row is omitted from the matrix, the size reduces to 9, so the code gets stock with an error to find M(10). Actually, I want to update the cell size in for loop. In my code, I must make some rows empty, I can not keep them. ThanksHi all,I have a problem with the following sample code:
M=[1 2 3 4 5 6 7 8 9 10]
for i=1:length(M)
M(i)=[]
end
My code is not complete, but my problem is that when one row is omitted from the matrix, the size reduces to 9, so the code gets stock with an error to find M(10). Actually, I want to update the cell size in for loop. In my code, I must make some rows empty, I can not keep them. Thanks Hi all,I have a problem with the following sample code:
M=[1 2 3 4 5 6 7 8 9 10]
for i=1:length(M)
M(i)=[]
end
My code is not complete, but my problem is that when one row is omitted from the matrix, the size reduces to 9, so the code gets stock with an error to find M(10). Actually, I want to update the cell size in for loop. In my code, I must make some rows empty, I can not keep them. Thanks for loop MATLAB Answers — New Questions
simmechanics link with inventor2025 does`t appear at add ins
Idid the step by step in https://la.mathworks.com/help/sm/ug/installing-and-linking-simmechanics-link-software.html , to install Mimscape Multibody plugin associate with Inventor 2025, all the steps was sucessfully, but in Inventor add +, the tool not appear, them I can`t export any CAD. It is Inventor 2025 Compatible whit MATLAB r2023a? or any idea to how can fixed that issue?Idid the step by step in https://la.mathworks.com/help/sm/ug/installing-and-linking-simmechanics-link-software.html , to install Mimscape Multibody plugin associate with Inventor 2025, all the steps was sucessfully, but in Inventor add +, the tool not appear, them I can`t export any CAD. It is Inventor 2025 Compatible whit MATLAB r2023a? or any idea to how can fixed that issue? Idid the step by step in https://la.mathworks.com/help/sm/ug/installing-and-linking-simmechanics-link-software.html , to install Mimscape Multibody plugin associate with Inventor 2025, all the steps was sucessfully, but in Inventor add +, the tool not appear, them I can`t export any CAD. It is Inventor 2025 Compatible whit MATLAB r2023a? or any idea to how can fixed that issue? inventor, autodesk, smlink MATLAB Answers — New Questions
Export Endpoint DLP Policies
Hi All,
I want to manage my DLP policies as code. To start I would like to capture my current configuration. I am looking for a way to export Endpoint DLP policies. Using PowerShell or Microsoft365DCM I can export basic policies, but missing Endpoint specific settings. For example, with PowerShell (Get-DLPComplianceRule | Select-Object -ExpandProperty EndpointDlpRestrictions) I can get some of the main settings such as print, but it does not expand any network locations or printer groups.
Any other ways to get a current configuration?
Many thanks
Pieter
Hi All,I want to manage my DLP policies as code. To start I would like to capture my current configuration. I am looking for a way to export Endpoint DLP policies. Using PowerShell or Microsoft365DCM I can export basic policies, but missing Endpoint specific settings. For example, with PowerShell (Get-DLPComplianceRule | Select-Object -ExpandProperty EndpointDlpRestrictions) I can get some of the main settings such as print, but it does not expand any network locations or printer groups.Any other ways to get a current configuration?Many thanksPieter Read More
Why under arm64, the X64-compiled c# cannot call the x64 dll generated by go?
Under arm64, I am using x64 compiled c# to call go generated x64 dll, the program always abnormal. The same dll, using x64 compiled c++ calls, without any problems
Are there any flaws in c# on arm?why c++ code dont have this problem? Thanks
Under arm64, I am using x64 compiled c# to call go generated x64 dll, the program always abnormal. The same dll, using x64 compiled c++ calls, without any problemsAre there any flaws in c# on arm?why c++ code dont have this problem? Thanks Read More
Convert Python list Type to MATLAB double
Hello All,
I would like to convert the python list type to matlab double.
I have tried the following,
First approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = cell(out(1:end-1));
out = cellfun(@double,out); %outputs type double
Second approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = func.convlisttoarray(out) %python function imports numpy and converts list to array using numpy.array()
out_double = double(out); % outputs type double
Although the length of the list is 1×150, in both the approaches, Matlab is taking a lot of computation time and the system hangs for a while. This is wierd to me, as a couple of days earlier everything worked fine and it could solve the problem in milli seconds.
Could anyone of you please help me with a faster approach to convert the python list to matlab double?
I am using Matlab 2019b.
Thank you in advance.
Cheers,
Sai KrishnaHello All,
I would like to convert the python list type to matlab double.
I have tried the following,
First approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = cell(out(1:end-1));
out = cellfun(@double,out); %outputs type double
Second approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = func.convlisttoarray(out) %python function imports numpy and converts list to array using numpy.array()
out_double = double(out); % outputs type double
Although the length of the list is 1×150, in both the approaches, Matlab is taking a lot of computation time and the system hangs for a while. This is wierd to me, as a couple of days earlier everything worked fine and it could solve the problem in milli seconds.
Could anyone of you please help me with a faster approach to convert the python list to matlab double?
I am using Matlab 2019b.
Thank you in advance.
Cheers,
Sai Krishna Hello All,
I would like to convert the python list type to matlab double.
I have tried the following,
First approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = cell(out(1:end-1));
out = cellfun(@double,out); %outputs type double
Second approach
out = func.getValues() %python function gives a list of [1,2,…n]
out = func.convlisttoarray(out) %python function imports numpy and converts list to array using numpy.array()
out_double = double(out); % outputs type double
Although the length of the list is 1×150, in both the approaches, Matlab is taking a lot of computation time and the system hangs for a while. This is wierd to me, as a couple of days earlier everything worked fine and it could solve the problem in milli seconds.
Could anyone of you please help me with a faster approach to convert the python list to matlab double?
I am using Matlab 2019b.
Thank you in advance.
Cheers,
Sai Krishna python list, double, python matlab, pathon list to double, convert python list MATLAB Answers — New Questions
How can I tune 3 axis of spacecraft with 3 axis PID control for attitude determination (ADCS)?
Hello,
I would like to implement the attitude control with GNC (3 axis euler angles instead of quaternion to be simple) with 3 PID controllers since PID is SISO system. However, after putting the attitude dynamic, the 3 axis are interacted between each other, so it is impossible to tune the 3 axis quite well with auto tuning or manual tuning.
For example, if I change some P or I or D gain in x-axis, it affects the result of the y or z- axis, so it is impossible to tune 3 axis.
In this situation, can how can I control the 3 axis angular rate? should I use different control method such as LQR?
Thank you!Hello,
I would like to implement the attitude control with GNC (3 axis euler angles instead of quaternion to be simple) with 3 PID controllers since PID is SISO system. However, after putting the attitude dynamic, the 3 axis are interacted between each other, so it is impossible to tune the 3 axis quite well with auto tuning or manual tuning.
For example, if I change some P or I or D gain in x-axis, it affects the result of the y or z- axis, so it is impossible to tune 3 axis.
In this situation, can how can I control the 3 axis angular rate? should I use different control method such as LQR?
Thank you! Hello,
I would like to implement the attitude control with GNC (3 axis euler angles instead of quaternion to be simple) with 3 PID controllers since PID is SISO system. However, after putting the attitude dynamic, the 3 axis are interacted between each other, so it is impossible to tune the 3 axis quite well with auto tuning or manual tuning.
For example, if I change some P or I or D gain in x-axis, it affects the result of the y or z- axis, so it is impossible to tune 3 axis.
In this situation, can how can I control the 3 axis angular rate? should I use different control method such as LQR?
Thank you! pid, control, attitude, adcs, satellite MATLAB Answers — New Questions
Modifying the search path is not supported by Matlab Compiler?
Trying to create a Matlab app in R2023b. The deployed application should connect to a Moku:Go device (which is using its own Matlab toolbox) and take some measurements. The app is running smoothly when running from Matlab, but giving an error message when running from the deployed standalone app.
I have looked at the following topic: https://www.mathworks.com/matlabcentral/answers/1786755-modifying-the-search-path-is-not-supported-by-matlab-compiler?s_tid=sug_su
I have added the following line in my Matlab startup code and have made sure that all the required Moku files are embedded during the app deployment:
addpath(genpath(‘C:UsersusernameAppDataRoamingMathWorksMATLAB Add-OnsToolboxesmoku-MATLAB(2)’))
Please advise what can be done to have the deployed app running.Trying to create a Matlab app in R2023b. The deployed application should connect to a Moku:Go device (which is using its own Matlab toolbox) and take some measurements. The app is running smoothly when running from Matlab, but giving an error message when running from the deployed standalone app.
I have looked at the following topic: https://www.mathworks.com/matlabcentral/answers/1786755-modifying-the-search-path-is-not-supported-by-matlab-compiler?s_tid=sug_su
I have added the following line in my Matlab startup code and have made sure that all the required Moku files are embedded during the app deployment:
addpath(genpath(‘C:UsersusernameAppDataRoamingMathWorksMATLAB Add-OnsToolboxesmoku-MATLAB(2)’))
Please advise what can be done to have the deployed app running. Trying to create a Matlab app in R2023b. The deployed application should connect to a Moku:Go device (which is using its own Matlab toolbox) and take some measurements. The app is running smoothly when running from Matlab, but giving an error message when running from the deployed standalone app.
I have looked at the following topic: https://www.mathworks.com/matlabcentral/answers/1786755-modifying-the-search-path-is-not-supported-by-matlab-compiler?s_tid=sug_su
I have added the following line in my Matlab startup code and have made sure that all the required Moku files are embedded during the app deployment:
addpath(genpath(‘C:UsersusernameAppDataRoamingMathWorksMATLAB Add-OnsToolboxesmoku-MATLAB(2)’))
Please advise what can be done to have the deployed app running. appdesigner, moku, search path MATLAB Answers — New Questions
Add lines of text to CNC programming code
Hello, I am trying to generate a code in which after a tool change (depending on the tool) Matlab puts a new line of code with an M7 or M8, for example, within a bunch of text I have this:
N80T16M6
I want Matlab to create a new line with a M7 and M8 like this
N80T16M6
M7
M8
It varies depending on the number after the T (which is the number of the tool) for example T15 would just have M7. Is there a way of programming this? Adding the information of which tool needs what?
Besides this, I want to include in a certain point of the text the stock dimensions, for example (x10::y-5::z-0.1::) just as I wrote it with the parenthesis
and as extra information as I mentioned before this lines of code are within a bunch of lines but always starts with an N number, like this:
Thanks a lot in advance!Hello, I am trying to generate a code in which after a tool change (depending on the tool) Matlab puts a new line of code with an M7 or M8, for example, within a bunch of text I have this:
N80T16M6
I want Matlab to create a new line with a M7 and M8 like this
N80T16M6
M7
M8
It varies depending on the number after the T (which is the number of the tool) for example T15 would just have M7. Is there a way of programming this? Adding the information of which tool needs what?
Besides this, I want to include in a certain point of the text the stock dimensions, for example (x10::y-5::z-0.1::) just as I wrote it with the parenthesis
and as extra information as I mentioned before this lines of code are within a bunch of lines but always starts with an N number, like this:
Thanks a lot in advance! Hello, I am trying to generate a code in which after a tool change (depending on the tool) Matlab puts a new line of code with an M7 or M8, for example, within a bunch of text I have this:
N80T16M6
I want Matlab to create a new line with a M7 and M8 like this
N80T16M6
M7
M8
It varies depending on the number after the T (which is the number of the tool) for example T15 would just have M7. Is there a way of programming this? Adding the information of which tool needs what?
Besides this, I want to include in a certain point of the text the stock dimensions, for example (x10::y-5::z-0.1::) just as I wrote it with the parenthesis
and as extra information as I mentioned before this lines of code are within a bunch of lines but always starts with an N number, like this:
Thanks a lot in advance! cnc, edit code MATLAB Answers — New Questions
Issues with matlab-Fortran interface
Hi,
I’m having issues with some Fortran code we have that uses matlab’s DLLs to open a .mat file. We are using Matlab R2023b. Our Fortran code is built for 64 bit windows.
Our code calls matOpen passing a filename and permission. I’ve looked in our IDE debugger and both of these parameters are valid values. The result is set to a mwpointer variable, which is appropriately sized for 64 bit.
Our code calls into the matlab DLLs that we got from r2023b/bin/win64. The DLLs in turn call into C:/Windows/System32/vcruntime140.dll, which promptly crash on trying to access invalid memory locations. Our vcruntime140.dll version is 14.31.31103.0.
I noticed though that the matlab binary folder mentioned above also holds a vcruntime140.dll file, and it is at version 14.29.30135.0. Do the r2023b matlab-fortran interface DLLs require this specific version of vcruntime140.dll?Hi,
I’m having issues with some Fortran code we have that uses matlab’s DLLs to open a .mat file. We are using Matlab R2023b. Our Fortran code is built for 64 bit windows.
Our code calls matOpen passing a filename and permission. I’ve looked in our IDE debugger and both of these parameters are valid values. The result is set to a mwpointer variable, which is appropriately sized for 64 bit.
Our code calls into the matlab DLLs that we got from r2023b/bin/win64. The DLLs in turn call into C:/Windows/System32/vcruntime140.dll, which promptly crash on trying to access invalid memory locations. Our vcruntime140.dll version is 14.31.31103.0.
I noticed though that the matlab binary folder mentioned above also holds a vcruntime140.dll file, and it is at version 14.29.30135.0. Do the r2023b matlab-fortran interface DLLs require this specific version of vcruntime140.dll? Hi,
I’m having issues with some Fortran code we have that uses matlab’s DLLs to open a .mat file. We are using Matlab R2023b. Our Fortran code is built for 64 bit windows.
Our code calls matOpen passing a filename and permission. I’ve looked in our IDE debugger and both of these parameters are valid values. The result is set to a mwpointer variable, which is appropriately sized for 64 bit.
Our code calls into the matlab DLLs that we got from r2023b/bin/win64. The DLLs in turn call into C:/Windows/System32/vcruntime140.dll, which promptly crash on trying to access invalid memory locations. Our vcruntime140.dll version is 14.31.31103.0.
I noticed though that the matlab binary folder mentioned above also holds a vcruntime140.dll file, and it is at version 14.29.30135.0. Do the r2023b matlab-fortran interface DLLs require this specific version of vcruntime140.dll? fortran, r2023b MATLAB Answers — New Questions