Month: July 2024
Same Name but Not Recognized Variable
Hello everyone, I am having issues when calling upon variables. I have a bunch of variables in this code and when I try to call them or hover over them it doesn’t highlight the others as the same.
I have included some pictures of my issue as I’m not quite sure how to describe it. The first one below shows me attempting to call a function, and the variables in calling that function are shown. However, when I call the function, I get this error: (in red of course)
The problem I’ve noticed is when I highlight a variable within calling that function, in the photo below I’ve highlighted "CurrThrottleData", it isn’t highlighted everywhere else. A few places, but not in the function definition below.
Same issue is shown below with "fileName"
My next thought was maybe the function name is having issues or it’s because I have the code separated into sections, but the function name lights up just fine in a different section. It previously worked when the function was called from a separate matlab file but it is really important that the function definitions and the code runs in one parent file for it all.
Any advice and help is appreciate, I have tried the following:
-Control f and replace everything with the same name but different capitalization to make sure it’d change it everywhere, this had no effect.
-Changing the name entirely to something different and manuall copy and pasting the name
-Copying the code in segments and running it in a new file
-Closing and opening matlab incase it needed a brain break… i guess hahaHello everyone, I am having issues when calling upon variables. I have a bunch of variables in this code and when I try to call them or hover over them it doesn’t highlight the others as the same.
I have included some pictures of my issue as I’m not quite sure how to describe it. The first one below shows me attempting to call a function, and the variables in calling that function are shown. However, when I call the function, I get this error: (in red of course)
The problem I’ve noticed is when I highlight a variable within calling that function, in the photo below I’ve highlighted "CurrThrottleData", it isn’t highlighted everywhere else. A few places, but not in the function definition below.
Same issue is shown below with "fileName"
My next thought was maybe the function name is having issues or it’s because I have the code separated into sections, but the function name lights up just fine in a different section. It previously worked when the function was called from a separate matlab file but it is really important that the function definitions and the code runs in one parent file for it all.
Any advice and help is appreciate, I have tried the following:
-Control f and replace everything with the same name but different capitalization to make sure it’d change it everywhere, this had no effect.
-Changing the name entirely to something different and manuall copy and pasting the name
-Copying the code in segments and running it in a new file
-Closing and opening matlab incase it needed a brain break… i guess haha Hello everyone, I am having issues when calling upon variables. I have a bunch of variables in this code and when I try to call them or hover over them it doesn’t highlight the others as the same.
I have included some pictures of my issue as I’m not quite sure how to describe it. The first one below shows me attempting to call a function, and the variables in calling that function are shown. However, when I call the function, I get this error: (in red of course)
The problem I’ve noticed is when I highlight a variable within calling that function, in the photo below I’ve highlighted "CurrThrottleData", it isn’t highlighted everywhere else. A few places, but not in the function definition below.
Same issue is shown below with "fileName"
My next thought was maybe the function name is having issues or it’s because I have the code separated into sections, but the function name lights up just fine in a different section. It previously worked when the function was called from a separate matlab file but it is really important that the function definitions and the code runs in one parent file for it all.
Any advice and help is appreciate, I have tried the following:
-Control f and replace everything with the same name but different capitalization to make sure it’d change it everywhere, this had no effect.
-Changing the name entirely to something different and manuall copy and pasting the name
-Copying the code in segments and running it in a new file
-Closing and opening matlab incase it needed a brain break… i guess haha codeprocessing, matlab, variable-errors, data, function, functions, matlab function, embedded matlab function MATLAB Answers — New Questions
Entra ID Connect Download Issue
Good afternoon,
I’ve been trying all day to download the latest version of Entra ID Connect and it seems the download link is failing due to a server error. I’ve tried on different machines on different networks with the same result. Is anyone else seeing this or know the best way to open a ticket to let them know? Or is there another Microsoft mirror I could use?
Sends you to the redirect URL of:
https://go.microsoft.com/fwlink/?LinkId=615771
Which ultimately just sends you to the last URL I’ll post below.
This one, however:
https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-version-history#looking-for-the-latest-versions
Sends you directly to the actual download link of:
https://www.microsoft.com/en-us/download/details.aspx?id=47594
Which results in a server error.
Any help is greatly appreciated. Thank you so much.
Good afternoon, I’ve been trying all day to download the latest version of Entra ID Connect and it seems the download link is failing due to a server error. I’ve tried on different machines on different networks with the same result. Is anyone else seeing this or know the best way to open a ticket to let them know? Or is there another Microsoft mirror I could use? This link:https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-install-roadmap#install-microsoft-entra-connectSends you to the redirect URL of:https://go.microsoft.com/fwlink/?LinkId=615771Which ultimately just sends you to the last URL I’ll post below.This one, however:https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-version-history#looking-for-the-latest-versionsSends you directly to the actual download link of:https://www.microsoft.com/en-us/download/details.aspx?id=47594Which results in a server error. Any help is greatly appreciated. Thank you so much. Read More
Subforms in Tabs: Can They Be Dragged-and-Dropped In, or Cut-and-Pasted?
Hello, I have a question or two about using tab controls and subforms. I am using Access 2021, and am a novice at database design.
I am designing a movie collection database, and I currently have three subforms. I’d like to have them in tabs, rather than all on one form.
My question: Is it possible to drag and drop the subforms into the tabs, or cut-and-paste them? Or do I have to build the subforms over again, from scratch?
Which method of placing subforms in the tabs do you prefer? Thank you!
Hello, I have a question or two about using tab controls and subforms. I am using Access 2021, and am a novice at database design. I am designing a movie collection database, and I currently have three subforms. I’d like to have them in tabs, rather than all on one form. My question: Is it possible to drag and drop the subforms into the tabs, or cut-and-paste them? Or do I have to build the subforms over again, from scratch? Which method of placing subforms in the tabs do you prefer? Thank you! Read More
Stacked Bar Chart as Office Timeline
I am using Microsoft 365, but I do not have access to Power BI.
I am trying to create a stacked bar chart as a replacement for our firm’s Office Timeline, which currently exists on our outdated, slowly dying intranet site. What I’m looking for is something similar to this:
Projects will be on the Y axis, with a perpetual calendar on the X axis – the color changes represent the end of each project phase, and the black boxes represent milestone dates within the phase.
I have brought in the data, added a perpetual calendar and formatted the dates as numbers. I established a ‘base date’, but I’m not sure that I need it. The resulting stacked bar chart is not even close to what I’m trying to do, and I think the reason is that I need to incorporate a formula to match the ending phase dates to the perpetual calendar (see the data example below).
Do any of you know of a tutorial I could study or a general method to do what I’m trying to accomplish? I have looked at dozens of articles and YouTube videos and I can’t find anything that addresses this.
Thanks,
Traci
I am using Microsoft 365, but I do not have access to Power BI.I am trying to create a stacked bar chart as a replacement for our firm’s Office Timeline, which currently exists on our outdated, slowly dying intranet site. What I’m looking for is something similar to this:Projects will be on the Y axis, with a perpetual calendar on the X axis – the color changes represent the end of each project phase, and the black boxes represent milestone dates within the phase. I have brought in the data, added a perpetual calendar and formatted the dates as numbers. I established a ‘base date’, but I’m not sure that I need it. The resulting stacked bar chart is not even close to what I’m trying to do, and I think the reason is that I need to incorporate a formula to match the ending phase dates to the perpetual calendar (see the data example below). Do any of you know of a tutorial I could study or a general method to do what I’m trying to accomplish? I have looked at dozens of articles and YouTube videos and I can’t find anything that addresses this. Thanks,Traci Read More
Search in Outlook 16.8 does not work on Mac Book Air Ventura 13.2.1
Hi there,
bought the a new mac and the search in Outlook does not work, is not existing. I work in Outlook 16.86 on Mac Book Air Ventura 13.2.1
I de-installed MS and re-installed = followed all steps from MS. Emptied the trash and shut my mac. Re- started it and started again with re-installing. I bought the MS package and thought, I am good. But I am not.
On my old Mac 15.8, all is working in Outlook.
Can you pls advise…. I tried to download the older version of Outlook, but failed here, too.
Thanks, Sabine
Hi there, bought the a new mac and the search in Outlook does not work, is not existing. I work in Outlook 16.86 on Mac Book Air Ventura 13.2.1I de-installed MS and re-installed = followed all steps from MS. Emptied the trash and shut my mac. Re- started it and started again with re-installing. I bought the MS package and thought, I am good. But I am not.On my old Mac 15.8, all is working in Outlook. Can you pls advise…. I tried to download the older version of Outlook, but failed here, too. Thanks, Sabine Read More
Want breaks in line graph
I’m trying to follow this to see gaps in my line graph, but the gaps option is grayed out. What to do?
Display empty cells, null (#N/A) values, and hidden worksheet data in a chart – Microsoft Support
Note: This is fake data, just testing out the line graph formatting.
I’m trying to follow this to see gaps in my line graph, but the gaps option is grayed out. What to do? Display empty cells, null (#N/A) values, and hidden worksheet data in a chart – Microsoft Support Note: This is fake data, just testing out the line graph formatting. Read More
Export all Tenant Team Chats
I have read several postings here and on other sites but its still not clear if it is possible or how to do get a list of all team chats.
Our CEO is asking and not providing much information to why or what the purpose is, what they are looking for. Not sure if they are looking for the group chat titles, I assume 1to1 chats are not required as there could be hundreds/thousands of these.
Some of the reading suggests there may be a way to see;
all the chats a specific person belongs to.eDiscovery might be able to be used but seems to imply this is more about reconstruction of a chat rather than just a simple list. But this would require a Premium license and I am not sure it actually gives a list.
It also not clear how external “Chats” from a meeting would play in to this, it seems a bit more complicated than what our CEO understands.
Can anyone confirm if we can pull a list of Team chat?
I have read several postings here and on other sites but its still not clear if it is possible or how to do get a list of all team chats.Our CEO is asking and not providing much information to why or what the purpose is, what they are looking for. Not sure if they are looking for the group chat titles, I assume 1to1 chats are not required as there could be hundreds/thousands of these. Some of the reading suggests there may be a way to see;all the chats a specific person belongs to.eDiscovery might be able to be used but seems to imply this is more about reconstruction of a chat rather than just a simple list. But this would require a Premium license and I am not sure it actually gives a list.It also not clear how external “Chats” from a meeting would play in to this, it seems a bit more complicated than what our CEO understands. Can anyone confirm if we can pull a list of Team chat? Read More
I encountered error though the input data to INS block is exactly 3-column
I’m using the uavPackageDelivery example in UAV toolbox and making small modification in this module.(in "fly full mission mode")
i want to integrate an INS sensor into it,and i’m passing necessary parameters in this sensor.
but once the simulation starts,error message is shown below.
I’m passing exactly 3-column array into it,but still received error above.
Am i right to use INS here?if wrong,where else should i use the INS block?
thxI’m using the uavPackageDelivery example in UAV toolbox and making small modification in this module.(in "fly full mission mode")
i want to integrate an INS sensor into it,and i’m passing necessary parameters in this sensor.
but once the simulation starts,error message is shown below.
I’m passing exactly 3-column array into it,but still received error above.
Am i right to use INS here?if wrong,where else should i use the INS block?
thx I’m using the uavPackageDelivery example in UAV toolbox and making small modification in this module.(in "fly full mission mode")
i want to integrate an INS sensor into it,and i’m passing necessary parameters in this sensor.
but once the simulation starts,error message is shown below.
I’m passing exactly 3-column array into it,but still received error above.
Am i right to use INS here?if wrong,where else should i use the INS block?
thx simulink, simulation, sensor, uav toolbox, ins MATLAB Answers — New Questions
Iterate over struct with length>1, with multiple fields
I have a struct with size>1, and multiple 16 fields.
Each fieldname corresponds to some quantity or property, and the struct stores these properties for 47 different items.
I’m trying to iterate the whole dataset. Preferrably, I’d like to iterate by fieldname and retrieve an array for each filename because within each field name the variable type is uniform.
To illustrate:
K>> teststruct = struct(‘name’, [‘Alice’, ‘Bob’, ‘Eve’], ‘age’, {24, 45, 35})
teststruct =
1×3 struct array with fields:
name
age
This shows up nicely as a table in the worspace browser.
However, if I iterate by fieldname, this goes wrong (spurious empty lines removed for readability):
K>> fnames = fieldnames(teststruct);
K>> teststruct.(fnames{1})
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
What I wanted was an array of all the names, instead I get three answers, of compounded names.
If I do the same with the ‘age’ field, at least each answer contains only one age, but they’re still not in any kind of structure I could use in a code which does not know the size or field names of a struct it needs to deal with. In fact, if I assign the above to a variable, this happens:
K>> names = teststruct.(fnames{1})
names =
‘AliceBobEve’
Doing the same with the other field only gives me the first age. One correct piece of data at least, but still not at all what I wanted…
I tried applying the code I found here, which promises to print the contents of an entire struct, but the same happens: I only get the first value of everything.
I know that I could loop over the struct indices first, and access them like this:
value = testsruct(i).(fieldnames(j))
…but then I’d be getting them separately, one by one, instead of getting back the cell array (or any other kind of array) that was used to define the struct in the first place, which is way easier to deal with.
Is that possible somehow?I have a struct with size>1, and multiple 16 fields.
Each fieldname corresponds to some quantity or property, and the struct stores these properties for 47 different items.
I’m trying to iterate the whole dataset. Preferrably, I’d like to iterate by fieldname and retrieve an array for each filename because within each field name the variable type is uniform.
To illustrate:
K>> teststruct = struct(‘name’, [‘Alice’, ‘Bob’, ‘Eve’], ‘age’, {24, 45, 35})
teststruct =
1×3 struct array with fields:
name
age
This shows up nicely as a table in the worspace browser.
However, if I iterate by fieldname, this goes wrong (spurious empty lines removed for readability):
K>> fnames = fieldnames(teststruct);
K>> teststruct.(fnames{1})
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
What I wanted was an array of all the names, instead I get three answers, of compounded names.
If I do the same with the ‘age’ field, at least each answer contains only one age, but they’re still not in any kind of structure I could use in a code which does not know the size or field names of a struct it needs to deal with. In fact, if I assign the above to a variable, this happens:
K>> names = teststruct.(fnames{1})
names =
‘AliceBobEve’
Doing the same with the other field only gives me the first age. One correct piece of data at least, but still not at all what I wanted…
I tried applying the code I found here, which promises to print the contents of an entire struct, but the same happens: I only get the first value of everything.
I know that I could loop over the struct indices first, and access them like this:
value = testsruct(i).(fieldnames(j))
…but then I’d be getting them separately, one by one, instead of getting back the cell array (or any other kind of array) that was used to define the struct in the first place, which is way easier to deal with.
Is that possible somehow? I have a struct with size>1, and multiple 16 fields.
Each fieldname corresponds to some quantity or property, and the struct stores these properties for 47 different items.
I’m trying to iterate the whole dataset. Preferrably, I’d like to iterate by fieldname and retrieve an array for each filename because within each field name the variable type is uniform.
To illustrate:
K>> teststruct = struct(‘name’, [‘Alice’, ‘Bob’, ‘Eve’], ‘age’, {24, 45, 35})
teststruct =
1×3 struct array with fields:
name
age
This shows up nicely as a table in the worspace browser.
However, if I iterate by fieldname, this goes wrong (spurious empty lines removed for readability):
K>> fnames = fieldnames(teststruct);
K>> teststruct.(fnames{1})
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
ans =
‘AliceBobEve’
What I wanted was an array of all the names, instead I get three answers, of compounded names.
If I do the same with the ‘age’ field, at least each answer contains only one age, but they’re still not in any kind of structure I could use in a code which does not know the size or field names of a struct it needs to deal with. In fact, if I assign the above to a variable, this happens:
K>> names = teststruct.(fnames{1})
names =
‘AliceBobEve’
Doing the same with the other field only gives me the first age. One correct piece of data at least, but still not at all what I wanted…
I tried applying the code I found here, which promises to print the contents of an entire struct, but the same happens: I only get the first value of everything.
I know that I could loop over the struct indices first, and access them like this:
value = testsruct(i).(fieldnames(j))
…but then I’d be getting them separately, one by one, instead of getting back the cell array (or any other kind of array) that was used to define the struct in the first place, which is way easier to deal with.
Is that possible somehow? struct, indexing MATLAB Answers — New Questions
simplify and reorganize symbolic expression
Hello everyone,
I am trying to simplify a symbolic expression (which is the result of the script below) but i am having trouble as it is pretty big and there are many parameters. My objective is to reorganize the expression "B" as powers of variables "c1" and "c2" with all the other parameters included in the coefficents of the polynomial expression (they are gonna be substitued by values in other calculations). I have tried with "simplify" and triyng to nest "collect" into one another.
Does anybody have any tips on how to make the process more efficient? Are there any functions, which I am not aware of right now, that can simplify polynomial expression with regards to the coefficients that multiply the different powers? how about with multivariable expressioon as is my case?
also, is there a way to make math expressions with powers, parentesis, fractions, etc. more readable in the command window? now i have the standard formatting setting of matlab which makes long expressions pretty hard to read
Thank you very much
clear; clc;
syms m J a1 a2
syms k1 k2 k_a12 k_a21
syms c1 c2 c_a12 c_a21
syms lambda
% matrices definitions
M = [m 0;
0 J];
K = [k1 + k2 + (k_a12+k_a21) k1*a1 – k2*a2 + (k_a21*a1 – k_a12*a2);
k1*a1 – k2*a2 + (k_a12*a1-k_a21*a2) k1*a1^2 + k2*a2^2 – (k_a12+k_a21)*a1*a2];
C = [c1 + c2 + (c_a12+c_a21) c1*a1 – c2*a2 + (c_a21*a1 – c_a12*a2);
c1*a1 – c2*a2 + (c_a12*a1-c_a21*a2) c1*a1^2 + c2*a2^2 – (c_a12+c_a21)*a1*a2];
det_M = det(M);
det_K = simplify(collect(collect(collect(collect(det(K), 2*a1), a2), a1^2), a2^2));
det_C = simplify(collect(collect(collect(collect(det(C), 2*a1), a2), a1^2), a2^2));
Mat = (lambda^2)*M + lambda*C + K;
determinant = collect(det(Mat), lambda);
coeff = coeffs(determinant, lambda);
b0 = simplify(collect(collect(collect(collect(coeff(1), k_a12), k_a21), k2), k1))
b1 = simplify(collect(collect(collect(collect(coeff(2), 2*a1), a2), a1^2), a2^2))
b2 = simplify(collect(collect(collect(collect(collect(collect(coeff(3), m), J), c1), c2), c_a12), c_a21))
b3 = simplify(collect(collect(collect(collect(collect(collect(coeff(4), a1^2), a2^2), a1), a2), m), J))
B = b1*b2*b3 – b1^2 – b0*b3^2;
B = expand(B);
B = simplify(collect(B, c1))
this is B that i get:
(a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)*(m*(a1^2*k1 + a2^2*k2 – a1*a2*k_a12 – a1*a2*k_a21) + J*(k1 + k2 + k_a12 + k_a21) + c1*c2*(a1 + a2)^2 – c_a12*c_a21*(a1 + a2)^2) – (a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))^2*(k1*k2 – k_a12*k_a21) – (a1 + a2)^4*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)^2Hello everyone,
I am trying to simplify a symbolic expression (which is the result of the script below) but i am having trouble as it is pretty big and there are many parameters. My objective is to reorganize the expression "B" as powers of variables "c1" and "c2" with all the other parameters included in the coefficents of the polynomial expression (they are gonna be substitued by values in other calculations). I have tried with "simplify" and triyng to nest "collect" into one another.
Does anybody have any tips on how to make the process more efficient? Are there any functions, which I am not aware of right now, that can simplify polynomial expression with regards to the coefficients that multiply the different powers? how about with multivariable expressioon as is my case?
also, is there a way to make math expressions with powers, parentesis, fractions, etc. more readable in the command window? now i have the standard formatting setting of matlab which makes long expressions pretty hard to read
Thank you very much
clear; clc;
syms m J a1 a2
syms k1 k2 k_a12 k_a21
syms c1 c2 c_a12 c_a21
syms lambda
% matrices definitions
M = [m 0;
0 J];
K = [k1 + k2 + (k_a12+k_a21) k1*a1 – k2*a2 + (k_a21*a1 – k_a12*a2);
k1*a1 – k2*a2 + (k_a12*a1-k_a21*a2) k1*a1^2 + k2*a2^2 – (k_a12+k_a21)*a1*a2];
C = [c1 + c2 + (c_a12+c_a21) c1*a1 – c2*a2 + (c_a21*a1 – c_a12*a2);
c1*a1 – c2*a2 + (c_a12*a1-c_a21*a2) c1*a1^2 + c2*a2^2 – (c_a12+c_a21)*a1*a2];
det_M = det(M);
det_K = simplify(collect(collect(collect(collect(det(K), 2*a1), a2), a1^2), a2^2));
det_C = simplify(collect(collect(collect(collect(det(C), 2*a1), a2), a1^2), a2^2));
Mat = (lambda^2)*M + lambda*C + K;
determinant = collect(det(Mat), lambda);
coeff = coeffs(determinant, lambda);
b0 = simplify(collect(collect(collect(collect(coeff(1), k_a12), k_a21), k2), k1))
b1 = simplify(collect(collect(collect(collect(coeff(2), 2*a1), a2), a1^2), a2^2))
b2 = simplify(collect(collect(collect(collect(collect(collect(coeff(3), m), J), c1), c2), c_a12), c_a21))
b3 = simplify(collect(collect(collect(collect(collect(collect(coeff(4), a1^2), a2^2), a1), a2), m), J))
B = b1*b2*b3 – b1^2 – b0*b3^2;
B = expand(B);
B = simplify(collect(B, c1))
this is B that i get:
(a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)*(m*(a1^2*k1 + a2^2*k2 – a1*a2*k_a12 – a1*a2*k_a21) + J*(k1 + k2 + k_a12 + k_a21) + c1*c2*(a1 + a2)^2 – c_a12*c_a21*(a1 + a2)^2) – (a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))^2*(k1*k2 – k_a12*k_a21) – (a1 + a2)^4*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)^2 Hello everyone,
I am trying to simplify a symbolic expression (which is the result of the script below) but i am having trouble as it is pretty big and there are many parameters. My objective is to reorganize the expression "B" as powers of variables "c1" and "c2" with all the other parameters included in the coefficents of the polynomial expression (they are gonna be substitued by values in other calculations). I have tried with "simplify" and triyng to nest "collect" into one another.
Does anybody have any tips on how to make the process more efficient? Are there any functions, which I am not aware of right now, that can simplify polynomial expression with regards to the coefficients that multiply the different powers? how about with multivariable expressioon as is my case?
also, is there a way to make math expressions with powers, parentesis, fractions, etc. more readable in the command window? now i have the standard formatting setting of matlab which makes long expressions pretty hard to read
Thank you very much
clear; clc;
syms m J a1 a2
syms k1 k2 k_a12 k_a21
syms c1 c2 c_a12 c_a21
syms lambda
% matrices definitions
M = [m 0;
0 J];
K = [k1 + k2 + (k_a12+k_a21) k1*a1 – k2*a2 + (k_a21*a1 – k_a12*a2);
k1*a1 – k2*a2 + (k_a12*a1-k_a21*a2) k1*a1^2 + k2*a2^2 – (k_a12+k_a21)*a1*a2];
C = [c1 + c2 + (c_a12+c_a21) c1*a1 – c2*a2 + (c_a21*a1 – c_a12*a2);
c1*a1 – c2*a2 + (c_a12*a1-c_a21*a2) c1*a1^2 + c2*a2^2 – (c_a12+c_a21)*a1*a2];
det_M = det(M);
det_K = simplify(collect(collect(collect(collect(det(K), 2*a1), a2), a1^2), a2^2));
det_C = simplify(collect(collect(collect(collect(det(C), 2*a1), a2), a1^2), a2^2));
Mat = (lambda^2)*M + lambda*C + K;
determinant = collect(det(Mat), lambda);
coeff = coeffs(determinant, lambda);
b0 = simplify(collect(collect(collect(collect(coeff(1), k_a12), k_a21), k2), k1))
b1 = simplify(collect(collect(collect(collect(coeff(2), 2*a1), a2), a1^2), a2^2))
b2 = simplify(collect(collect(collect(collect(collect(collect(coeff(3), m), J), c1), c2), c_a12), c_a21))
b3 = simplify(collect(collect(collect(collect(collect(collect(coeff(4), a1^2), a2^2), a1), a2), m), J))
B = b1*b2*b3 – b1^2 – b0*b3^2;
B = expand(B);
B = simplify(collect(B, c1))
this is B that i get:
(a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)*(m*(a1^2*k1 + a2^2*k2 – a1*a2*k_a12 – a1*a2*k_a21) + J*(k1 + k2 + k_a12 + k_a21) + c1*c2*(a1 + a2)^2 – c_a12*c_a21*(a1 + a2)^2) – (a1 + a2)^2*(m*(c1*a1^2 + (- c_a12 – c_a21)*a1*a2 + c2*a2^2) + J*(c1 + c2 + c_a12 + c_a21))^2*(k1*k2 – k_a12*k_a21) – (a1 + a2)^4*(c1*k2 + c2*k1 – c_a12*k_a21 – c_a21*k_a12)^2 symbolic math, simplify, coefficients, multivariable expression, polynomial, collect, factor MATLAB Answers — New Questions
Help solving linear ordinary differential equation that involves matrix
I need to find the general solution to a linear ordinary differential equation that involves a matrix. The problem is in the form x'(t) = [ matrix] x(t). When I try to solve, it gives me a solution for x and y but neither one is correct. It needs to be in the form c1(e^t)[matrix] + c2(e^t)[matrix]. thank you.I need to find the general solution to a linear ordinary differential equation that involves a matrix. The problem is in the form x'(t) = [ matrix] x(t). When I try to solve, it gives me a solution for x and y but neither one is correct. It needs to be in the form c1(e^t)[matrix] + c2(e^t)[matrix]. thank you. I need to find the general solution to a linear ordinary differential equation that involves a matrix. The problem is in the form x'(t) = [ matrix] x(t). When I try to solve, it gives me a solution for x and y but neither one is correct. It needs to be in the form c1(e^t)[matrix] + c2(e^t)[matrix]. thank you. dsolve, ode MATLAB Answers — New Questions
Tell us about yourself! What do you want to see in the community?
We want to know more about you, to make sure we are providing the right content and bringing in experts that you are looking for. Tell us a bit more about you and what is important. Post in the comments or fill out a short survey for what you would like to see more of in this community!
We want to know more about you, to make sure we are providing the right content and bringing in experts that you are looking for. Tell us a bit more about you and what is important. Post in the comments or fill out a short survey for what you would like to see more of in this community!
Read More
Creating a sharepoint list programatically
Hi,
I have an excel file with 100~ columns which was exported from another SharePoint list (that I don’t have access to). I would like to create a list on my SharePoint site from this file but the simple ‘create list from xlsx’ doesn’t allow me to use many of the column types that I need (lookup, choice etc.).
Initially I tried using the PowerShell connector for SharePoint but my org doesn’t have permissions enabled for it. So I would I like to explore alternative solutions.
The one I have in mind is to acquire an .stp template from somewhere (my org has also disabled built-in templates so I cant seem to download a copy) and modify its JSON definition to add columns with python. Another option is to modify the xml of a list and add the columns that way.
Any help would be appreciated.
Hi, I have an excel file with 100~ columns which was exported from another SharePoint list (that I don’t have access to). I would like to create a list on my SharePoint site from this file but the simple ‘create list from xlsx’ doesn’t allow me to use many of the column types that I need (lookup, choice etc.). Initially I tried using the PowerShell connector for SharePoint but my org doesn’t have permissions enabled for it. So I would I like to explore alternative solutions. The one I have in mind is to acquire an .stp template from somewhere (my org has also disabled built-in templates so I cant seem to download a copy) and modify its JSON definition to add columns with python. Another option is to modify the xml of a list and add the columns that way. Any help would be appreciated. Read More
Introducing the podcast – No Slides Attached: AI Stories with Microsoft Partners
On July 10, we launched an exciting new podcast series crafted for Microsoft partners who are eager to gain insights, learnings, and inspiration from industry leaders and peers. Click here to learn more!
Why tune in?
No Slides Attached features meaningful conversations that combine the expertise of Microsoft leaders and inspiring stories from our partners.
Explore the latest technologies. Season 1 is all about Microsoft Copilot—your everyday AI companion.
Listen to success stories directly from other Microsoft partners.
Join the conversation through our LinkedIn Community.
Take a break
Need a breather from all the emails, meetings, and presentations? Our hosts, Helane Cohen and Fede Pacheco, will look to connect with you on the go.
Subscribe today to listen wherever you get your favorite podcasts:
YouTube* | Spotify | Apple Podcasts | Amazon Music | RSS
*With closed captions in Spanish, Portuguese, and French.
On July 10, we launched an exciting new podcast series crafted for Microsoft partners who are eager to gain insights, learnings, and inspiration from industry leaders and peers. Click here to learn more!
Why tune in?
No Slides Attached features meaningful conversations that combine the expertise of Microsoft leaders and inspiring stories from our partners.
Explore the latest technologies. Season 1 is all about Microsoft Copilot—your everyday AI companion.
Listen to success stories directly from other Microsoft partners.
Join the conversation through our LinkedIn Community.
Take a break
Need a breather from all the emails, meetings, and presentations? Our hosts, Helane Cohen and Fede Pacheco, will look to connect with you on the go.
Subscribe today to listen wherever you get your favorite podcasts:
YouTube* | Spotify | Apple Podcasts | Amazon Music | RSS
*With closed captions in Spanish, Portuguese, and French. Read More
Using GitHub Copilot for Microsoft 365 PowerShell Development
GitHub Copilot costs $10/month. At that price level, anyone working with PowerShell should try out the AI assistance to see if it helps. But will GitHub Copilot work well with Microsoft 365 PowerShell modules like Exchange Online and the Microsoft Graph PowerShell SDK. That’s what we tested and report on here.
https://practical365.com/github-copilot-powershell/
GitHub Copilot costs $10/month. At that price level, anyone working with PowerShell should try out the AI assistance to see if it helps. But will GitHub Copilot work well with Microsoft 365 PowerShell modules like Exchange Online and the Microsoft Graph PowerShell SDK. That’s what we tested and report on here.
https://practical365.com/github-copilot-powershell/ Read More
Creating a Data Package Tier List
Hi, I’m trying to build a model in Excel that displays different data sets. The data sets in Column A (1,2,3 etc.) each have different levels (A,B,C etc.). If I were to choose 1E I would obtain all the other levels (ABCD).
I want to find a way that if the user selects 1A, 4D & 3F it would automatically calculate cost of the highest tier selected for each data set (1,2,3) and also list which ones they did.
Happy to insert columns to the left of each price tag and the user can simply place an X in the cell to identify which data set they are choosing. If I can do this with checkboxes it would be great.
Picture below, apologies for the poor quality.
Hi, I’m trying to build a model in Excel that displays different data sets. The data sets in Column A (1,2,3 etc.) each have different levels (A,B,C etc.). If I were to choose 1E I would obtain all the other levels (ABCD).I want to find a way that if the user selects 1A, 4D & 3F it would automatically calculate cost of the highest tier selected for each data set (1,2,3) and also list which ones they did. Happy to insert columns to the left of each price tag and the user can simply place an X in the cell to identify which data set they are choosing. If I can do this with checkboxes it would be great. Picture below, apologies for the poor quality. Read More
How to stop outlook from archiving with backspace button
Why is Outlook archiving my emails when I hit the backspace button while using the editor functions? How do I turn off that setting? I’m wasting too much time. Switching back to the older outlook.
Why is Outlook archiving my emails when I hit the backspace button while using the editor functions? How do I turn off that setting? I’m wasting too much time. Switching back to the older outlook. Read More
Outlook 2019 Pro will not start
My system rebooted and when it came back up, Outlook won’t start.
I’ve tried starting it in safe mode as well. No change.
The last time it did this it said my license key was already used (DUH!) and I had to contact support…which is a colossal pain in the butt.
Any other methods to get this software back up and running?
System is WIN11 all the latest updates…
My system rebooted and when it came back up, Outlook won’t start.I’ve tried starting it in safe mode as well. No change.The last time it did this it said my license key was already used (DUH!) and I had to contact support…which is a colossal pain in the butt.Any other methods to get this software back up and running?System is WIN11 all the latest updates… Read More
Migrating SLURM Job Accounting from Azure Database for MariaDB to MySQL Flexible Server
Overview
Azure CycleCloud (CC) is an enterprise-friendly tool for orchestrating and managing High-Performance Computing (HPC) environments on Azure. With CycleCloud, users can provision infrastructure for HPC systems, deploy familiar HPC schedulers, deploy/mount filesystems and automatically scale the infrastructure to run jobs efficiently at any scale. Azure CycleCloud is targeted at HPC administrators and users who want to deploy an HPC environment with a specific scheduler in mind.
One of the supported schedulers is SLURM, which stands for Simple Linux Utility for Resource Management. SLURM is an open source, scalable and fault-tolerant cluster management and job scheduling system for Linux clusters of any size. SLURM can allocate resources to users for a duration of time, manage workloads, provide accounting and monitoring, and support parallel and distributed computing applications.
SLURM job accounting is a feature that allows users to collect and report various metrics about the jobs that run on the cluster. SLURM job accounting can help users optimize their resource utilization, monitor their quotas, and track their costs. To enable job accounting, you need to configure and run a SLURM database daemon (slurmdbd) that can store the job information in a database.
One of the common choices for the database backend for SLURM job accounting is Azure Database for MariaDB. However, Azure Database for MariaDB will be retired on September 19, 2025, and users are encouraged to migrate their data and applications to Azure Database for MySQL Flexible Server.
In this blog, we will walk you through the steps to migrate your SLURM job accounting data from Azure Database for MariaDB to Azure Database for MySQL Flexible Server in Azure CycleCloud.
Requirements/Versions
CycleCloud Server (CC version used is 8.6.2)
Slurm Cluster
CycleCloud project used is 3.0.5
Slurm version used is 23.02.6-1
A source instance of Azure Database for MariaDB
A target instance of Azure Database for MySQL Flexible Server
A Linux VM with access to both the MariaDB and MySQL instances
We used the CycleCloud VM
Running on Alma Linux 8.7
Migration Procedure
Install required packages
Back up your SLURM Accounting DB in Azure Database for MariaDB
Restore the backup to your Azure Database for MySQL Flexible Server
Create SLURM user in Azure Database for MySQL and grant privileges
Update your CycleCloud cluster configuration for SLURM Job Accounting
To perform the migration, you will need a VM that can connect to both the source and target databases. In this blog post, we will use the CycleCloud VM as an example, but you can use any VM that meets this requirement.
Step 1: Install required packages
MySQL Shell (mysqlsh) is an advanced command-line client for MySQL that supports various modes of operation, such as SQL, JavaScript, and Python, and enables interactive and batch execution of queries and scripts. This utility will be used to perform the transfer of the SLURM job accounting DB from MariaDB to MySQL, and requires the installation of the following additional packages:
mysql
mysql-shell
To install the required packages, you will need to run the following commands on the migration VM:
sudo yum install -y msql
wget https://dev.mysql.com/get/mysql84-community-release-el8-1.noarch.rpm /tmp
sudo yum localinstall /tmp/mysql84-community-release-el8-1.noarch.rpm
sudo yum install -y mysql-shell
Step 2: Back up your SLURM Accounting DB in Azure Database for MariaDB
At this point, it is recommended for your SLURM cluster to be terminated to ensure that the accounting DB is no longer being updated.
Connect to MariaDB and check the size of the SLURM accounting DB:
mariadbname=jmslurmmariadbeus #update with your specific db name
mariadbusername=themorey #update with your specific db user name
mysqlsh –uri ${mariadbusername}%40${mariadbname}@${mariadbname}.mariadb.database.azure.com:3306
OPTIONAL – to check the size of the DB:
SELECT table_schema AS “Database”,
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS “Size (MB)”
FROM information_schema.TABLES
GROUP BY table_schema;
Sample Output:
Check free space on VM to determine where backup can be stored:
df -h
The output of the df -h command shows that we have enough space for us to dump our backup on our local disk:
Create a directory for your MariaDB backup. Note, the target directory for the backup must be empty:
sudo mkdir -p /backup/mysql/mariadb_backup/
sudo chown -R $(whoami) /backup
Log back in to MariaDB using mysqlsh:
mariadbname=jmslurmmariadbeus #update with your specific db name
mariadbusername=themorey #update with your specific db user name
mysqlsh –uri ${mariadbusername}%40${mariadbname}@${mariadbname}.mariadb.database.azure.com:3306
Switch to Javascript mode on the mysql shell:
js
Run the dumpUtil to take a full backup:
util.dumpInstance(“/backup/mysqlsh/mariadb_backup”,{threads: 16, showProgress: true, users: false})
Sample Output:
After the dumpUtil command is complete, you can exit out of the MySQL shell ( q; ) and view the backup on your VM by listing the contents of the backup directory. The backup consists of a series of JSON files that contain the schema and data of the instance.
Step 3: Restore the backup to your Azure Database for MySQL Flexible Server
Now that you have a backup of your accounting data from MariaDB, you can restore it to your Azure Database for MySQL Flexible Server.
To do this, first login to your Azure Database for MySQL Flexible Server using MySQL shell. Note, the syntax to establish the connection is slightly different than the one used to connect to MariaDB:
mysqldbname=jmmysqlfrommariadb #update with your specific db name
mysqldbusername=themorey #update with your specific db user name
mysqlsh –uri ${mysqldbusername}@${mariadbname}.mysqldb.database.azure.com:3306
List the databases in your MySQL server to confirm that the slurm_acct_db does not exist:
show databases;
Sample Output:
Switch to javascript mode and run the loadDump utility to import the MariaDB dump files:
js
util.loadDump(“/backup/mysqlsh/mariadb_backup”, {threads: 16, showProgress: true, ignoreVersion: true})
Sample Output:
Step 4: Create SLURM user in Azure Database for MySQL and grant privileges
When we used the util.loadDump() function to restore the data from the MariaDB backup, we only restored the SLURM accounting database and not the user accounts. This means that the SLURM user account that was used to access the database in MariaDB does not exist in the Azure Database for MySQL instance.
To fix this, we need to switch back to SQL mode, create a new user account with the same name and password as the SLURM user in MariaDB, and grant privileges:
sql
create user slurm@’%’;
ALTER USER slurm IDENTIFIED BY ‘P@ssw0rd!@#’;
grant usage on *.* to slurm@’%’;
grant all privileges on slurm_acct_db.* to slurm@’%’;
flush privileges;
SHOW GRANTS FOR ‘slurm’@’%’;
Sample Output:
Step 5: Update your CycleCloud cluster configuration for Slurm Job Accounting
After creating the user and granting the privileges, we are now ready to connect our cluster to the new MySQL server instance. To do this, we need to navigate to the advanced settings of the CycleCloud SLURM cluster and update following details:
Slurm DBD URL = URL for MySQL Server instance
Slurm DBD User = SLURM accounting DB user
Slurm DBD Password = SLURM accounting DB password
SSL Cert URL = https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
Sample Output:
After updating the required details for your SLURM Cluster, save the configuration and start the cluster.
Once the cluster is operational, run “sacct” to verify that you can view the historical information about the jobs that have been ran in the cluster before the migration took place:
NOTE: Slurm accounting command (sacct) defaults to the same day. You may need to expand the search criteria to see jobs older than current day. For example, “sacct -S 060124“ will show jobs starting from 6/1/2024 until the current day.
SUMMARY
The impending retirement date for MariaDB does not require you to abandon your Slurm accounting history. An Azure MySQL Flexible Server can be the solution moving forward while also loading the historical data from MariaDB.
REFERENCES
Migrating from Azure Database for MariaDB to Azure Database for MySQL – Microsoft Community Hub
Microsoft Tech Community – Latest Blogs –Read More
From Paper to Pixels: Azure AI in Historical Document Digitization and Translation
v:* {behavior:url(#default#VML);}
o:* {behavior:url(#default#VML);}
w:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Heather MacKinnon-Miller
Normal
Heather MacKinnon-Miller
2
5923
2024-07-16T17:12:00Z
2024-07-16T17:12:00Z
5
1127
6427
53
15
7539
16.00
Clean
Clean
false
false
false
false
EN-US
X-NONE
<w:LidThemeComplexscript>X-NONE</w:LidThemeComplexscript>
For 64 years, a stack of letters lay unread in my grandfather’s trunk. These letters, written by relatives of my great-grandfather who immigrated from Poland in 1906, represent the last remnants of Polish language in my family. Over a decade ago, I promised my mother I would have them translated, but life got in the way. Recently, inspired by the success I’ve seen using OCR, digitization, and translation with various customer documents, I decided to tackle this personal project myself using the Microsoft AI services I am familiar with.
Iterating through Process and Technology
I gathered the letters, took images of each page with my phone, and uploaded them to Azure Storage. Sending the image files directly to Azure OpenAI’s GPT-4o model resulted in a confusing mix of English and Polish, so I converted them to .pdf files and took advantage of Azure’s Document Intelligence Service, specifically the Read model, to identify the language and extract the text. The Document Analysis feature can recognize different styles, including handwritten text, and identify the language, reassuring me that the text would be extracted accurately. I used the Document Intelligence code samples repo to get started, and verified that the text was handwritten and correctly identified as Polish (P1). The best workflow involved pre-processing the documents with Azure Document Intelligence’s OCR capabilities, then passing the extracted Polish text to the GPT-4 model for translation into English. I used this git repo as a quick start, changed the model endpoint, and processed the letters in chunks of two pages per call to the model. This combination provided a reliable method to digitize and translate the documents effectively. Success! I had a general idea of the contents of the letters, so once my initial attempt proved successful, I felt motivated to continue. Within about an hour, I had processed all the letters and was ready to validate the results.
The English translation of the above letter excerpt:
“Dear Joseph, I ask you to please ask your brothers Kazimierz and Jan to write to me. I deeply regret the loss of Piotr who died on the front in France. Tell me how your father is doing and if he is healthy. My dearest nephews, please come to Poland to visit us and improve our lives. If you cannot come, please send my family a parcel of clothes. We need both winter and summer clothing, as well as footwear—shoes and clogs. From your abundance, please collect some money and send it to us, poor farmers. I wish you happiness and success in the future. I send my warmest greetings to Joseph, Kazimierz, Jan, your father, and all our relatives.”
Although the translations seemed accurate, I needed confirmation from a native speaker before sharing with family. Luckily, a colleague who speaks Polish fluently offered to review a sample page. He confirmed that, while there were some nuances and minor errors in the translation, the overall message and sentiment were accurate. For example, “cannot replace me, an old man, in hard work” was interpreted by GPT-4o as “too young to replace me in heavy labor.” While this analysis method was sufficient for my small project, more sophisticated metrics would be best used at scale. While this small personal project used only a subset of Azure services and was not intended for public use, this pattern could easily be integrated into a search service, such as Azure AI Search for discovery, or broadened to a “Chat with Your Data” pattern, for scalability.
Extending to cursive handwriting
After completing this project, I became curious about applying the same process to more complex documents, such as those written in cursive. Since cursive has not been taught as part of the common core at most U.S. schools since 2010, there is a real risk that future generations may lose the ability to read and preserve these historical documents. Institutions like the Smithsonian and the National Archives rely on volunteers to transcribe and preserve these records, but the pace is insufficient to capture written history before these skills disappear. The time has never been better to introduce AI for preservation of handwritten history.
To test this idea, I found a few family recipes written in cursive. This time, I uploaded image files of the recipes directly to GPT-4o. The results were impressive and did not require OCR as an initial step. Here’s a sample recipe from my grandmother:
And here are the results from GPT-4o:
Sandies
Ingredients:
1 cup butter
1/3 cup granulated sugar
2 tablespoons water
2 teaspoons vanilla
2 cups flour
1 cup chopped nuts
Instructions:
Cream butter and sugar.
Add water and vanilla.
Then add flour and nuts.
Chill 4 hours.
Roll in cookie sheet, shape into fingers.
Bake at 325°F for 20 minutes.
Cool and roll in powdered sugar.
Amazingly, the model was even able to identify “cookie sheet,” which was written in very small superscript text.
Prompt nuances matter
While I didn’t have to do much on the prompt engineering side, I realized how small changes in prompts can affect the quality of the result. In the case of the Polish letters, I initially prompted the GPT model to “translate this text from Polish to English”. I iterated a bit and found “translate these family letters from Polish to English” made the result a bit more readable and self-corrected on some misspellings. In the case of the recipes, I specifically prompted the GPT model to “read this family recipe” rather than just read what was in the image. This resulted in not only a very accurate result, but the model output separated the ingredients and the instructions without being explicitly written in the original recipe.
The journey from paper to pixels has never been more accessible or efficient, thanks to Azure Document Intelligence and Azure OpenAI. These powerful tools have proven their capability in digitizing and translating handwritten historical documents, preserving invaluable cultural and personal histories. My experience with translating my great-grandfather’s letters and digitizing family recipes demonstrates the transformative potential of these technologies. By leveraging Azure’s AI tools, we can ensure that the stories and knowledge contained in historical documents are not lost to time but are instead accessible to future generations.
Microsoft Tech Community – Latest Blogs –Read More