Month: July 2024
How can I make a combination/permutation of all possible values with a given subset of data?
Hello, I’m having trouble putting this into words so I’ll give an example and hopefully someone can help.
To make it simple, let’s say I have a 200 second time series (200×1 array) from 3 regions (A,B,C). Each region has different types, so for all A, theres A1, A2, A3 etc. This also applies to B and C. However the number of types differ for each region. So if A has A1 – A5, B would have B1 – B9 etc.
I want to make an array combination of one of each region. So [A1 B1 C1], [A2 B1 C1], [A3 B1 C1], etc. So if I had 3 regions, I want all combinations of a 200 x 3 array possible using one type from each region.
My question is, currently, I have all the types and regions in one array (200 x 164). So A1:A5 B1:B11 C1:C20 D1:D5 etc. In total, I have 54 regions, so I would want to make all possible combinations of a 200 x 54 array.
Is there a way to do this with how my data is currently organized? Thanks for any suggestions.Hello, I’m having trouble putting this into words so I’ll give an example and hopefully someone can help.
To make it simple, let’s say I have a 200 second time series (200×1 array) from 3 regions (A,B,C). Each region has different types, so for all A, theres A1, A2, A3 etc. This also applies to B and C. However the number of types differ for each region. So if A has A1 – A5, B would have B1 – B9 etc.
I want to make an array combination of one of each region. So [A1 B1 C1], [A2 B1 C1], [A3 B1 C1], etc. So if I had 3 regions, I want all combinations of a 200 x 3 array possible using one type from each region.
My question is, currently, I have all the types and regions in one array (200 x 164). So A1:A5 B1:B11 C1:C20 D1:D5 etc. In total, I have 54 regions, so I would want to make all possible combinations of a 200 x 54 array.
Is there a way to do this with how my data is currently organized? Thanks for any suggestions. Hello, I’m having trouble putting this into words so I’ll give an example and hopefully someone can help.
To make it simple, let’s say I have a 200 second time series (200×1 array) from 3 regions (A,B,C). Each region has different types, so for all A, theres A1, A2, A3 etc. This also applies to B and C. However the number of types differ for each region. So if A has A1 – A5, B would have B1 – B9 etc.
I want to make an array combination of one of each region. So [A1 B1 C1], [A2 B1 C1], [A3 B1 C1], etc. So if I had 3 regions, I want all combinations of a 200 x 3 array possible using one type from each region.
My question is, currently, I have all the types and regions in one array (200 x 164). So A1:A5 B1:B11 C1:C20 D1:D5 etc. In total, I have 54 regions, so I would want to make all possible combinations of a 200 x 54 array.
Is there a way to do this with how my data is currently organized? Thanks for any suggestions. combination, permutation, array MATLAB Answers — New Questions
MFA Requirements for external users
Good evening all,
Where can I check the default MFA rules for external guests? i.e, —
Can someone please explain to me the default MFA rules for guests accessing SharePoint data shared with them?
Scenario: the guest user was granted access to a specific folder on a SharePoint site via “People I choose” option. SharePoint sends the automated email sent to the recipient. SharePoint sends them this email –
Upon the first click on the “Open” button in the email, they’re prompted to sign in with their Microsoft Account and then authenticate themselves using MFA. This seems normal for the first time accessing.
I am getting complaints that external users are having to use MFA EVERY time they try to access the files, and I am thinking it’s due to the internal user not sharing the same way I am doing it. In any case, I would like somewhere to check from an Administrative perspective what exactly to expect when it comes to sharing internal items externally and when/if MFA should come into play. Thank you in advance!
Morghan C.
Good evening all, Where can I check the default MFA rules for external guests? i.e, –Can someone please explain to me the default MFA rules for guests accessing SharePoint data shared with them?Scenario: the guest user was granted access to a specific folder on a SharePoint site via “People I choose” option. SharePoint sends the automated email sent to the recipient. SharePoint sends them this email – Upon the first click on the “Open” button in the email, they’re prompted to sign in with their Microsoft Account and then authenticate themselves using MFA. This seems normal for the first time accessing. I am getting complaints that external users are having to use MFA EVERY time they try to access the files, and I am thinking it’s due to the internal user not sharing the same way I am doing it. In any case, I would like somewhere to check from an Administrative perspective what exactly to expect when it comes to sharing internal items externally and when/if MFA should come into play. Thank you in advance! Morghan C. Read More
How to retrieve multiband data using shape file?
I have kept the data and shape file on following link
https://drive.google.com/drive/folders/1bnXx0V4V_yfUyWDfKFSxJWlNcWbApuxY?usp=sharing
I am using the code for extracting seven band data as follows;
% Get image info:
DataFile=’C:working_bptbandsBagpat_7Bands.dat’
[Z,R] = readgeoraster(DataFile);
disp(size(Z));
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
ShapeFile=’C:working_bptbandsBAGHPAT.shp’
S = shaperead(ShapeFile);
info = shapeinfo(ShapeFile);
crs = info.CoordinateReferenceSystem;
[S(1).lon,S(1).lat] = projinv(crs,S(1).X,S(1).Y);
% Remove trailing nan from shapefile
rx = S(1).lon(1:end-1);
ry = S(1).lat(1:end-1);
logical_mask = inpolygon(S(1).lon,S(1).lat,rx,ry);
% Use the logical mask to extract data
extracted_data = Z(logical_mask);
disp(extracted_data);
it is giving following informations
DataFile =
‘C:working_bptbandsBagpat_7Bands.dat’
5490 5490 7
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(size(extracted_data));
1 9
OR
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(extracted_data);
1794 1842 1829 1858 1934 1968 2315 2635 2578
My target is to retrieve the data from seven band data of dimensions
number of lines = 5490
number of samples = 5490
number of bands =7
and dimensions of output file are supposed to be
number of lines =1153
number of samples = 1315
number of bands =7
I request you to kindly look on it and suggest me how to get seven band data using shape file.I have kept the data and shape file on following link
https://drive.google.com/drive/folders/1bnXx0V4V_yfUyWDfKFSxJWlNcWbApuxY?usp=sharing
I am using the code for extracting seven band data as follows;
% Get image info:
DataFile=’C:working_bptbandsBagpat_7Bands.dat’
[Z,R] = readgeoraster(DataFile);
disp(size(Z));
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
ShapeFile=’C:working_bptbandsBAGHPAT.shp’
S = shaperead(ShapeFile);
info = shapeinfo(ShapeFile);
crs = info.CoordinateReferenceSystem;
[S(1).lon,S(1).lat] = projinv(crs,S(1).X,S(1).Y);
% Remove trailing nan from shapefile
rx = S(1).lon(1:end-1);
ry = S(1).lat(1:end-1);
logical_mask = inpolygon(S(1).lon,S(1).lat,rx,ry);
% Use the logical mask to extract data
extracted_data = Z(logical_mask);
disp(extracted_data);
it is giving following informations
DataFile =
‘C:working_bptbandsBagpat_7Bands.dat’
5490 5490 7
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(size(extracted_data));
1 9
OR
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(extracted_data);
1794 1842 1829 1858 1934 1968 2315 2635 2578
My target is to retrieve the data from seven band data of dimensions
number of lines = 5490
number of samples = 5490
number of bands =7
and dimensions of output file are supposed to be
number of lines =1153
number of samples = 1315
number of bands =7
I request you to kindly look on it and suggest me how to get seven band data using shape file. I have kept the data and shape file on following link
https://drive.google.com/drive/folders/1bnXx0V4V_yfUyWDfKFSxJWlNcWbApuxY?usp=sharing
I am using the code for extracting seven band data as follows;
% Get image info:
DataFile=’C:working_bptbandsBagpat_7Bands.dat’
[Z,R] = readgeoraster(DataFile);
disp(size(Z));
p = R.ProjectedCRS;
[x,y] = worldGrid(R);
[lon,lat] = projinv(p,x,y);
ShapeFile=’C:working_bptbandsBAGHPAT.shp’
S = shaperead(ShapeFile);
info = shapeinfo(ShapeFile);
crs = info.CoordinateReferenceSystem;
[S(1).lon,S(1).lat] = projinv(crs,S(1).X,S(1).Y);
% Remove trailing nan from shapefile
rx = S(1).lon(1:end-1);
ry = S(1).lat(1:end-1);
logical_mask = inpolygon(S(1).lon,S(1).lat,rx,ry);
% Use the logical mask to extract data
extracted_data = Z(logical_mask);
disp(extracted_data);
it is giving following informations
DataFile =
‘C:working_bptbandsBagpat_7Bands.dat’
5490 5490 7
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(size(extracted_data));
1 9
OR
ShapeFile =
‘C:working_bptbandsBAGHPAT.shp’
disp(extracted_data);
1794 1842 1829 1858 1934 1968 2315 2635 2578
My target is to retrieve the data from seven band data of dimensions
number of lines = 5490
number of samples = 5490
number of bands =7
and dimensions of output file are supposed to be
number of lines =1153
number of samples = 1315
number of bands =7
I request you to kindly look on it and suggest me how to get seven band data using shape file. how to retrieve multiband data using shape file? MATLAB Answers — New Questions
Order a column based on another one (copy the order)
Hi! I have 2 columns with the same numbers on them, and I need to order one just like the other. Example: column 1: 13|42|75|3|21 Column 2: 75|3|42|21|13. I need the second one to be in the same order as column 1, like copy the order. How do I do it? Thanks!!
Hi! I have 2 columns with the same numbers on them, and I need to order one just like the other. Example: column 1: 13|42|75|3|21 Column 2: 75|3|42|21|13. I need the second one to be in the same order as column 1, like copy the order. How do I do it? Thanks!! Read More
need help about this
I don’t know what is this and how to remove this can anyone help me pls, I am scared about this
I don’t know what is this and how to remove this can anyone help me pls, I am scared about this Read More
How do we get the linux device driver files matlab/hdl coder generatwes for the ipcore we made in matlab?
I am working on axi stream interface in zynq workflow which uses a symmetric fir filter IP with AXI stream and AXI4 lite interface to stream data and configure the filter coefficients.The steps i follwed gave me the output, but i wanted to go deeper to understand the backstage where i wanted to see the linux drivers for the ip files, i used terminal emulator ( teraterm to log in to the linux running on the zedboard, i saw the iio structure where my ip and its DMA’s were listed ) and also in the lib directory i saw the drivers too, so my qeustion is how is matlab creating those drivers, i couldnt find the corresponding c files and header files for it looking in the folder created by h dlcoder while running the example.
I did ‘lsmod’ in teraterm and found this :
zynq> lsmod
Module Size Used by Not tainted
mwipcore 3193 0
mwipcore_iio_streaming 9087 1 mwipcore
mwipcore_iio_sharedmem 11368 1 mwipcore
mwipcore_iio_mm 4414 1 mwipcore
mwipcore_dma_streaming 19767 1 mwipcore
mathworks_ip_common 9568 1 mwipcore
xilinx_dma
so my search was to find the c files corresponding to theses driver files that helps me to interface with the ip core created.The below given is how my folder looks like after running the Workflowadvisor.I am working on axi stream interface in zynq workflow which uses a symmetric fir filter IP with AXI stream and AXI4 lite interface to stream data and configure the filter coefficients.The steps i follwed gave me the output, but i wanted to go deeper to understand the backstage where i wanted to see the linux drivers for the ip files, i used terminal emulator ( teraterm to log in to the linux running on the zedboard, i saw the iio structure where my ip and its DMA’s were listed ) and also in the lib directory i saw the drivers too, so my qeustion is how is matlab creating those drivers, i couldnt find the corresponding c files and header files for it looking in the folder created by h dlcoder while running the example.
I did ‘lsmod’ in teraterm and found this :
zynq> lsmod
Module Size Used by Not tainted
mwipcore 3193 0
mwipcore_iio_streaming 9087 1 mwipcore
mwipcore_iio_sharedmem 11368 1 mwipcore
mwipcore_iio_mm 4414 1 mwipcore
mwipcore_dma_streaming 19767 1 mwipcore
mathworks_ip_common 9568 1 mwipcore
xilinx_dma
so my search was to find the c files corresponding to theses driver files that helps me to interface with the ip core created.The below given is how my folder looks like after running the Workflowadvisor. I am working on axi stream interface in zynq workflow which uses a symmetric fir filter IP with AXI stream and AXI4 lite interface to stream data and configure the filter coefficients.The steps i follwed gave me the output, but i wanted to go deeper to understand the backstage where i wanted to see the linux drivers for the ip files, i used terminal emulator ( teraterm to log in to the linux running on the zedboard, i saw the iio structure where my ip and its DMA’s were listed ) and also in the lib directory i saw the drivers too, so my qeustion is how is matlab creating those drivers, i couldnt find the corresponding c files and header files for it looking in the folder created by h dlcoder while running the example.
I did ‘lsmod’ in teraterm and found this :
zynq> lsmod
Module Size Used by Not tainted
mwipcore 3193 0
mwipcore_iio_streaming 9087 1 mwipcore
mwipcore_iio_sharedmem 11368 1 mwipcore
mwipcore_iio_mm 4414 1 mwipcore
mwipcore_dma_streaming 19767 1 mwipcore
mathworks_ip_common 9568 1 mwipcore
xilinx_dma
so my search was to find the c files corresponding to theses driver files that helps me to interface with the ip core created.The below given is how my folder looks like after running the Workflowadvisor. axi stream interface, matlab, hdlcoder MATLAB Answers — New Questions
The word’s font are not consistent.
I use the script to edit chinese, the font of output pdf file is not consistent with orignal script’s font.
orignal script file:
output file(pdf):I use the script to edit chinese, the font of output pdf file is not consistent with orignal script’s font.
orignal script file:
output file(pdf): I use the script to edit chinese, the font of output pdf file is not consistent with orignal script’s font.
orignal script file:
output file(pdf): script, font MATLAB Answers — New Questions
Feature Request: Group by feature on all Tabs/lists of Todo App
Dear To Do Team,
The current version of the To-Do app lacks many features. Adding a group by a feature on all tabs/lists (vertical tabs on the left) of the To-Do app will be helpful. The Group by functionality can be performed based on the following fields:
1. Categories (Ensure great synchronization of categories from Microsoft Outlook)
2. Due Date
3. Task Status
4. Type of Task (Email, Task, etc.)
Thanks,
Manoj Aggarwal
Dear To Do Team, The current version of the To-Do app lacks many features. Adding a group by a feature on all tabs/lists (vertical tabs on the left) of the To-Do app will be helpful. The Group by functionality can be performed based on the following fields: 1. Categories (Ensure great synchronization of categories from Microsoft Outlook)2. Due Date3. Task Status 4. Type of Task (Email, Task, etc.) Thanks,Manoj Aggarwal Read More
M365AdoptionUG – Reinventing Communications with AI & Copilot at Microsoft
After meeting Liz and Lisa from the Microsoft ANZ Comms team at the Copilot+PC Launch, they’re excited to join us and take you behind the scenes of how Microsoft uses AI & Copilot to transform everyday work when dealing with their comms programs. They will even go through some of their prompts in this exclusive demonstration.
Afterwards, stick around to hear all the latest on what’s new to Microsoft 365 & the ACM space!
Online Teams Meeting Link: https://aka.ms/M365UG
AGENDA:
12:00 – 12:05 Welcome: Kirsty McGrath
12:05 – 12:50 Speaker: Reinventing Communications with AI & Copilot at Microsoft with Liz Green & Lisa Vu
12:50 – 1:50 What’s New to Microsoft 365 & ACM
1:25 – 1:30 What’s Next & Close: Kirsty McGrath
SYNOPSIS:
Over the last year, Microsoft’s Communications team has been exploring how and where to best apply generative AI across their work – from measurement and reporting through news operations, social media, content creation, and much more. In this session, Liz and Lisa from the Microsoft ANZ Comms team will take you behind the scenes of how Microsoft has approached the use of AI across the discipline, best practices for applying AI to Comms and a sneak peek at some of the tools Microsoft has built internally to transform their work – as well as how they’re making the most of Microsoft Copilot.
BIO:
Lisa Vu is a Communications Manager at Microsoft ANZ, focusing on building brand love for consumer audiences. Her responsibilities include Surface, Copilot, Windows and Bing. She has been working at Microsoft for just over 5 years in roles spanning SMB, marketing and PR.
Liz Greene is the Head of Communications at Microsoft ANZ, where she is responsible for all external communications including corporate communications and issues management, brand and product PR plus owned storytelling for Microsoft’s local business. Before joining Microsoft in 2017, Liz led Communications at Diageo Australia, prior to which she spent six years at Optus working across both Corporate Affairs as well as Internal Communications.
SOCIAL MEDIA:
LinkedIn: https://www.linkedin.com/in/lisanhuanvu/ & Elizabeth Greene | LinkedIn
LinkedIn: Kirsty McGrath
X: @M365Adoption, @KirstyMcGrath13,
Facebook: www.facebook.com/Microsoft365Adoption
YouTube: https://aka.ms/M365Adoption or @Microsoft365Adoption
#M365AdoptionUG #M365Adoption #MSFTAdoption #COPILOT #AI #Communications
After meeting Liz and Lisa from the Microsoft ANZ Comms team at the Copilot+PC Launch, they’re excited to join us and take you behind the scenes of how Microsoft uses AI & Copilot to transform everyday work when dealing with their comms programs. They will even go through some of their prompts in this exclusive demonstration.
Afterwards, stick around to hear all the latest on what’s new to Microsoft 365 & the ACM space!
Online Teams Meeting Link: https://aka.ms/M365UG
AGENDA:
12:00 – 12:05 Welcome: Kirsty McGrath
12:05 – 12:50 Speaker: Reinventing Communications with AI & Copilot at Microsoft with Liz Green & Lisa Vu
12:50 – 1:50 What’s New to Microsoft 365 & ACM
1:25 – 1:30 What’s Next & Close: Kirsty McGrath
SYNOPSIS:
Over the last year, Microsoft’s Communications team has been exploring how and where to best apply generative AI across their work – from measurement and reporting through news operations, social media, content creation, and much more. In this session, Liz and Lisa from the Microsoft ANZ Comms team will take you behind the scenes of how Microsoft has approached the use of AI across the discipline, best practices for applying AI to Comms and a sneak peek at some of the tools Microsoft has built internally to transform their work – as well as how they’re making the most of Microsoft Copilot.
BIO:
Lisa Vu is a Communications Manager at Microsoft ANZ, focusing on building brand love for consumer audiences. Her responsibilities include Surface, Copilot, Windows and Bing. She has been working at Microsoft for just over 5 years in roles spanning SMB, marketing and PR.
Liz Greene is the Head of Communications at Microsoft ANZ, where she is responsible for all external communications including corporate communications and issues management, brand and product PR plus owned storytelling for Microsoft’s local business. Before joining Microsoft in 2017, Liz led Communications at Diageo Australia, prior to which she spent six years at Optus working across both Corporate Affairs as well as Internal Communications.
SOCIAL MEDIA:
LinkedIn: https://www.linkedin.com/in/lisanhuanvu/ & Elizabeth Greene | LinkedIn
LinkedIn: Kirsty McGrath
X: @M365Adoption, @KirstyMcGrath13,
Facebook: www.facebook.com/Microsoft365Adoption
YouTube: https://aka.ms/M365Adoption or @Microsoft365Adoption
#M365AdoptionUG #M365Adoption #MSFTAdoption #COPILOT #AI #Communications Read More
Feature Request: Ability to mark start and due date of the tasks
Hi To Do Team,
It is possible to mark the Start and Due dates of tasks in Microsoft Outlook. However, no such option exists in the To-Do app. Ideally, if a task falls within the start and due dates, it should appear in my day list.
Thanks,
Manoj Aggarwal
Hi To Do Team, It is possible to mark the Start and Due dates of tasks in Microsoft Outlook. However, no such option exists in the To-Do app. Ideally, if a task falls within the start and due dates, it should appear in my day list. Thanks,Manoj Aggarwal Read More
Why am I asked for my account credentials at every startup?
I am using Matlab R2016b on Linux Fedora 24.
Can I permanently set my account credentials so I am not asked at every startup?I am using Matlab R2016b on Linux Fedora 24.
Can I permanently set my account credentials so I am not asked at every startup? I am using Matlab R2016b on Linux Fedora 24.
Can I permanently set my account credentials so I am not asked at every startup? linux, startup, password, account MATLAB Answers — New Questions
How to draw a square with specific plot points
I’m trying to create two squares, one larger one, and the other within it.
I attempted to create one using matrices. I create one with x = [0 0 1 1] and y = [0 1 1 0]
I wanted a line to connect each one of the points, to thus create a line. However, when I did that, I only received three lines connect between the dots for some reason. The bottom points (0,0) and (1,0) for some reason were not connected. I then attempted to make a second square, and the same thing happened, with the two lower points in regards to their Y points did not connect. I tried using the rectangle function as well, but can’t get a square within a square to appear. Any help would be great. ThanksI’m trying to create two squares, one larger one, and the other within it.
I attempted to create one using matrices. I create one with x = [0 0 1 1] and y = [0 1 1 0]
I wanted a line to connect each one of the points, to thus create a line. However, when I did that, I only received three lines connect between the dots for some reason. The bottom points (0,0) and (1,0) for some reason were not connected. I then attempted to make a second square, and the same thing happened, with the two lower points in regards to their Y points did not connect. I tried using the rectangle function as well, but can’t get a square within a square to appear. Any help would be great. Thanks I’m trying to create two squares, one larger one, and the other within it.
I attempted to create one using matrices. I create one with x = [0 0 1 1] and y = [0 1 1 0]
I wanted a line to connect each one of the points, to thus create a line. However, when I did that, I only received three lines connect between the dots for some reason. The bottom points (0,0) and (1,0) for some reason were not connected. I then attempted to make a second square, and the same thing happened, with the two lower points in regards to their Y points did not connect. I tried using the rectangle function as well, but can’t get a square within a square to appear. Any help would be great. Thanks plotting MATLAB Answers — New Questions
OUTLOOK FOR MAC
Hi, is there anywhere I can learn specifically about how to best set up rules in outlook for mac? They never seem to work as I expected.
Hi, is there anywhere I can learn specifically about how to best set up rules in outlook for mac? They never seem to work as I expected. Read More
View other library then general on Teams SharePoint site using iPhone
I have created various teams SharePoint sites (using office365 group as a starting block, and creating the Team using the group) then creating additional document library (other then general) on the site, but I cannot to seem to access this library from anywhere while using iPhone. I have tried SharePoint App (I cannot even get to the Teams Sites from the app, only shows com “site” sites), I have tried OneDrive App (that also only shows libraries from com sites only), finally in the Teams app, I can only get to the “General” library, it does not give me an option anywhere to navigate to a different library. Any ideas?
I have created various teams SharePoint sites (using office365 group as a starting block, and creating the Team using the group) then creating additional document library (other then general) on the site, but I cannot to seem to access this library from anywhere while using iPhone. I have tried SharePoint App (I cannot even get to the Teams Sites from the app, only shows com “site” sites), I have tried OneDrive App (that also only shows libraries from com sites only), finally in the Teams app, I can only get to the “General” library, it does not give me an option anywhere to navigate to a different library. Any ideas? Read More
Possible to restore a deleted chatbot?
I did not realise that deleting the chatbot inside powerapps would also delete the chatbot from copilot studio. Is there any way to restore this? I had just finshed it and was ready to present it. Any help would be appreciated. Thank you!
I did not realise that deleting the chatbot inside powerapps would also delete the chatbot from copilot studio. Is there any way to restore this? I had just finshed it and was ready to present it. Any help would be appreciated. Thank you! Read More
Advanced matlab function autocompletion based on previous input
Hello Matlab community! first question for me:
Short question: is there an easy/documented way (or is it gonna be implemented in future releases) of providing input autocompletion for functions based on previous inputs?
Context: I found very useful the link below provided in other question/answer about autocompletion but it seems to me it has been somehow abandoned…
https://it.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
the usage of mutuallyExclusiveGroup – Definition of set of exclusive arguments goes next by the desired result but not close enough.
To make a practical example my ideal result would be to get to the same user experience level that the function readcell(…) offers: if I provide an xls filename as first input and then type "sheet" matlab knows automatically the sheetnames of that file and suggest them. I tried to navigate inside the readcell(..) code but I think I’m missing something..
The autocompletion approach with the json template is kinda ‘static’ in my opinion, since I don’t know what file the user will enter, I can’t enumerate all the options manually, and I don’t know how to filter something more specific than a file-format like *mat, *xlsx,…
Any workaround? Or maybe I’m just not smart enough to make it work.
Another thing I use consistently for the autocompletion is the "argument (Input)" syntax for my purposes, usually I use
{mustBeMember(__,[option1, option2, ..]} and that helps me a lot to provide fast ways to make autocompletions for end users. But also in this situation I see no way to reuse the information of a previous input.. in example it could be cool, let’s say, having this:
function bill = iWannaEat( restaurant, dish) % < let’s keep things simple and assume this is a simple function, or a static method.
arguments (Input)
restaurant (1,1) KitchenObject
dish (1,:) string {mustBeMember(dish, restaurant.MenuSheet)} = "water" % < but I can’t reuse
% restaurant.MenuSheet,
% because a .MenuSheet must be guaranteed to exist?
end
bill = … things …
end
By the way I appreciate the extraordinary work you do for free to help other programmers with their things!!!
I went through 2014a till the 2024 and the developments has been huge, do you agree?
clc, clear allHello Matlab community! first question for me:
Short question: is there an easy/documented way (or is it gonna be implemented in future releases) of providing input autocompletion for functions based on previous inputs?
Context: I found very useful the link below provided in other question/answer about autocompletion but it seems to me it has been somehow abandoned…
https://it.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
the usage of mutuallyExclusiveGroup – Definition of set of exclusive arguments goes next by the desired result but not close enough.
To make a practical example my ideal result would be to get to the same user experience level that the function readcell(…) offers: if I provide an xls filename as first input and then type "sheet" matlab knows automatically the sheetnames of that file and suggest them. I tried to navigate inside the readcell(..) code but I think I’m missing something..
The autocompletion approach with the json template is kinda ‘static’ in my opinion, since I don’t know what file the user will enter, I can’t enumerate all the options manually, and I don’t know how to filter something more specific than a file-format like *mat, *xlsx,…
Any workaround? Or maybe I’m just not smart enough to make it work.
Another thing I use consistently for the autocompletion is the "argument (Input)" syntax for my purposes, usually I use
{mustBeMember(__,[option1, option2, ..]} and that helps me a lot to provide fast ways to make autocompletions for end users. But also in this situation I see no way to reuse the information of a previous input.. in example it could be cool, let’s say, having this:
function bill = iWannaEat( restaurant, dish) % < let’s keep things simple and assume this is a simple function, or a static method.
arguments (Input)
restaurant (1,1) KitchenObject
dish (1,:) string {mustBeMember(dish, restaurant.MenuSheet)} = "water" % < but I can’t reuse
% restaurant.MenuSheet,
% because a .MenuSheet must be guaranteed to exist?
end
bill = … things …
end
By the way I appreciate the extraordinary work you do for free to help other programmers with their things!!!
I went through 2014a till the 2024 and the developments has been huge, do you agree?
clc, clear all Hello Matlab community! first question for me:
Short question: is there an easy/documented way (or is it gonna be implemented in future releases) of providing input autocompletion for functions based on previous inputs?
Context: I found very useful the link below provided in other question/answer about autocompletion but it seems to me it has been somehow abandoned…
https://it.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html
the usage of mutuallyExclusiveGroup – Definition of set of exclusive arguments goes next by the desired result but not close enough.
To make a practical example my ideal result would be to get to the same user experience level that the function readcell(…) offers: if I provide an xls filename as first input and then type "sheet" matlab knows automatically the sheetnames of that file and suggest them. I tried to navigate inside the readcell(..) code but I think I’m missing something..
The autocompletion approach with the json template is kinda ‘static’ in my opinion, since I don’t know what file the user will enter, I can’t enumerate all the options manually, and I don’t know how to filter something more specific than a file-format like *mat, *xlsx,…
Any workaround? Or maybe I’m just not smart enough to make it work.
Another thing I use consistently for the autocompletion is the "argument (Input)" syntax for my purposes, usually I use
{mustBeMember(__,[option1, option2, ..]} and that helps me a lot to provide fast ways to make autocompletions for end users. But also in this situation I see no way to reuse the information of a previous input.. in example it could be cool, let’s say, having this:
function bill = iWannaEat( restaurant, dish) % < let’s keep things simple and assume this is a simple function, or a static method.
arguments (Input)
restaurant (1,1) KitchenObject
dish (1,:) string {mustBeMember(dish, restaurant.MenuSheet)} = "water" % < but I can’t reuse
% restaurant.MenuSheet,
% because a .MenuSheet must be guaranteed to exist?
end
bill = … things …
end
By the way I appreciate the extraordinary work you do for free to help other programmers with their things!!!
I went through 2014a till the 2024 and the developments has been huge, do you agree?
clc, clear all input validation, code suggestion, autocompletion, previous input, function input, multiple, option based MATLAB Answers — New Questions
Unable to correctly import Spherical Parallel Manipulator CAD files into Simulink. kinematic constraints cannot be maintained error
I am currently working on programming a spherical parallel manipulator. I am very new to matlab and I also have minimal knowledge of programming and calculus.
When I import my onshape assembly into simulink and try to run the simulation I get an error saying that the kinematic constraints cannot be maintained. The simulation works for about 0.007 seconds before returning this error.
This is the exact error message:
An error occurred during simulation and the simulation was terminated
Caused by:
[‘V2_SPM_Assembly/Revolute9’, ‘V2_SPM_Assembly/Solver Configuration’]: ‘V2_SPM_Assembly/Revolute9’ kinematic constraints cannot be maintained. Check solver type and consistency tolerance in the Simscape Solver Configuration block. Check Simulink solver type and tolerances in Model Configuration Parameters. A kinematic singularity might be the source of this problem.
So far I have tried:
Turning down the tolerance. This results in the same error. Although the simulation works for about 0.108 seconds.
Changing the solver type. I tried all of the solver types and they do affect how long the simulation runs before resulting in an error but they never result in a simulation time greater than a second or so.
Redoing the CAD design. I remade the whole design and made sure that every axis of rotation is defined directly off of the origin.
Changing the order in which I assigned the revolute joints. This had no effect.
Replacing "revolute7", "revolute8", and "revolute9", with cylindrical joints. This resulted in a position violation error.
Changing how mate connectors were assigned in onshape part studios. I assigned mate connectors to be aligned with the relative axis of rotation and used those connectors in the joints. When I did not do this then the model resulted in a position violation error.
I have had minor success with:
Turning down the tolerance, and changing the way the joints are defined. I was able to get the model to simulate without an error. However, it only went through about 10 degrees of rotation on the base axis.
Changing the way the mate connectors where assigned in the onshape parts studios was the biggest improvement I have had and it made it so I stopped getting the position violation error.
Simulating the model with only one leg of the spherical parallel manipulator. This worked perfectly but it will not suffice for my project.
What I think the problem is:
I think that the part origins are the issue but I do not know how to correctly define them. The mate connectors help but I am unsure whether they act as coordinate systems for the parts. I have a Solidworks license but it is for Solidworks 2022 and it does not export to Simulink.
If anyone has any suggestions on what else I could try I would love to hear them. I linked my onshape file, and simulink file below as well as an image of the model.
https://cad.onshape.com/documents/d27868ad0436caa3f4afe2cb/w/a233bf5d473eb4ccb1022246/e/4dd27757644eec07373ecc70?renderMode=0&uiState=66542a76150c1c53248dd442I am currently working on programming a spherical parallel manipulator. I am very new to matlab and I also have minimal knowledge of programming and calculus.
When I import my onshape assembly into simulink and try to run the simulation I get an error saying that the kinematic constraints cannot be maintained. The simulation works for about 0.007 seconds before returning this error.
This is the exact error message:
An error occurred during simulation and the simulation was terminated
Caused by:
[‘V2_SPM_Assembly/Revolute9’, ‘V2_SPM_Assembly/Solver Configuration’]: ‘V2_SPM_Assembly/Revolute9’ kinematic constraints cannot be maintained. Check solver type and consistency tolerance in the Simscape Solver Configuration block. Check Simulink solver type and tolerances in Model Configuration Parameters. A kinematic singularity might be the source of this problem.
So far I have tried:
Turning down the tolerance. This results in the same error. Although the simulation works for about 0.108 seconds.
Changing the solver type. I tried all of the solver types and they do affect how long the simulation runs before resulting in an error but they never result in a simulation time greater than a second or so.
Redoing the CAD design. I remade the whole design and made sure that every axis of rotation is defined directly off of the origin.
Changing the order in which I assigned the revolute joints. This had no effect.
Replacing "revolute7", "revolute8", and "revolute9", with cylindrical joints. This resulted in a position violation error.
Changing how mate connectors were assigned in onshape part studios. I assigned mate connectors to be aligned with the relative axis of rotation and used those connectors in the joints. When I did not do this then the model resulted in a position violation error.
I have had minor success with:
Turning down the tolerance, and changing the way the joints are defined. I was able to get the model to simulate without an error. However, it only went through about 10 degrees of rotation on the base axis.
Changing the way the mate connectors where assigned in the onshape parts studios was the biggest improvement I have had and it made it so I stopped getting the position violation error.
Simulating the model with only one leg of the spherical parallel manipulator. This worked perfectly but it will not suffice for my project.
What I think the problem is:
I think that the part origins are the issue but I do not know how to correctly define them. The mate connectors help but I am unsure whether they act as coordinate systems for the parts. I have a Solidworks license but it is for Solidworks 2022 and it does not export to Simulink.
If anyone has any suggestions on what else I could try I would love to hear them. I linked my onshape file, and simulink file below as well as an image of the model.
https://cad.onshape.com/documents/d27868ad0436caa3f4afe2cb/w/a233bf5d473eb4ccb1022246/e/4dd27757644eec07373ecc70?renderMode=0&uiState=66542a76150c1c53248dd442 I am currently working on programming a spherical parallel manipulator. I am very new to matlab and I also have minimal knowledge of programming and calculus.
When I import my onshape assembly into simulink and try to run the simulation I get an error saying that the kinematic constraints cannot be maintained. The simulation works for about 0.007 seconds before returning this error.
This is the exact error message:
An error occurred during simulation and the simulation was terminated
Caused by:
[‘V2_SPM_Assembly/Revolute9’, ‘V2_SPM_Assembly/Solver Configuration’]: ‘V2_SPM_Assembly/Revolute9’ kinematic constraints cannot be maintained. Check solver type and consistency tolerance in the Simscape Solver Configuration block. Check Simulink solver type and tolerances in Model Configuration Parameters. A kinematic singularity might be the source of this problem.
So far I have tried:
Turning down the tolerance. This results in the same error. Although the simulation works for about 0.108 seconds.
Changing the solver type. I tried all of the solver types and they do affect how long the simulation runs before resulting in an error but they never result in a simulation time greater than a second or so.
Redoing the CAD design. I remade the whole design and made sure that every axis of rotation is defined directly off of the origin.
Changing the order in which I assigned the revolute joints. This had no effect.
Replacing "revolute7", "revolute8", and "revolute9", with cylindrical joints. This resulted in a position violation error.
Changing how mate connectors were assigned in onshape part studios. I assigned mate connectors to be aligned with the relative axis of rotation and used those connectors in the joints. When I did not do this then the model resulted in a position violation error.
I have had minor success with:
Turning down the tolerance, and changing the way the joints are defined. I was able to get the model to simulate without an error. However, it only went through about 10 degrees of rotation on the base axis.
Changing the way the mate connectors where assigned in the onshape parts studios was the biggest improvement I have had and it made it so I stopped getting the position violation error.
Simulating the model with only one leg of the spherical parallel manipulator. This worked perfectly but it will not suffice for my project.
What I think the problem is:
I think that the part origins are the issue but I do not know how to correctly define them. The mate connectors help but I am unsure whether they act as coordinate systems for the parts. I have a Solidworks license but it is for Solidworks 2022 and it does not export to Simulink.
If anyone has any suggestions on what else I could try I would love to hear them. I linked my onshape file, and simulink file below as well as an image of the model.
https://cad.onshape.com/documents/d27868ad0436caa3f4afe2cb/w/a233bf5d473eb4ccb1022246/e/4dd27757644eec07373ecc70?renderMode=0&uiState=66542a76150c1c53248dd442 onshape, simulink, smexportonshape, smimport, kinematic constraints, position violation, solidworks, cad, cad import, over defined, assembly, joints, revolute, spherical parallel manipulator, multibody MATLAB Answers — New Questions
Issue with Email Not Recognized as Clickable Link in Microsoft Forms
I am currently creating a form for my research work. When I enter my email address in the subtitle field after the title, it is not being recognized as a clickable link. I have noticed that other email addresses from my institute are correctly recognized as clickable links, but mine is not.
I have ensured that the email is correctly formatted and manually typed it to avoid any hidden formatting issues.I have also tried clearing any formatting, using different browsers, and even recreating the form, but the issue persists.Other email addresses from the same domain are recognized without any problems.
I am using the same email address for creating the form as well. I would greatly appreciate your assistance in resolving this issue as it is crucial for my research work.
Thank you for your time and support. I look forward to your prompt response.
I am currently creating a form for my research work. When I enter my email address in the subtitle field after the title, it is not being recognized as a clickable link. I have noticed that other email addresses from my institute are correctly recognized as clickable links, but mine is not.I have ensured that the email is correctly formatted and manually typed it to avoid any hidden formatting issues.I have also tried clearing any formatting, using different browsers, and even recreating the form, but the issue persists.Other email addresses from the same domain are recognized without any problems.I am using the same email address for creating the form as well. I would greatly appreciate your assistance in resolving this issue as it is crucial for my research work.Thank you for your time and support. I look forward to your prompt response. Read More
جلب الحبيب العنيد ☎️ 01040581277-002- السعودية #
Therefore, my question is how to generate the actual geometry of line variant elements. Maybe it will be good choice to replace the shape of line variant elements using “GTFS To Public Transit Data Model” tool. However, I could not find the available methods to achieve that
Therefore, my question is how to generate the actual geometry of line variant elements. Maybe it will be good choice to replace the shape of line variant elements using “GTFS To Public Transit Data Model” tool. However, I could not find the available methods to achieve that Read More
Graph API with Large Attachment Problem
I am attempting to send an EMail via the O365 Graph API with a large attachment. I am doing this from Access VBA. I have created an upload session and am attempting to upload the attachment in chunks with successive PUTs, but I get an error message. I am sending this command:
PUT httpx://graph.microsoft.com/v1.0/me/messages/AAMkADli…(shortened for posting)/attachments/Onboarding_Guide_v12.pdf/createUploadSession
And I receive this error response:
{“error”:{“code”:”BadRequest”,”message”:”Resource not found for the segment ‘createUploadSession’.”,…
Any idea what is wrong with my PUT statement?
Jim
I am attempting to send an EMail via the O365 Graph API with a large attachment. I am doing this from Access VBA. I have created an upload session and am attempting to upload the attachment in chunks with successive PUTs, but I get an error message. I am sending this command: PUT httpx://graph.microsoft.com/v1.0/me/messages/AAMkADli…(shortened for posting)/attachments/Onboarding_Guide_v12.pdf/createUploadSession And I receive this error response:{“error”:{“code”:”BadRequest”,”message”:”Resource not found for the segment ‘createUploadSession’.”,… Any idea what is wrong with my PUT statement? Jim Read More