Category: News
VideoReader missing codec problem
I cannot open avi files with VideoReader on my MacBook (OS Ventura 13.5) with a pretty up-to-date version of MATLAB (R2023b; 23.2.0.2365128, 64-bit). When I try to open an avi file with the following code
v = VideoReader(vidFileName.avi)
I get the following error
Error using VideoReader/initReader
Unable to determine the required codec.
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Similarly, if I try to get information about the avi file, the code
info = mmfileinfo(vidFileName.avi)
returns the error
Unable to determine the required codec.
Some important points:
Yes, I know other people have posted similar problems. No clear solution to my problem is found there
Yes, this video file is valid and uncorrupted. It plays fine on VLC Player. It does not play on QuickTime, which does not support the avi format
Yes, I am aware that the solution might be "installing new codecs"–a solution mentioned in some other posts–but I need more information than that
Here’s the deal: The MATLAB Central "solutions" mention installing codecs from mediaplayercodecpack.com…but that only support Windows systems. I tried installing 3rd party Mac codecs from 3ivx.com, but they didn’t work. FWIW, they didn’t allow QT to play avi files either, as it was supposed to do. I know nothing about video codecs, but teh interwebs tell me they are usually stored in Library/QuickTime on Macs. Sure enough, the 3ivx installation did add "3ivxVideoCodec.component" to that folder, but again, it doesn’t work. The fact that VLC Player does work suggests that the necessary codec does exist somewhere on my Mac, but apparently MATLAB can’t use it.
In closing, I pose these fundamental questions: Doesn’t the MATLAB installation include the video codes required for the video formats VideoReader/VideoWriter supposedly supports? If yes, why am I getting this probelm? If no, where do I find the relevant codecs and how do I install them in a way that MATLAB can use?I cannot open avi files with VideoReader on my MacBook (OS Ventura 13.5) with a pretty up-to-date version of MATLAB (R2023b; 23.2.0.2365128, 64-bit). When I try to open an avi file with the following code
v = VideoReader(vidFileName.avi)
I get the following error
Error using VideoReader/initReader
Unable to determine the required codec.
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Similarly, if I try to get information about the avi file, the code
info = mmfileinfo(vidFileName.avi)
returns the error
Unable to determine the required codec.
Some important points:
Yes, I know other people have posted similar problems. No clear solution to my problem is found there
Yes, this video file is valid and uncorrupted. It plays fine on VLC Player. It does not play on QuickTime, which does not support the avi format
Yes, I am aware that the solution might be "installing new codecs"–a solution mentioned in some other posts–but I need more information than that
Here’s the deal: The MATLAB Central "solutions" mention installing codecs from mediaplayercodecpack.com…but that only support Windows systems. I tried installing 3rd party Mac codecs from 3ivx.com, but they didn’t work. FWIW, they didn’t allow QT to play avi files either, as it was supposed to do. I know nothing about video codecs, but teh interwebs tell me they are usually stored in Library/QuickTime on Macs. Sure enough, the 3ivx installation did add "3ivxVideoCodec.component" to that folder, but again, it doesn’t work. The fact that VLC Player does work suggests that the necessary codec does exist somewhere on my Mac, but apparently MATLAB can’t use it.
In closing, I pose these fundamental questions: Doesn’t the MATLAB installation include the video codes required for the video formats VideoReader/VideoWriter supposedly supports? If yes, why am I getting this probelm? If no, where do I find the relevant codecs and how do I install them in a way that MATLAB can use? I cannot open avi files with VideoReader on my MacBook (OS Ventura 13.5) with a pretty up-to-date version of MATLAB (R2023b; 23.2.0.2365128, 64-bit). When I try to open an avi file with the following code
v = VideoReader(vidFileName.avi)
I get the following error
Error using VideoReader/initReader
Unable to determine the required codec.
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Similarly, if I try to get information about the avi file, the code
info = mmfileinfo(vidFileName.avi)
returns the error
Unable to determine the required codec.
Some important points:
Yes, I know other people have posted similar problems. No clear solution to my problem is found there
Yes, this video file is valid and uncorrupted. It plays fine on VLC Player. It does not play on QuickTime, which does not support the avi format
Yes, I am aware that the solution might be "installing new codecs"–a solution mentioned in some other posts–but I need more information than that
Here’s the deal: The MATLAB Central "solutions" mention installing codecs from mediaplayercodecpack.com…but that only support Windows systems. I tried installing 3rd party Mac codecs from 3ivx.com, but they didn’t work. FWIW, they didn’t allow QT to play avi files either, as it was supposed to do. I know nothing about video codecs, but teh interwebs tell me they are usually stored in Library/QuickTime on Macs. Sure enough, the 3ivx installation did add "3ivxVideoCodec.component" to that folder, but again, it doesn’t work. The fact that VLC Player does work suggests that the necessary codec does exist somewhere on my Mac, but apparently MATLAB can’t use it.
In closing, I pose these fundamental questions: Doesn’t the MATLAB installation include the video codes required for the video formats VideoReader/VideoWriter supposedly supports? If yes, why am I getting this probelm? If no, where do I find the relevant codecs and how do I install them in a way that MATLAB can use? video, codec, mac, matlab MATLAB Answers — New Questions
Efficient management of interacting atoms based on their mutual distance
Dear all
Currently, I am dealing with a dataset, which I attach here in the "File.txt", file, where the first column is an atomic label ranging from 0 to 95900 (that it is, to the number of atoms-1). Each row represents the spatial coordinates of each i-th atom of the system, denoting the second, third, and fourth columns the coordinate values, in Angstroms, along x-, y-, and z-th directions. It is important to note that the fourth column, that it is, the z-th spatial coordinate, only can have two different values, 3.27645 and 9.82515. So basically, I have two monolayers at two different heights.
My goal is, for each atom, to loop over the first ten nearest interlayer atoms. That it is, for the i-th atom, to loop over the atoms with the lowest deviations in the xy plane from (xi,yi) and with different value of the z-th component. Importantly, if, for example, during the looping one founds that atom with id 4 and 560 have in common the atom with 1100 as one of the ten nearest neighbors to them, it would be very desirable that when looping in for 1100, the program knows, from the previous calculations, that atoms with label 4 and 560 are indeed two of the ten nearest neighbors to 1100.
I had in mind something like:
file=readmatrix(‘File.txt’);
counter=0;
for i=1:length(file(:,1))
indices=file(file(:,4)~=file(i,4));
atoms=file(indices,1:3);
for j=1:length(indices)
distances(j)=norm(atoms(j,2:3)-file(i,2:3)); % Angstroms
end
sorted_distances=unique(distances); % Angstroms
interacting_distances=sorted_distances(1:10); % Angstroms
interacting_atoms=find(distances<=max(interacting_distances));
for j=1:length(interacting_atoms(:,1))
counter=counter+1;
interaction_list(counter,1)=file(i,1); % i-th atom id
interaction_list(counter,2)=interacting_atoms(j,1); % j-th atom id
interaction_list(counter,3)=somevalue;
end
clear indices distances sorted_distances interacting_distances interacting_atoms
end
Obviously, this approach does not seem to be very fast/efficient. Also, this won’t meet one of the requirements I explained above: that if one finds that i-th atom interacts with j-th atom, one knows that j-th atom interacts with i-th atom (double counting). In that case, I would need to save in the interaction_list(counter,3)=-somevalue.
Any idea?Dear all
Currently, I am dealing with a dataset, which I attach here in the "File.txt", file, where the first column is an atomic label ranging from 0 to 95900 (that it is, to the number of atoms-1). Each row represents the spatial coordinates of each i-th atom of the system, denoting the second, third, and fourth columns the coordinate values, in Angstroms, along x-, y-, and z-th directions. It is important to note that the fourth column, that it is, the z-th spatial coordinate, only can have two different values, 3.27645 and 9.82515. So basically, I have two monolayers at two different heights.
My goal is, for each atom, to loop over the first ten nearest interlayer atoms. That it is, for the i-th atom, to loop over the atoms with the lowest deviations in the xy plane from (xi,yi) and with different value of the z-th component. Importantly, if, for example, during the looping one founds that atom with id 4 and 560 have in common the atom with 1100 as one of the ten nearest neighbors to them, it would be very desirable that when looping in for 1100, the program knows, from the previous calculations, that atoms with label 4 and 560 are indeed two of the ten nearest neighbors to 1100.
I had in mind something like:
file=readmatrix(‘File.txt’);
counter=0;
for i=1:length(file(:,1))
indices=file(file(:,4)~=file(i,4));
atoms=file(indices,1:3);
for j=1:length(indices)
distances(j)=norm(atoms(j,2:3)-file(i,2:3)); % Angstroms
end
sorted_distances=unique(distances); % Angstroms
interacting_distances=sorted_distances(1:10); % Angstroms
interacting_atoms=find(distances<=max(interacting_distances));
for j=1:length(interacting_atoms(:,1))
counter=counter+1;
interaction_list(counter,1)=file(i,1); % i-th atom id
interaction_list(counter,2)=interacting_atoms(j,1); % j-th atom id
interaction_list(counter,3)=somevalue;
end
clear indices distances sorted_distances interacting_distances interacting_atoms
end
Obviously, this approach does not seem to be very fast/efficient. Also, this won’t meet one of the requirements I explained above: that if one finds that i-th atom interacts with j-th atom, one knows that j-th atom interacts with i-th atom (double counting). In that case, I would need to save in the interaction_list(counter,3)=-somevalue.
Any idea? Dear all
Currently, I am dealing with a dataset, which I attach here in the "File.txt", file, where the first column is an atomic label ranging from 0 to 95900 (that it is, to the number of atoms-1). Each row represents the spatial coordinates of each i-th atom of the system, denoting the second, third, and fourth columns the coordinate values, in Angstroms, along x-, y-, and z-th directions. It is important to note that the fourth column, that it is, the z-th spatial coordinate, only can have two different values, 3.27645 and 9.82515. So basically, I have two monolayers at two different heights.
My goal is, for each atom, to loop over the first ten nearest interlayer atoms. That it is, for the i-th atom, to loop over the atoms with the lowest deviations in the xy plane from (xi,yi) and with different value of the z-th component. Importantly, if, for example, during the looping one founds that atom with id 4 and 560 have in common the atom with 1100 as one of the ten nearest neighbors to them, it would be very desirable that when looping in for 1100, the program knows, from the previous calculations, that atoms with label 4 and 560 are indeed two of the ten nearest neighbors to 1100.
I had in mind something like:
file=readmatrix(‘File.txt’);
counter=0;
for i=1:length(file(:,1))
indices=file(file(:,4)~=file(i,4));
atoms=file(indices,1:3);
for j=1:length(indices)
distances(j)=norm(atoms(j,2:3)-file(i,2:3)); % Angstroms
end
sorted_distances=unique(distances); % Angstroms
interacting_distances=sorted_distances(1:10); % Angstroms
interacting_atoms=find(distances<=max(interacting_distances));
for j=1:length(interacting_atoms(:,1))
counter=counter+1;
interaction_list(counter,1)=file(i,1); % i-th atom id
interaction_list(counter,2)=interacting_atoms(j,1); % j-th atom id
interaction_list(counter,3)=somevalue;
end
clear indices distances sorted_distances interacting_distances interacting_atoms
end
Obviously, this approach does not seem to be very fast/efficient. Also, this won’t meet one of the requirements I explained above: that if one finds that i-th atom interacts with j-th atom, one knows that j-th atom interacts with i-th atom (double counting). In that case, I would need to save in the interaction_list(counter,3)=-somevalue.
Any idea? fast and efficient double counting of data MATLAB Answers — New Questions
Microsoft List sorting by Fiscal month in power Bi Report
Hi There,
I am trying to figure out how to sort by Fiscal month (October to September) within the Integrated Power bi report within Lists.
I have a Column (choice) in text format that lists October, November, Dec, etc.
When i create the Power Bi report though lists, I want to display the monthly sales by our fiscal year (October through September) but it automatically sorts it by largest sales revenue month to smallest.
I am assuming I need to create a calculated column in lists that displays fiscal month by number IE October = 1 December =2 etc but I don’t know how to male this work.
Any help would be appreciated.
Thank you
Hi There, I am trying to figure out how to sort by Fiscal month (October to September) within the Integrated Power bi report within Lists. I have a Column (choice) in text format that lists October, November, Dec, etc. When i create the Power Bi report though lists, I want to display the monthly sales by our fiscal year (October through September) but it automatically sorts it by largest sales revenue month to smallest. I am assuming I need to create a calculated column in lists that displays fiscal month by number IE October = 1 December =2 etc but I don’t know how to male this work. Any help would be appreciated. Thank you Read More
FsLogix Implementation
Hi,
We are currently in the midst of a home drive migration from an on-prem file server to OneDrive, we will be using Folder Redirection to redirect users Known Folders to OneDrive. This presents some challenges on shared computers such as our Library and Lab computers where students could login to any computer on a given day.
Our intention was to implement FsLogix to ease some of these challenges – We’ve had to implement Profile disks due to one critical application not been compatible with the OneDrive Sync and so excluded from it. However, it’s giving me some headaches at the moment. It works perfectly in a simple config with one user logging into one machine at a time, but I’ve been given some requirements which I’m struggling to make work.
Firstly, users need to be able to login multiple concurrent sessions – in addition to physical desktops we have an RDS deployment, which is currently using UPD’s but our intention was to ditch UPD’s and also apply FsLogix Profiles to RDS, so our users maybe logged on to one or more physical desktops and then have an RDS Application open as well. I have been testing differencing disks with multiple physical computers. MS documentation suggests setting it to option 3 should allow you to connect concurrent sessions from different computers. However, after logging into the first computer, the second computer fails to connect the profile log shows:
Attempting merge of diff disk \pathRW.VHDX
RW diff disk is open in another session
RW exists, Taking RO role
then I get:
Status set to 1: Cannot load user’s profile
Further down I get:
LoadProfile failed. Version: 2.9.8884.27471 User: User. SID: SID. SessionId: 2. FrxStatus: 5 (Access is denied.)
Secondly, I’ve been given the requirement to seperate out Staff and Student Profile disks in to seperate folders – given we’re applying a computer settings GPO I don’t see how this is feasible, maybe on the desktops different reg keys via a user GPO depending on who’s logging in.
If anyone can advise on the above it would be appreciated. I would be interested to hear if anyone else has managed to configure fsLogix in a mixed Physical Virtual deployment.
Thanks
Hi,We are currently in the midst of a home drive migration from an on-prem file server to OneDrive, we will be using Folder Redirection to redirect users Known Folders to OneDrive. This presents some challenges on shared computers such as our Library and Lab computers where students could login to any computer on a given day.Our intention was to implement FsLogix to ease some of these challenges – We’ve had to implement Profile disks due to one critical application not been compatible with the OneDrive Sync and so excluded from it. However, it’s giving me some headaches at the moment. It works perfectly in a simple config with one user logging into one machine at a time, but I’ve been given some requirements which I’m struggling to make work.Firstly, users need to be able to login multiple concurrent sessions – in addition to physical desktops we have an RDS deployment, which is currently using UPD’s but our intention was to ditch UPD’s and also apply FsLogix Profiles to RDS, so our users maybe logged on to one or more physical desktops and then have an RDS Application open as well. I have been testing differencing disks with multiple physical computers. MS documentation suggests setting it to option 3 should allow you to connect concurrent sessions from different computers. However, after logging into the first computer, the second computer fails to connect the profile log shows:Attempting merge of diff disk \pathRW.VHDXRW diff disk is open in another sessionRW exists, Taking RO rolethen I get:Status set to 1: Cannot load user’s profileFurther down I get:LoadProfile failed. Version: 2.9.8884.27471 User: User. SID: SID. SessionId: 2. FrxStatus: 5 (Access is denied.)Secondly, I’ve been given the requirement to seperate out Staff and Student Profile disks in to seperate folders – given we’re applying a computer settings GPO I don’t see how this is feasible, maybe on the desktops different reg keys via a user GPO depending on who’s logging in. If anyone can advise on the above it would be appreciated. I would be interested to hear if anyone else has managed to configure fsLogix in a mixed Physical Virtual deployment.Thanks Read More
Setting up Hotmail or Outlook account on Mac Mail?
I use Apple Mac Mail and have no interest in migrating to a new app. MS has sent me messages that while Mac Mail is a modern email application, I need to remove my hotmail account from Mac Mail (done) and then re-setup the account. However, the articles tell me how to setup my hotmail/outlook account on iOS Mail and not Mac Mail and I am getting errors when trying to figure it out on my own.
My options for servers on Mac Mail include Exchange (which I think is being deprecated).
Anyone have step by step suggestions for me?
I use Apple Mac Mail and have no interest in migrating to a new app. MS has sent me messages that while Mac Mail is a modern email application, I need to remove my hotmail account from Mac Mail (done) and then re-setup the account. However, the articles tell me how to setup my hotmail/outlook account on iOS Mail and not Mac Mail and I am getting errors when trying to figure it out on my own.My options for servers on Mac Mail include Exchange (which I think is being deprecated). Anyone have step by step suggestions for me? Read More
Get-MgUser Method not found error
Hi,
Hope this is the correct forum for a question like this. If not, please let me know.
Just trying to learn Graph to do some basic Azure user account management. But right off the bat I’m running into an error I can’t seem to correct.
I connect to Graph using:
Connect-MgGraph -Scopes “User.ReadWrite.All”
The browser pops up and prompts me for credentials and I enter my global admin credentials.
Then I type:
Get-MgUser -All
And I get the following message:
Get-MgUser_List: Method not found: ‘System.Net.Http.HttpClient Microsoft.Graph.PowerShell.Authentication.Helpers.HttpHelpers.GetGraphHttpClient(Microsoft.Graph.PowerShell.Authentication.IAuthContext)’.
Odd thing is, yesterday this was working.
This is when trying to run this from Visual Studio Code. If I run it from the old PowerShell ISE, it works fine. But I read somewhere that Graph is best run from PowerShell 7, which is what is installed in my Visual Studio Code.
Any thoughts on this? Am I missing some kind of configuration setup in VSC?
Any help is greatly appreciated, thanks in advance!
Hi,Hope this is the correct forum for a question like this. If not, please let me know. Just trying to learn Graph to do some basic Azure user account management. But right off the bat I’m running into an error I can’t seem to correct. I connect to Graph using: Connect-MgGraph -Scopes “User.ReadWrite.All”The browser pops up and prompts me for credentials and I enter my global admin credentials. Then I type:Get-MgUser -All And I get the following message:Get-MgUser_List: Method not found: ‘System.Net.Http.HttpClient Microsoft.Graph.PowerShell.Authentication.Helpers.HttpHelpers.GetGraphHttpClient(Microsoft.Graph.PowerShell.Authentication.IAuthContext)’. Odd thing is, yesterday this was working. This is when trying to run this from Visual Studio Code. If I run it from the old PowerShell ISE, it works fine. But I read somewhere that Graph is best run from PowerShell 7, which is what is installed in my Visual Studio Code. Any thoughts on this? Am I missing some kind of configuration setup in VSC? Any help is greatly appreciated, thanks in advance! Read More
Graph API to check if user is still editing the document
Hi,
I am trying to find an API to see if user is still editing the document in Office Online.
Appreciate your thoughts.
Thanks,
Mahesh
Hi, I am trying to find an API to see if user is still editing the document in Office Online.Appreciate your thoughts. Thanks,Mahesh Read More
Using CBA with a device certificate on Windows Server
Hi,
will it be possible to use CBA as “filter for devices” some day?
e.g. A Windows Server which is not hybrid joined or managed by Intune could then be identified as a “valid device” which is allowed to access Admin portal.
Like a RADIUS Auth.
BR
Stephan
Hi, will it be possible to use CBA as “filter for devices” some day?e.g. A Windows Server which is not hybrid joined or managed by Intune could then be identified as a “valid device” which is allowed to access Admin portal.Like a RADIUS Auth. BRStephan Read More
Creating a new SharePoint news post type
I have a existing SharePoint site which has two types of News posts that you can post (under post type – a “news post” and “announcement”). I would like to create a new/another post type called “community news” for example.
So on the home page, I have three sections of news items, one for “news”, one for “announcements” and a third for “community news”.
Does anyone know how I can create this please?
I have a existing SharePoint site which has two types of News posts that you can post (under post type – a “news post” and “announcement”). I would like to create a new/another post type called “community news” for example.So on the home page, I have three sections of news items, one for “news”, one for “announcements” and a third for “community news”.Does anyone know how I can create this please? Read More
How can I use multiple connected variable in ADF to be pass in my Databricks notebook
Hi,
I need 3 connected variables which I need to use in my databricks notebook.
This is the context of the variables that I need:
filepath: root/sid=test1/foldername=folder1/
sid: path identifier, this is needed so only correct files in the folder will be loaded
foldername: every “sid” may have multiple folder so I need to identify the foldername. I will also use this to partition my data for duplicates
tablename: this is the target table where I need to load the files
Basically, the two variables are predefined which is stored in a csv file.
sidtablenametest1test1_tbltest2test2_tbl
My source which is in blob storage looks like this:
And this is what I want for my variable
Looking forward to your help.
Hi, I need 3 connected variables which I need to use in my databricks notebook. This is the context of the variables that I need:filepath: root/sid=test1/foldername=folder1/ sid: path identifier, this is needed so only correct files in the folder will be loadedfoldername: every “sid” may have multiple folder so I need to identify the foldername. I will also use this to partition my data for duplicatestablename: this is the target table where I need to load the files Basically, the two variables are predefined which is stored in a csv file.sidtablenametest1test1_tbltest2test2_tbl My source which is in blob storage looks like this: And this is what I want for my variable Looking forward to your help. Read More
Remote desktop licensing mode is not configured
We have a Windows 2019 Server. It is workgroup server & not part of domain. Its been running fine since 3 to 4 years. We are seeing below message when trying to RDP to server since last 3 months. 2 concurrent RDP connections are enough & we dont need more than 2. Hence, dont need any CAL or user licenses.
Please note that I have tried stopping Remote Desktop services in order to troubleshoot the issue. But, my RDP connection immediately got disconnected & I was unable to RDP. To fix this RDP issue, opened services.msc in my laptop & with ‘connect to another computer’ option, I connected to server’s services.msc & started Remote Desktop services again. I was then able to RDP. So, realized RDS need to be running in order to RDP.
Please guide on how to fix this issue so that we will be able to RDP even after grace period.
We have a Windows 2019 Server. It is workgroup server & not part of domain. Its been running fine since 3 to 4 years. We are seeing below message when trying to RDP to server since last 3 months. 2 concurrent RDP connections are enough & we dont need more than 2. Hence, dont need any CAL or user licenses.Please note that I have tried stopping Remote Desktop services in order to troubleshoot the issue. But, my RDP connection immediately got disconnected & I was unable to RDP. To fix this RDP issue, opened services.msc in my laptop & with ‘connect to another computer’ option, I connected to server’s services.msc & started Remote Desktop services again. I was then able to RDP. So, realized RDS need to be running in order to RDP.Please guide on how to fix this issue so that we will be able to RDP even after grace period. Read More
See also … blocks viewing of answer
I’m trying to see an answer that includes a screenshot apparently. The See Also pane is blocking much of the screen so I can’t see what I need to see. How do I dismiss this part I don’t need?I’m trying to see an answer that includes a screenshot apparently. The See Also pane is blocking much of the screen so I can’t see what I need to see. How do I dismiss this part I don’t need? I’m trying to see an answer that includes a screenshot apparently. The See Also pane is blocking much of the screen so I can’t see what I need to see. How do I dismiss this part I don’t need? dismiss see also MATLAB Answers — New Questions
Path Following Algorithm Line-Circle Path Path Switching Problem
Hi everyone ,
I’m trying to implement a path following algorithm for UAV (Carrot Chase) with matlab for a line-circle path.
I have already implemented the algorithm for straight line and the loiter separately and this codes are work fine. But, since they are geometrically different shapes, they have different algorithms. So we need to switch algorithms when switching between these two shapes if we want to follow this two shapes together . And i added a algorithm for that but i think it’s not working
i have a variable for that named as " guidance index". You can see this variable at the begginning of the code. When i enter this variable 1 the UAV will follow the straight line path firstly. But if i enter this variable 2, the UAV will follow the circle firstly.
You can see this in the files I attached. But the real problem starts here. After the straight line path ends, it does not follow the circular path but goes out of the path. Likewise, when I set the guidance_index variable to 2, it follows the circle path correctly, but this time it does not continue with the straight line path.
How can i fix it ?
Thanks a lot.
Best RegardsHi everyone ,
I’m trying to implement a path following algorithm for UAV (Carrot Chase) with matlab for a line-circle path.
I have already implemented the algorithm for straight line and the loiter separately and this codes are work fine. But, since they are geometrically different shapes, they have different algorithms. So we need to switch algorithms when switching between these two shapes if we want to follow this two shapes together . And i added a algorithm for that but i think it’s not working
i have a variable for that named as " guidance index". You can see this variable at the begginning of the code. When i enter this variable 1 the UAV will follow the straight line path firstly. But if i enter this variable 2, the UAV will follow the circle firstly.
You can see this in the files I attached. But the real problem starts here. After the straight line path ends, it does not follow the circular path but goes out of the path. Likewise, when I set the guidance_index variable to 2, it follows the circle path correctly, but this time it does not continue with the straight line path.
How can i fix it ?
Thanks a lot.
Best Regards Hi everyone ,
I’m trying to implement a path following algorithm for UAV (Carrot Chase) with matlab for a line-circle path.
I have already implemented the algorithm for straight line and the loiter separately and this codes are work fine. But, since they are geometrically different shapes, they have different algorithms. So we need to switch algorithms when switching between these two shapes if we want to follow this two shapes together . And i added a algorithm for that but i think it’s not working
i have a variable for that named as " guidance index". You can see this variable at the begginning of the code. When i enter this variable 1 the UAV will follow the straight line path firstly. But if i enter this variable 2, the UAV will follow the circle firstly.
You can see this in the files I attached. But the real problem starts here. After the straight line path ends, it does not follow the circular path but goes out of the path. Likewise, when I set the guidance_index variable to 2, it follows the circle path correctly, but this time it does not continue with the straight line path.
How can i fix it ?
Thanks a lot.
Best Regards matlab, path following, uav MATLAB Answers — New Questions
Setting unknown constants in equation for known data
I have data of points and equation with 3 unknown constants.I want to finds the constants that will give me the values of the data how can i do that ?I have data of points and equation with 3 unknown constants.I want to finds the constants that will give me the values of the data how can i do that ? I have data of points and equation with 3 unknown constants.I want to finds the constants that will give me the values of the data how can i do that ? adjust, equation, constants MATLAB Answers — New Questions
I am having trouble understanding this error “To assign to or create a variable in a table, the number of rows must match the height of the table.”, can someone explain?
As stated in the title, I’m struggling with getting rid of error message "To assign to or create a variable in a table, the number of rows must match the height of the table."
Here is a snippit of my original code. The line specifically causing hte probled is the line within the For loop. Sorry if this is a simple question, I do not usually work MATLAB and got thrown into this project. Thank you!
units_tbl(1,:)
values_tbl_new = vertcat(units_tbl(1,:),values_tbl);
for k = 1:length(vars_wanted)
values_tbl_new.(vars_wanted(k)) = values_tbl.(vars_wanted(k));
endAs stated in the title, I’m struggling with getting rid of error message "To assign to or create a variable in a table, the number of rows must match the height of the table."
Here is a snippit of my original code. The line specifically causing hte probled is the line within the For loop. Sorry if this is a simple question, I do not usually work MATLAB and got thrown into this project. Thank you!
units_tbl(1,:)
values_tbl_new = vertcat(units_tbl(1,:),values_tbl);
for k = 1:length(vars_wanted)
values_tbl_new.(vars_wanted(k)) = values_tbl.(vars_wanted(k));
end As stated in the title, I’m struggling with getting rid of error message "To assign to or create a variable in a table, the number of rows must match the height of the table."
Here is a snippit of my original code. The line specifically causing hte probled is the line within the For loop. Sorry if this is a simple question, I do not usually work MATLAB and got thrown into this project. Thank you!
units_tbl(1,:)
values_tbl_new = vertcat(units_tbl(1,:),values_tbl);
for k = 1:length(vars_wanted)
values_tbl_new.(vars_wanted(k)) = values_tbl.(vars_wanted(k));
end matlab MATLAB Answers — New Questions
Force SSL DB Connection
As per AWS Guidelines we can force all connections to DB to use SSL & Client doesn’t have to do any work to use SSL. Does it mean that whatever value we pass on to Connection String for following parameters, it’ll still use SSL or we need to be specific about both these parameters?
TrustServerCertificate=true;Encrypt=true
Kindly advice.
As per AWS Guidelines we can force all connections to DB to use SSL & Client doesn’t have to do any work to use SSL. Does it mean that whatever value we pass on to Connection String for following parameters, it’ll still use SSL or we need to be specific about both these parameters? TrustServerCertificate=true;Encrypt=true Kindly advice. Read More
Teams Forms
I created a form titled ‘Daily Timesheet’ for my staff to fill out the activities they have been doing daily. I have laid out the date component at the top, comprising month, day and year. My question is, if I would like to obtain the number of week of a month automatically as per the date they have filled out on the top component, what should I actually do? Is there any specific calculated value, validation or something else that I could input to enable the week number appearing automatically as the month, day and year have been filled out?
I created a form titled ‘Daily Timesheet’ for my staff to fill out the activities they have been doing daily. I have laid out the date component at the top, comprising month, day and year. My question is, if I would like to obtain the number of week of a month automatically as per the date they have filled out on the top component, what should I actually do? Is there any specific calculated value, validation or something else that I could input to enable the week number appearing automatically as the month, day and year have been filled out? Read More
Understanding the Right-Click Issue in this Image
In Windows 11, when the Spotlight background feature is enabled, you can access additional information about the picture by right-clicking the Learn about this picture icon. A dialog box will appear with relevant details.
However, if you switch to the classic context menu by modifying the registry settings, right-clicking on Learn about this picture will only display an Open option, similar to double-clicking. This opens a full-screen web page without the convenient shortcuts available in the default pop-up box.
Unfortunately, I could not discover any workaround to reinstate the pop-up functionality while using the classic context menu. If there is a way to achieve this, I may have overlooked it. Let me know if you need further assistance.
In Windows 11, when the Spotlight background feature is enabled, you can access additional information about the picture by right-clicking the Learn about this picture icon. A dialog box will appear with relevant details.However, if you switch to the classic context menu by modifying the registry settings, right-clicking on Learn about this picture will only display an Open option, similar to double-clicking. This opens a full-screen web page without the convenient shortcuts available in the default pop-up box.Unfortunately, I could not discover any workaround to reinstate the pop-up functionality while using the classic context menu. If there is a way to achieve this, I may have overlooked it. Let me know if you need further assistance. Read More
Create a Taskbar Shortcut for Notepad
I have returned once more!
I have screenshots of a desktop shortcut for a Network Attached Storage device’s settings page that I want to pin to either Start or the Taskbar. I recently discovered with your guidance that for certain shortcuts, the term “Explorer” needs to be included before the shortcut’s target. However, there is no such option available for this particular shortcut. In the past, you could drag these shortcuts onto the taskbar in Windows 10 and earlier versions, but that no longer seems to be possible. Can someone offer assistance, please?
I have returned once more! I have screenshots of a desktop shortcut for a Network Attached Storage device’s settings page that I want to pin to either Start or the Taskbar. I recently discovered with your guidance that for certain shortcuts, the term “Explorer” needs to be included before the shortcut’s target. However, there is no such option available for this particular shortcut. In the past, you could drag these shortcuts onto the taskbar in Windows 10 and earlier versions, but that no longer seems to be possible. Can someone offer assistance, please? Read More
System Issue After Reboot: Seeking Assistance in Identifying the Root Cause
Today, when I rebooted my system, a strange issue occurred. Despite running scans that detected no problems, including chkdsk, sfc, and using Avast antivirus, I encountered a glitch where Explorer would not respond.
After rebooting with diagnostic level boot via msconfig and disabling all programs except Microsoft’s services, Explorer worked fine. However, as I gradually enabled Microsoft services, the issue reappeared. I have repeated this cycle multiple times but haven’t been able to identify the specific service causing the problem.
I am hesitant to perform a clean install as I recently switched from the insider to the public version, and I never experienced this issue while on the insider versions. If anyone has any insights or solutions to this perplexing problem, I would greatly appreciate it. The image attached shows how Explorer appears when all Microsoft services are running, contrasting with the expected minimal appearance when only essential services are active. Thank you in advance for any assistance provided.
Today, when I rebooted my system, a strange issue occurred. Despite running scans that detected no problems, including chkdsk, sfc, and using Avast antivirus, I encountered a glitch where Explorer would not respond. After rebooting with diagnostic level boot via msconfig and disabling all programs except Microsoft’s services, Explorer worked fine. However, as I gradually enabled Microsoft services, the issue reappeared. I have repeated this cycle multiple times but haven’t been able to identify the specific service causing the problem. I am hesitant to perform a clean install as I recently switched from the insider to the public version, and I never experienced this issue while on the insider versions. If anyone has any insights or solutions to this perplexing problem, I would greatly appreciate it. The image attached shows how Explorer appears when all Microsoft services are running, contrasting with the expected minimal appearance when only essential services are active. Thank you in advance for any assistance provided. Read More