Month: September 2024
Error in save to mat file
I have got following error while saving the agent for a DQN-RL problem. The error doesnt pop-up always, however, most of the time the saved .mat file is corrupt Similar problem in another PC too. Both the PC is having enough space in the HDD and of 64GB RAM. Sometimes it saves successfully with each MAT file of 1GB size,otherwise, the corrupted MAT files are in KBs.
Version: MATLAB 2021a
Error:
Error using save
Unable to save file ‘C:UsersDocumentsMATLAB 2021initial_agent.mat’. The file could not be closed, and might now be corrupt.
Error in DQN__Training (line 101)
save("initial_agent","agent")I have got following error while saving the agent for a DQN-RL problem. The error doesnt pop-up always, however, most of the time the saved .mat file is corrupt Similar problem in another PC too. Both the PC is having enough space in the HDD and of 64GB RAM. Sometimes it saves successfully with each MAT file of 1GB size,otherwise, the corrupted MAT files are in KBs.
Version: MATLAB 2021a
Error:
Error using save
Unable to save file ‘C:UsersDocumentsMATLAB 2021initial_agent.mat’. The file could not be closed, and might now be corrupt.
Error in DQN__Training (line 101)
save("initial_agent","agent") I have got following error while saving the agent for a DQN-RL problem. The error doesnt pop-up always, however, most of the time the saved .mat file is corrupt Similar problem in another PC too. Both the PC is having enough space in the HDD and of 64GB RAM. Sometimes it saves successfully with each MAT file of 1GB size,otherwise, the corrupted MAT files are in KBs.
Version: MATLAB 2021a
Error:
Error using save
Unable to save file ‘C:UsersDocumentsMATLAB 2021initial_agent.mat’. The file could not be closed, and might now be corrupt.
Error in DQN__Training (line 101)
save("initial_agent","agent") save MATLAB Answers — New Questions
Segregating an EMG signal based on activation
Hi everyone,
I have two arrays, one of which stores EMG readings in mV from a hand and the second storing time in seconds. I have plotted these against eachother and am now trying to segregate the signal into separate cycles. I want to segragate the signal from the start of 1 activity to the beginning of the next activation (please see attached photo). Please could you give me any ideas of how I might do this.
Thanks,Hi everyone,
I have two arrays, one of which stores EMG readings in mV from a hand and the second storing time in seconds. I have plotted these against eachother and am now trying to segregate the signal into separate cycles. I want to segragate the signal from the start of 1 activity to the beginning of the next activation (please see attached photo). Please could you give me any ideas of how I might do this.
Thanks, Hi everyone,
I have two arrays, one of which stores EMG readings in mV from a hand and the second storing time in seconds. I have plotted these against eachother and am now trying to segregate the signal into separate cycles. I want to segragate the signal from the start of 1 activity to the beginning of the next activation (please see attached photo). Please could you give me any ideas of how I might do this.
Thanks, emg, signal processing MATLAB Answers — New Questions
Newly listed Indian Stocks not showing up in Excel (Office 365)
The last update was on the date “23-April-2024” for the listed stock “RAMDEVBABA SOLVENT LIMITED (XNSE:RBS)”.
After this no listed stocks were added / updated in Excel
23-Apr-24 Ramdevbaba Solvent Ltd – XNSE:RBS – Data Available
26-Apr-24 Faalcon Concepts Ltd – XNSE:FAALCON – Not Available
02-Jul-24 Allied Blenders & Distillers Ltd – XNSE:ABDL – Not Available
08-Aug-24 Ceigall India Ltd – XNSE:CEIGALL – Not Available
The last update was on the date “23-April-2024” for the listed stock “RAMDEVBABA SOLVENT LIMITED (XNSE:RBS)”.After this no listed stocks were added / updated in Excel 23-Apr-24 Ramdevbaba Solvent Ltd – XNSE:RBS – Data Available26-Apr-24 Faalcon Concepts Ltd – XNSE:FAALCON – Not Available02-Jul-24 Allied Blenders & Distillers Ltd – XNSE:ABDL – Not Available08-Aug-24 Ceigall India Ltd – XNSE:CEIGALL – Not Available Read More
Replicate the Event-Driven Task in External Mode
I am trying to replicate the simulation results of the event-driven task in external mode. I ran in R2022a. My board is Zedboard. The solver is in fixed step.
After building and running it, it has several warnings, including
Saving external mode simulation output as a single object is not supported because the workspace variable ‘out’ is not created during model code execution. To suppress the warning, set ‘ReturnWorkspaceOutputs’ to ‘off’.
No data has been selected for uploading.
When I open Data Inspector, the processed data is always zero. How to make the process data to generate the results like simulation?I am trying to replicate the simulation results of the event-driven task in external mode. I ran in R2022a. My board is Zedboard. The solver is in fixed step.
After building and running it, it has several warnings, including
Saving external mode simulation output as a single object is not supported because the workspace variable ‘out’ is not created during model code execution. To suppress the warning, set ‘ReturnWorkspaceOutputs’ to ‘off’.
No data has been selected for uploading.
When I open Data Inspector, the processed data is always zero. How to make the process data to generate the results like simulation? I am trying to replicate the simulation results of the event-driven task in external mode. I ran in R2022a. My board is Zedboard. The solver is in fixed step.
After building and running it, it has several warnings, including
Saving external mode simulation output as a single object is not supported because the workspace variable ‘out’ is not created during model code execution. To suppress the warning, set ‘ReturnWorkspaceOutputs’ to ‘off’.
No data has been selected for uploading.
When I open Data Inspector, the processed data is always zero. How to make the process data to generate the results like simulation? external mode, event-driven task MATLAB Answers — New Questions
test test test test
testtest test testing test, testing test s MATLAB Answers — New Questions
AD-FMCOMMS5 and ZC702 MATLAB Support
Hi,
We are currently conducting a adaptive null steering/beamforming project and decided to use AD-FMCOMMS5 and ZC706 due to direct MathWorks integration support. During first phase we want to capture RF data and post-process it in MATLAB. ZC706 is now obsolete and that leads us to use different SoC boards like ZC702.
There is a uncertainty about AD-FMCOMMS5 and ZC702, in particular topics MATLAB staff says this system "potentially" works but in other topics people say these boards are not supported for MathWorks integration.
Is there any way that i get direct approval about AD-FMCOMMS5 and ZC702 integration with Mathworks from MATLAB staff or researchers ?
Thanks.Hi,
We are currently conducting a adaptive null steering/beamforming project and decided to use AD-FMCOMMS5 and ZC706 due to direct MathWorks integration support. During first phase we want to capture RF data and post-process it in MATLAB. ZC706 is now obsolete and that leads us to use different SoC boards like ZC702.
There is a uncertainty about AD-FMCOMMS5 and ZC702, in particular topics MATLAB staff says this system "potentially" works but in other topics people say these boards are not supported for MathWorks integration.
Is there any way that i get direct approval about AD-FMCOMMS5 and ZC702 integration with Mathworks from MATLAB staff or researchers ?
Thanks. Hi,
We are currently conducting a adaptive null steering/beamforming project and decided to use AD-FMCOMMS5 and ZC706 due to direct MathWorks integration support. During first phase we want to capture RF data and post-process it in MATLAB. ZC706 is now obsolete and that leads us to use different SoC boards like ZC702.
There is a uncertainty about AD-FMCOMMS5 and ZC702, in particular topics MATLAB staff says this system "potentially" works but in other topics people say these boards are not supported for MathWorks integration.
Is there any way that i get direct approval about AD-FMCOMMS5 and ZC702 integration with Mathworks from MATLAB staff or researchers ?
Thanks. beamforming, null steering, zynq, zc702, zc706, soc, fmcomms5, ad-fmcomms5 MATLAB Answers — New Questions
Can’t see the Microsoft insider option
I am new to the insider program. I have installed Microsoft 365 Apps for Enterprise using ODT and setting the cannel to Current (preview). However, I am still unable to see the Insider option on my Office apps. What am I missing?
I am new to the insider program. I have installed Microsoft 365 Apps for Enterprise using ODT and setting the cannel to Current (preview). However, I am still unable to see the Insider option on my Office apps. What am I missing? Read More
name mismatch error when build the model using embedded coder
when I build the model I get the name mismatch error for two calibratable signals . The signals are in the data dictionary , and I use them in the model by pulling from the dd with the same name . can anyone point me out what possibly cause this error?when I build the model I get the name mismatch error for two calibratable signals . The signals are in the data dictionary , and I use them in the model by pulling from the dd with the same name . can anyone point me out what possibly cause this error? when I build the model I get the name mismatch error for two calibratable signals . The signals are in the data dictionary , and I use them in the model by pulling from the dd with the same name . can anyone point me out what possibly cause this error? simulink, embedded coder, build model MATLAB Answers — New Questions
how to display (3000x4000x4) matrix as image in matlab
I have created a 3000x4000x4 matrix in matlab, when I try to use image() function to display it as a picture, matlab told me image() function could only display m*n or m*n*3 matrix. So how could I display m*n*4 matrix as a picture? Many thanks.I have created a 3000x4000x4 matrix in matlab, when I try to use image() function to display it as a picture, matlab told me image() function could only display m*n or m*n*3 matrix. So how could I display m*n*4 matrix as a picture? Many thanks. I have created a 3000x4000x4 matrix in matlab, when I try to use image() function to display it as a picture, matlab told me image() function could only display m*n or m*n*3 matrix. So how could I display m*n*4 matrix as a picture? Many thanks. display m*n*4 matrix as a image MATLAB Answers — New Questions
Writing legends for MATLAB figures with subscripts
What is the solution for writing legends for MATLAB figures with subscripts?What is the solution for writing legends for MATLAB figures with subscripts? What is the solution for writing legends for MATLAB figures with subscripts? figure, legend, subscript MATLAB Answers — New Questions
Comments hidden by Track Changes
In the last few weeks, if I have Track Changes and Comments on the same text, the Comments are now hidden. The only way to reveal them is to switch to Simple Markup.
I am an editor who is trying to communicate with authors — I need them to see both the change (Track Changes) and the reason for the change (Comment) at the same time.
If a default setting has changed that I can fix, then I would love to know about it, but I suspect this is a new “feature” (or a bug caused by one) — if so, please fix this!
Thanks
In the last few weeks, if I have Track Changes and Comments on the same text, the Comments are now hidden. The only way to reveal them is to switch to Simple Markup.I am an editor who is trying to communicate with authors — I need them to see both the change (Track Changes) and the reason for the change (Comment) at the same time. If a default setting has changed that I can fix, then I would love to know about it, but I suspect this is a new “feature” (or a bug caused by one) — if so, please fix this!Thanks Read More
People with the highest access on Sharepoint having issues viewing some folders
Hello,
We have three company directors and they all have the same full control permissions to be able to access/edit anything on Sharepoint.
Sometimes when one of the directors creates a folder it doesn’t allow the other directors to access it even though they all have the same highest access permissions. The folders that do this seem to be the ones that are missing the lock icon and those folders can not be seen by other directors.
Any insight and help would be greatly appreciated.
Hello, We have three company directors and they all have the same full control permissions to be able to access/edit anything on Sharepoint. Sometimes when one of the directors creates a folder it doesn’t allow the other directors to access it even though they all have the same highest access permissions. The folders that do this seem to be the ones that are missing the lock icon and those folders can not be seen by other directors. Any insight and help would be greatly appreciated. Read More
Extraction of the spatial coordinates of a curve and calculation of the normal line to each of its points
Hello everyone
I have the following dataset: https://www.dropbox.com/scl/fo/3dthvtj2ex9gmhsu3lkrq/AJt2KVYls3YM89v5SRmSEWk?rlkey=r63d0ej2sv7ku8i4ardla5pvi&dl=0, which gives rise to the data on the panel mz of the figure below:
My idea is to extract the (a,b) set of points that define the whole right side of the whitish curve. Once that it is done, I will need to extract, for each of the points of this curve, the normal line along the track (that it is, the (a,b) coordinates together with the corresponding values of the mz values).
Any ideas on how to do this efficiently?
Additional information (September 3, 2024)
When I talk about the normal to the tangent at each point of the curve mz, I am thinking about something like this:
where the green X symbol corresponds to a certain point of the curve, the black line to the tangent to the curve at that specific (x,y) point, and the dashed yellow line refers to the normal to the tangent line that (x,y) point. I would be interested in extracting the mz value all along that normal line inside the boundaries of the sample. So I would say that some grid data process would be important to make if not too many points actually exist in the given data set.Hello everyone
I have the following dataset: https://www.dropbox.com/scl/fo/3dthvtj2ex9gmhsu3lkrq/AJt2KVYls3YM89v5SRmSEWk?rlkey=r63d0ej2sv7ku8i4ardla5pvi&dl=0, which gives rise to the data on the panel mz of the figure below:
My idea is to extract the (a,b) set of points that define the whole right side of the whitish curve. Once that it is done, I will need to extract, for each of the points of this curve, the normal line along the track (that it is, the (a,b) coordinates together with the corresponding values of the mz values).
Any ideas on how to do this efficiently?
Additional information (September 3, 2024)
When I talk about the normal to the tangent at each point of the curve mz, I am thinking about something like this:
where the green X symbol corresponds to a certain point of the curve, the black line to the tangent to the curve at that specific (x,y) point, and the dashed yellow line refers to the normal to the tangent line that (x,y) point. I would be interested in extracting the mz value all along that normal line inside the boundaries of the sample. So I would say that some grid data process would be important to make if not too many points actually exist in the given data set. Hello everyone
I have the following dataset: https://www.dropbox.com/scl/fo/3dthvtj2ex9gmhsu3lkrq/AJt2KVYls3YM89v5SRmSEWk?rlkey=r63d0ej2sv7ku8i4ardla5pvi&dl=0, which gives rise to the data on the panel mz of the figure below:
My idea is to extract the (a,b) set of points that define the whole right side of the whitish curve. Once that it is done, I will need to extract, for each of the points of this curve, the normal line along the track (that it is, the (a,b) coordinates together with the corresponding values of the mz values).
Any ideas on how to do this efficiently?
Additional information (September 3, 2024)
When I talk about the normal to the tangent at each point of the curve mz, I am thinking about something like this:
where the green X symbol corresponds to a certain point of the curve, the black line to the tangent to the curve at that specific (x,y) point, and the dashed yellow line refers to the normal to the tangent line that (x,y) point. I would be interested in extracting the mz value all along that normal line inside the boundaries of the sample. So I would say that some grid data process would be important to make if not too many points actually exist in the given data set. data pattern extraction, normal lines to a curve MATLAB Answers — New Questions
(Enhancement Request)vision.VideoPlayer should be presented as a more modern player
In the past two years, MATHWORKS has updated the image viewer and audio viewer, giving them a more modern interface with features like play, pause, fast forward, and some interactive tools that are more commonly found in typical third-party players. However, the video player has not seen any updates. For instance, the vision.VideoPlayer could benefit from a more modern player interface. Perhaps I haven’t found a suitable built-in player yet. It would be great if there were support for custom image processing and audio processing algorithms that could be played in a more modern interface in real time.
Additionally, I found it quite challenging to develop a modern video player from scratch in App Designer.
—————————————————————————————————————–
BTW,the following picture shows the built-in function uihtml function showing a more modern playback interface with controls for play, pause and so on. But can not add real-time image processing algorithms.In the past two years, MATHWORKS has updated the image viewer and audio viewer, giving them a more modern interface with features like play, pause, fast forward, and some interactive tools that are more commonly found in typical third-party players. However, the video player has not seen any updates. For instance, the vision.VideoPlayer could benefit from a more modern player interface. Perhaps I haven’t found a suitable built-in player yet. It would be great if there were support for custom image processing and audio processing algorithms that could be played in a more modern interface in real time.
Additionally, I found it quite challenging to develop a modern video player from scratch in App Designer.
—————————————————————————————————————–
BTW,the following picture shows the built-in function uihtml function showing a more modern playback interface with controls for play, pause and so on. But can not add real-time image processing algorithms. In the past two years, MATHWORKS has updated the image viewer and audio viewer, giving them a more modern interface with features like play, pause, fast forward, and some interactive tools that are more commonly found in typical third-party players. However, the video player has not seen any updates. For instance, the vision.VideoPlayer could benefit from a more modern player interface. Perhaps I haven’t found a suitable built-in player yet. It would be great if there were support for custom image processing and audio processing algorithms that could be played in a more modern interface in real time.
Additionally, I found it quite challenging to develop a modern video player from scratch in App Designer.
—————————————————————————————————————–
BTW,the following picture shows the built-in function uihtml function showing a more modern playback interface with controls for play, pause and so on. But can not add real-time image processing algorithms. video player, image processing, computer vision, appdesigner MATLAB Answers — New Questions
In Sharepoint why is WORD editing changes live but PDF editing changes (mark ups) need to be saved?
Hi everyone.
I have an issue that I cant seem to work around and hoping someone has a suggestion.
Our company uses Sharepoint and as we all work from rural locations we regularly use Sharepoint WORD to create single documents together as we can see the live changes/additions we each make which is very helpful in collaborating on the same document at the same time.
However, when you open a PDF through Sharepoint and click ‘EDIT’ you cannot see live changes/mark ups being made in real time like you can in WORD. Does anyone know why this isn’t live? Members of our team can only see the changes/markups made when a single user has finished and has saved their work from the PDF editing screen. This has caused some issues with people editing at the same time and not realising someone else was doing the same thing etc.
To edit PDFs in Sharepoint I’m referring to when you open the PDF and click ‘edit’ on the far top right of this screen, which allows you to mark up with text, pen etc.
It would be so helpful if there was a way to be able to do these PDFs markups in a live format so other team members can see these changes as they happen in real time.
Any ideas or insights would be appreciated.
Hi everyone. I have an issue that I cant seem to work around and hoping someone has a suggestion. Our company uses Sharepoint and as we all work from rural locations we regularly use Sharepoint WORD to create single documents together as we can see the live changes/additions we each make which is very helpful in collaborating on the same document at the same time. However, when you open a PDF through Sharepoint and click ‘EDIT’ you cannot see live changes/mark ups being made in real time like you can in WORD. Does anyone know why this isn’t live? Members of our team can only see the changes/markups made when a single user has finished and has saved their work from the PDF editing screen. This has caused some issues with people editing at the same time and not realising someone else was doing the same thing etc. To edit PDFs in Sharepoint I’m referring to when you open the PDF and click ‘edit’ on the far top right of this screen, which allows you to mark up with text, pen etc. It would be so helpful if there was a way to be able to do these PDFs markups in a live format so other team members can see these changes as they happen in real time. Any ideas or insights would be appreciated. Read More
Get file details attached to email
Hello Team,
I woud like to know if API : `GET /me/messages/{id}/attachments/{id}` can return list of all type of attachements i.e
Local attached file
File shared from one drive business
File shared from share point
Also, does reponse will give the location of the file ( i.e sharepopint and ODB url ) , so that user can download them using that link
I tried sending sample email to myself and when i tried , I see only local attached file but not other details . Also, response does not contain any location details but encrypted content
Hello Team,
I woud like to know if API : `GET /me/messages/{id}/attachments/{id}` can return list of all type of attachements i.e
Local attached file
File shared from one drive business
File shared from share point
Also, does reponse will give the location of the file ( i.e sharepopint and ODB url ) , so that user can download them using that link
I tried sending sample email to myself and when i tried , I see only local attached file but not other details . Also, response does not contain any location details but encrypted content Read More
Phase Plots Dropping when quadrant changes
I am trying to plot the phase of a vibratory system with base excitation. I did the magnitude, but the phase is giving me problems. How can I make my equations so the phase equations are continuous and do not suddenly drop when the quadrant changes? atan2d does not show up with anything. Using atand shows the below result:
It should look something the phase plot on the top right of this:
Heres my code:I am trying to plot the phase of a vibratory system with base excitation. I did the magnitude, but the phase is giving me problems. How can I make my equations so the phase equations are continuous and do not suddenly drop when the quadrant changes? atan2d does not show up with anything. Using atand shows the below result:
It should look something the phase plot on the top right of this:
Heres my code: I am trying to plot the phase of a vibratory system with base excitation. I did the magnitude, but the phase is giving me problems. How can I make my equations so the phase equations are continuous and do not suddenly drop when the quadrant changes? atan2d does not show up with anything. Using atand shows the below result:
It should look something the phase plot on the top right of this:
Heres my code: phase, vibrations, matlab MATLAB Answers — New Questions
I have a set of .mat files with random names. I want to import all those files from the directory using loop. Each file has 4 columns and I want to vertically concatenate each column from all the imported files. Please help with the code.
I have a set of .mat files with random names. I want to import all those files from the directory using loop. Each file has 4 columns and I want to vertically concatenate each column from all the imported files. Please help with the code.I have a set of .mat files with random names. I want to import all those files from the directory using loop. Each file has 4 columns and I want to vertically concatenate each column from all the imported files. Please help with the code. I have a set of .mat files with random names. I want to import all those files from the directory using loop. Each file has 4 columns and I want to vertically concatenate each column from all the imported files. Please help with the code. multiple file import, concatenate MATLAB Answers — New Questions
How to correctly adjust the FaceColor property of patch objects in a figure with a legend?
Hello community,
I am having an issue adjusting the FaceColor property of patch objects in a figure. That is, only the legend is updated when I try to change the color of a patch object. My issue can be replicated with the code below:
% Load the figure
openfig(‘cylinder.fig’);
The figure contains four patch objects combined to form a cylindrical shape. The figure also contains a legend.
When I save the patch objects to the variable patches I do not receive any errors:
% Get all patch objects in the figure
patches = findobj(gcf,’Type’,’patch’);
disp([‘The number of patch objects is ‘ num2str(length(patches)) ‘.’])
However, when I try to change the face color of one of the patch objects, the color is only changed inside of the legend. For example,
patches(1).FaceColor = ‘r’;
results in the following visual change:
My best guess is that the findobj() function is only identifying the patch objects in the legend and not the objects composing the cylinder, but I am not sure how to confirm this.
My question: Am I making a programmatic mistake? Or is there a bug in how MATLAB is applying the color change operation to the patch object? Thank you in advance for the help!
P.S. I am using MATLAB Online for my problem, in case that makes a difference.Hello community,
I am having an issue adjusting the FaceColor property of patch objects in a figure. That is, only the legend is updated when I try to change the color of a patch object. My issue can be replicated with the code below:
% Load the figure
openfig(‘cylinder.fig’);
The figure contains four patch objects combined to form a cylindrical shape. The figure also contains a legend.
When I save the patch objects to the variable patches I do not receive any errors:
% Get all patch objects in the figure
patches = findobj(gcf,’Type’,’patch’);
disp([‘The number of patch objects is ‘ num2str(length(patches)) ‘.’])
However, when I try to change the face color of one of the patch objects, the color is only changed inside of the legend. For example,
patches(1).FaceColor = ‘r’;
results in the following visual change:
My best guess is that the findobj() function is only identifying the patch objects in the legend and not the objects composing the cylinder, but I am not sure how to confirm this.
My question: Am I making a programmatic mistake? Or is there a bug in how MATLAB is applying the color change operation to the patch object? Thank you in advance for the help!
P.S. I am using MATLAB Online for my problem, in case that makes a difference. Hello community,
I am having an issue adjusting the FaceColor property of patch objects in a figure. That is, only the legend is updated when I try to change the color of a patch object. My issue can be replicated with the code below:
% Load the figure
openfig(‘cylinder.fig’);
The figure contains four patch objects combined to form a cylindrical shape. The figure also contains a legend.
When I save the patch objects to the variable patches I do not receive any errors:
% Get all patch objects in the figure
patches = findobj(gcf,’Type’,’patch’);
disp([‘The number of patch objects is ‘ num2str(length(patches)) ‘.’])
However, when I try to change the face color of one of the patch objects, the color is only changed inside of the legend. For example,
patches(1).FaceColor = ‘r’;
results in the following visual change:
My best guess is that the findobj() function is only identifying the patch objects in the legend and not the objects composing the cylinder, but I am not sure how to confirm this.
My question: Am I making a programmatic mistake? Or is there a bug in how MATLAB is applying the color change operation to the patch object? Thank you in advance for the help!
P.S. I am using MATLAB Online for my problem, in case that makes a difference. plotting MATLAB Answers — New Questions
I cannot delete a ldb file in Microsoft Access
An ldb file recently appeared in my library, but I do not know how it got there. Now, I cannot modify the database as I get a message about the ldb file being open. Please help! Thanks!
An ldb file recently appeared in my library, but I do not know how it got there. Now, I cannot modify the database as I get a message about the ldb file being open. Please help! Thanks! Read More