Month: September 2024
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
My hotmail account is supposed to no longer be supported as of Sept. 16, 2024. What do I need to do?
I access Outlook/Hotmail on my iMac and iPhone. Apparently the Basic security progrm is no longer going to work after Sept. 16. What am I supposed to do? I see directions for Outlook for Windows, but I am on an IOS system.
I access Outlook/Hotmail on my iMac and iPhone. Apparently the Basic security progrm is no longer going to work after Sept. 16. What am I supposed to do? I see directions for Outlook for Windows, but I am on an IOS system. Read More
How to submit support tickets?
Hi, folks.
How does one submit a support request for the Exchange Online PowerShell v3 module?
The following article instructs you what not to do, but provides zero detail on what to do:
About the Exchange Online PowerShell V3 module | Microsoft Learn
Similarly, the following articles highlight the “correct” process, however, it doesn’t work:
Get support – Microsoft 365 admin | Microsoft LearnHow can I get support for M365 Exchange Online? – Microsoft Q&A
Where having used the above option, you get to the end and are shown the following completely unrelated message with the support request having been lost in the process:
The bug I’m trying to submit is outlined here:
UShort Error with the Exchange Module – Microsoft Community Hub
Cheers,
Lain
Hi, folks. How does one submit a support request for the Exchange Online PowerShell v3 module? The following article instructs you what not to do, but provides zero detail on what to do: About the Exchange Online PowerShell V3 module | Microsoft Learn Similarly, the following articles highlight the “correct” process, however, it doesn’t work: Get support – Microsoft 365 admin | Microsoft LearnHow can I get support for M365 Exchange Online? – Microsoft Q&A Where having used the above option, you get to the end and are shown the following completely unrelated message with the support request having been lost in the process: The bug I’m trying to submit is outlined here: UShort Error with the Exchange Module – Microsoft Community Hub Cheers,Lain Read More
Cisco FTD logs to Sentinel without estreamer
HI Team,
We have an project related to sending Ciscon FTD logs to Sentinel ,
When we explore about the possibilities there is an additional functionalities which we need to create and maintain the server which is estreamer eNcore server.
Cisco is suggested the below operations guide for sending Cisco FTD logs.
is there any aleternate solution available for ingesting Cisco FTD logs using Syslog itself via Sentinel.?
Appreciated responses.
Regards,
Jagadeesh Gunasekaran
HI Team, We have an project related to sending Ciscon FTD logs to Sentinel , When we explore about the possibilities there is an additional functionalities which we need to create and maintain the server which is estreamer eNcore server. Cisco is suggested the below operations guide for sending Cisco FTD logs. https://www.cisco.com/c/en/us/td/docs/security/firepower/670/api/eStreamer_enCore/eStreamereNcoreSentinelOperationsGuide_409.html is there any aleternate solution available for ingesting Cisco FTD logs using Syslog itself via Sentinel.? Appreciated responses. Regards,Jagadeesh Gunasekaran Read More
Why did my code break after adding a class definition?
I have some code that interfaces with external hardware via loadlibrary to a vendor-supplied DLL. After getting everything working the way I wanted, I decided to refactor to make future maintainability easier. As part of this process, I defined a class params.m that holds experimental parameters (e.g. image height, image width, number of frames,…). Previously, I had just made a params struct and added stuff to it as needed (without a class definition). I also added arguments to my function definitions, e.g.:
function configure(inParams, boardNumber)
arguments
inParams (1,1) params
boardNumber (1,1) double {mustBeInteger, mustBePositive}
end
% call hardware functions from DLL
end
In doing so, this broke my experiment. The Matlab code is shared between two systems, one that has a single board and one that has two boards so configure is called in a for loop:
for boardId = 1 : numBoards
configure(inParams,boardId);
end
% do stuff
The code refactor broke my experiment, but only on the system that has two boards. While debugging, I noticed that inserting an arbitrary pause made the two-board system work every other time the code was run (which is better than never, but still 50%). After that realization, I tried commenting out the arguments definition:
function configure(inParams, boardNumber)
% arguments
% inParams (1,1) params
% boardNumber (1,1) double {mustBeInteger, mustBePositive}
% end
% call hardware functions from DLL
end
Which removed the need for the arbitrary pause, but still only got the two-board system to work correctly on every other function call (always works on first try, and from then on any odd-numbered run will work). It seems as though there is some kind of under-the-hood optimization(?) that is ocurring after I added a class definition that breaks things.
Does anyone have other ideas what the issue might be and/or how I can disable optimizations for that one function call (which appears to be impossible based on my reading). I recognize this is an exceptionally odd error and I’m happy to provide more information if that would be useful. I have also reached out to the hardware manufacturer to see if they have any suggestions for what might be causing this.I have some code that interfaces with external hardware via loadlibrary to a vendor-supplied DLL. After getting everything working the way I wanted, I decided to refactor to make future maintainability easier. As part of this process, I defined a class params.m that holds experimental parameters (e.g. image height, image width, number of frames,…). Previously, I had just made a params struct and added stuff to it as needed (without a class definition). I also added arguments to my function definitions, e.g.:
function configure(inParams, boardNumber)
arguments
inParams (1,1) params
boardNumber (1,1) double {mustBeInteger, mustBePositive}
end
% call hardware functions from DLL
end
In doing so, this broke my experiment. The Matlab code is shared between two systems, one that has a single board and one that has two boards so configure is called in a for loop:
for boardId = 1 : numBoards
configure(inParams,boardId);
end
% do stuff
The code refactor broke my experiment, but only on the system that has two boards. While debugging, I noticed that inserting an arbitrary pause made the two-board system work every other time the code was run (which is better than never, but still 50%). After that realization, I tried commenting out the arguments definition:
function configure(inParams, boardNumber)
% arguments
% inParams (1,1) params
% boardNumber (1,1) double {mustBeInteger, mustBePositive}
% end
% call hardware functions from DLL
end
Which removed the need for the arbitrary pause, but still only got the two-board system to work correctly on every other function call (always works on first try, and from then on any odd-numbered run will work). It seems as though there is some kind of under-the-hood optimization(?) that is ocurring after I added a class definition that breaks things.
Does anyone have other ideas what the issue might be and/or how I can disable optimizations for that one function call (which appears to be impossible based on my reading). I recognize this is an exceptionally odd error and I’m happy to provide more information if that would be useful. I have also reached out to the hardware manufacturer to see if they have any suggestions for what might be causing this. I have some code that interfaces with external hardware via loadlibrary to a vendor-supplied DLL. After getting everything working the way I wanted, I decided to refactor to make future maintainability easier. As part of this process, I defined a class params.m that holds experimental parameters (e.g. image height, image width, number of frames,…). Previously, I had just made a params struct and added stuff to it as needed (without a class definition). I also added arguments to my function definitions, e.g.:
function configure(inParams, boardNumber)
arguments
inParams (1,1) params
boardNumber (1,1) double {mustBeInteger, mustBePositive}
end
% call hardware functions from DLL
end
In doing so, this broke my experiment. The Matlab code is shared between two systems, one that has a single board and one that has two boards so configure is called in a for loop:
for boardId = 1 : numBoards
configure(inParams,boardId);
end
% do stuff
The code refactor broke my experiment, but only on the system that has two boards. While debugging, I noticed that inserting an arbitrary pause made the two-board system work every other time the code was run (which is better than never, but still 50%). After that realization, I tried commenting out the arguments definition:
function configure(inParams, boardNumber)
% arguments
% inParams (1,1) params
% boardNumber (1,1) double {mustBeInteger, mustBePositive}
% end
% call hardware functions from DLL
end
Which removed the need for the arbitrary pause, but still only got the two-board system to work correctly on every other function call (always works on first try, and from then on any odd-numbered run will work). It seems as though there is some kind of under-the-hood optimization(?) that is ocurring after I added a class definition that breaks things.
Does anyone have other ideas what the issue might be and/or how I can disable optimizations for that one function call (which appears to be impossible based on my reading). I recognize this is an exceptionally odd error and I’m happy to provide more information if that would be useful. I have also reached out to the hardware manufacturer to see if they have any suggestions for what might be causing this. jit, class, for loop, performance MATLAB Answers — New Questions
Matlab code to find the Wave height
I want to find the water wave height and wave length by analysing the video. I write the code for that :
Is this correct?
videoFile = ‘wave_video.mp4’; % Replace with your video file name
video = VideoReader(videoFile);
numFrames = floor(video.Duration * video.FrameRate);
frameRate = video.FrameRate;
displacement = zeros(1, numFrames);
% Define a threshold value for detecting the wave (adjust this as needed)
threshold = 100;
for k = 1:numFrames
frame = readFrame(video);
grayFrame = rgb2gray(frame);
% Threshold the grayscale image to create a binary mask
binaryImage = grayFrame > threshold;
% Sum the binary image to get an estimation of the wave’s displacement
displacement(k) = sum(binaryImage(:));
end
time = (0:numFrames-1) / frameRate;
plot(time, displacement);
xlabel(‘Time (s)’);
ylabel(‘Displacement’);
title(‘Water Wave Displacement Over Time’);
How to find the unit of that height.I want to find the water wave height and wave length by analysing the video. I write the code for that :
Is this correct?
videoFile = ‘wave_video.mp4’; % Replace with your video file name
video = VideoReader(videoFile);
numFrames = floor(video.Duration * video.FrameRate);
frameRate = video.FrameRate;
displacement = zeros(1, numFrames);
% Define a threshold value for detecting the wave (adjust this as needed)
threshold = 100;
for k = 1:numFrames
frame = readFrame(video);
grayFrame = rgb2gray(frame);
% Threshold the grayscale image to create a binary mask
binaryImage = grayFrame > threshold;
% Sum the binary image to get an estimation of the wave’s displacement
displacement(k) = sum(binaryImage(:));
end
time = (0:numFrames-1) / frameRate;
plot(time, displacement);
xlabel(‘Time (s)’);
ylabel(‘Displacement’);
title(‘Water Wave Displacement Over Time’);
How to find the unit of that height. I want to find the water wave height and wave length by analysing the video. I write the code for that :
Is this correct?
videoFile = ‘wave_video.mp4’; % Replace with your video file name
video = VideoReader(videoFile);
numFrames = floor(video.Duration * video.FrameRate);
frameRate = video.FrameRate;
displacement = zeros(1, numFrames);
% Define a threshold value for detecting the wave (adjust this as needed)
threshold = 100;
for k = 1:numFrames
frame = readFrame(video);
grayFrame = rgb2gray(frame);
% Threshold the grayscale image to create a binary mask
binaryImage = grayFrame > threshold;
% Sum the binary image to get an estimation of the wave’s displacement
displacement(k) = sum(binaryImage(:));
end
time = (0:numFrames-1) / frameRate;
plot(time, displacement);
xlabel(‘Time (s)’);
ylabel(‘Displacement’);
title(‘Water Wave Displacement Over Time’);
How to find the unit of that height. matlab, water wave, wave height MATLAB Answers — New Questions
CSP SMB Partners: Join hosted Copilot for Microsoft 365 user trainings
These workshops include an overview of Copilot for Microsoft 365, hands-on prompt training, Demos across roles in HR, Marketing, Sales, and other disciplines, real time support, and Q&A.
Find out more
These workshops include an overview of Copilot for Microsoft 365, hands-on prompt training, Demos across roles in HR, Marketing, Sales, and other disciplines, real time support, and Q&A.
Find out more Read More