Month: August 2024
Custom data types and constraints with genetic algorithms
Hello everybody,
I’m trying to implement a genetic algorithm that works with custom data types in MATLAB. Each chromosome of the population is made of two parts: a string and a vector of integers.
The string part is the binary representation of a number and I need to perform admissibility checks over it after crossover and mutation operations in order to avoid that the number represented could exceed a certain value.
I’ve followed this example for working with custom data types but I still have a question: how do I pass the max value as parameter to crossover and mutation functions? And, more generally, is there a way to pass any extra parameter to these functions?
For now I’m using global variables, but this feels a very bad idea and I’d like to find out which is the right way to do what I need.
Thanks in advance!Hello everybody,
I’m trying to implement a genetic algorithm that works with custom data types in MATLAB. Each chromosome of the population is made of two parts: a string and a vector of integers.
The string part is the binary representation of a number and I need to perform admissibility checks over it after crossover and mutation operations in order to avoid that the number represented could exceed a certain value.
I’ve followed this example for working with custom data types but I still have a question: how do I pass the max value as parameter to crossover and mutation functions? And, more generally, is there a way to pass any extra parameter to these functions?
For now I’m using global variables, but this feels a very bad idea and I’d like to find out which is the right way to do what I need.
Thanks in advance! Hello everybody,
I’m trying to implement a genetic algorithm that works with custom data types in MATLAB. Each chromosome of the population is made of two parts: a string and a vector of integers.
The string part is the binary representation of a number and I need to perform admissibility checks over it after crossover and mutation operations in order to avoid that the number represented could exceed a certain value.
I’ve followed this example for working with custom data types but I still have a question: how do I pass the max value as parameter to crossover and mutation functions? And, more generally, is there a way to pass any extra parameter to these functions?
For now I’m using global variables, but this feels a very bad idea and I’d like to find out which is the right way to do what I need.
Thanks in advance! genetic algorithm MATLAB Answers — New Questions
Overlapping numberss
Hi
The attached docx file has a problem: the 2 digits on numbers in the Numberings are overlapping. In this file numbering start from 10; otherwise the problem starts to show after 10 rows. this is a portion of a main docx which has generated by a software.
How can I fix this?
HiThe attached docx file has a problem: the 2 digits on numbers in the Numberings are overlapping. In this file numbering start from 10; otherwise the problem starts to show after 10 rows. this is a portion of a main docx which has generated by a software.attached docx How can I fix this? Read More
Deploying Win32 App and using Env. Variables
Hi,
We are trying to deploy an application as a Win32 app, the script to install (a .cmd) references the env. variable for the Program Files folder – %programfiles% – however when this runs, we get the error that the agent cannot be installed in the C:Program Files (x86), this is expected behaviour for the agent as it must be installed in C:Program Files.
The variable ‘echoes’ out as expected on the PC, so why when installing via Intune does it resolve to the x86 path?
Hi,We are trying to deploy an application as a Win32 app, the script to install (a .cmd) references the env. variable for the Program Files folder – %programfiles% – however when this runs, we get the error that the agent cannot be installed in the C:Program Files (x86), this is expected behaviour for the agent as it must be installed in C:Program Files. The variable ‘echoes’ out as expected on the PC, so why when installing via Intune does it resolve to the x86 path? Read More
Connect Sync vs Cloud Sync vs other?
Hi,
Been going through this comparison: https://learn.microsoft.com/en-us/entra/identity/hybrid/cloud-sync/what-is-cloud-sync#how-is-microsoft-entra-cloud-sync-different-from-microsoft-entra-connect-sync
Both Cloud Sync and Entra Connect, take user and group accounts from On-Prem, and provision (and sync) these to Entra ID (Azure).
Is there, however, a similar free Microsoft tools that would run in the opposite direction? i.e. take existing user and group accounts in Entra ID (Azure) and provision them into an On-Prem Active Directory?
Thanks,
SK
Hi,Been going through this comparison: https://learn.microsoft.com/en-us/entra/identity/hybrid/cloud-sync/what-is-cloud-sync#how-is-microsoft-entra-cloud-sync-different-from-microsoft-entra-connect-sync Both Cloud Sync and Entra Connect, take user and group accounts from On-Prem, and provision (and sync) these to Entra ID (Azure). Is there, however, a similar free Microsoft tools that would run in the opposite direction? i.e. take existing user and group accounts in Entra ID (Azure) and provision them into an On-Prem Active Directory? Thanks,SK Read More
Código de indicação da Kucoin: QBAYT4XB – Melhor código de indicação da Kucoin
O código de indicação oficial da Kucoin Exchange é determinado como QBAYT4XB. Você pode negociar criptomoedas com segurança com o código de indicação da Kucoin QBAYT4XB. Com este código de convite, você pode ganhar 50% de desconto na comissão e um bônus de $ 8.200 para novos usuários.
O código de indicação oficial da Kucoin Exchange é determinado como QBAYT4XB. Você pode negociar criptomoedas com segurança com o código de indicação da Kucoin QBAYT4XB. Com este código de convite, você pode ganhar 50% de desconto na comissão e um bônus de $ 8.200 para novos usuários. Read More
Adding, editing, removing, reading SharePoint list rules programmatically
Hi,
reading the documentation, I couldn’t find a way to manage site list automate rules via any API (REST/graph/CSOM) or framework (PnP). Is there a way to do so?
The only way I managed to find at the moment is adding them to a site creation script as a sub action of the create new site verb, but that will not allow me to alter them in any way in existing sites or lists.
Moreover, they’re not saved at all in .stp list templates.
How can I programmatically manage these automate rules in an existing list?
Thank you
Hi, reading the documentation, I couldn’t find a way to manage site list automate rules via any API (REST/graph/CSOM) or framework (PnP). Is there a way to do so? The only way I managed to find at the moment is adding them to a site creation script as a sub action of the create new site verb, but that will not allow me to alter them in any way in existing sites or lists. Moreover, they’re not saved at all in .stp list templates. How can I programmatically manage these automate rules in an existing list? Thank you Read More
Unable to remove passcode for iPad in Intune
Hello,
One of our users has left the company and I want to factory reset his iPad. There is a passcode on it which I don’t know. So I’ve gone to Intune, Users > Selected User > Devices > Selected the iPad > Manage > Device could not be found error message.
I then searched the serial number in devices but nothing has been found. Does anyone know of a way around this so I can factory reset the iPad?
Thanks in advance!
Paul
Hello, One of our users has left the company and I want to factory reset his iPad. There is a passcode on it which I don’t know. So I’ve gone to Intune, Users > Selected User > Devices > Selected the iPad > Manage > Device could not be found error message. I then searched the serial number in devices but nothing has been found. Does anyone know of a way around this so I can factory reset the iPad? Thanks in advance! Paul Read More
When the yaw angle exceeds 90° the robot cannot maintain balance states in Simscape
I used simscape to simulate,modeling and control of a wheeled biped robot. I used LQR to calculate the torque for the robot to maintain balance states. I used a lot of balls to simulate the contact between the tire and the ground. Everything is ok when the yaw angle of the robot is less than 90 degree.
here is yaw 0 dgree
here is yaw 60 dgree
when the yaw angle is greater than 90 degree, can’t maintain balance.
here is yaw 90 dgree
here is yaw 180 dgree
when I change the positive and negative sign of the both hub torque at 180 degree yaw angle , everything return to normal as the same as the 0 degree.
here is yaw 180 dgree but change the positive and negative sign of the both hub torque
What’s happaning? Is it because of the spatial contact force?I used simscape to simulate,modeling and control of a wheeled biped robot. I used LQR to calculate the torque for the robot to maintain balance states. I used a lot of balls to simulate the contact between the tire and the ground. Everything is ok when the yaw angle of the robot is less than 90 degree.
here is yaw 0 dgree
here is yaw 60 dgree
when the yaw angle is greater than 90 degree, can’t maintain balance.
here is yaw 90 dgree
here is yaw 180 dgree
when I change the positive and negative sign of the both hub torque at 180 degree yaw angle , everything return to normal as the same as the 0 degree.
here is yaw 180 dgree but change the positive and negative sign of the both hub torque
What’s happaning? Is it because of the spatial contact force? I used simscape to simulate,modeling and control of a wheeled biped robot. I used LQR to calculate the torque for the robot to maintain balance states. I used a lot of balls to simulate the contact between the tire and the ground. Everything is ok when the yaw angle of the robot is less than 90 degree.
here is yaw 0 dgree
here is yaw 60 dgree
when the yaw angle is greater than 90 degree, can’t maintain balance.
here is yaw 90 dgree
here is yaw 180 dgree
when I change the positive and negative sign of the both hub torque at 180 degree yaw angle , everything return to normal as the same as the 0 degree.
here is yaw 180 dgree but change the positive and negative sign of the both hub torque
What’s happaning? Is it because of the spatial contact force? spatial contact force, robot, simscape MATLAB Answers — New Questions
Combine multiple images (imfuse)
Hi, I am trying to dispaly 3 images using the below command. My A, B, C are in the format of 656 x 875 x 3 unit 8. I think the error is because of unit 8 format. I tried imfuse() as well, although it works for two images, but not for three images.
A = imread(‘1.bmp’);
B = imread(‘2.bmp’);
C = imread(‘3.bmp’);
overlay_im = cat(3, A, B, C);
imshow(overlay_im);
However, the above code throws below error
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
Error in image_comb (line 276)
imshow(overlay_im);Hi, I am trying to dispaly 3 images using the below command. My A, B, C are in the format of 656 x 875 x 3 unit 8. I think the error is because of unit 8 format. I tried imfuse() as well, although it works for two images, but not for three images.
A = imread(‘1.bmp’);
B = imread(‘2.bmp’);
C = imread(‘3.bmp’);
overlay_im = cat(3, A, B, C);
imshow(overlay_im);
However, the above code throws below error
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
Error in image_comb (line 276)
imshow(overlay_im); Hi, I am trying to dispaly 3 images using the below command. My A, B, C are in the format of 656 x 875 x 3 unit 8. I think the error is because of unit 8 format. I tried imfuse() as well, although it works for two images, but not for three images.
A = imread(‘1.bmp’);
B = imread(‘2.bmp’);
C = imread(‘3.bmp’);
overlay_im = cat(3, A, B, C);
imshow(overlay_im);
However, the above code throws below error
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({‘Parent’,’Border’,’Reduce’},preparsed_varargin{:});
Error in image_comb (line 276)
imshow(overlay_im); imfuse, display multiple images, combine images, imshowpair(), cat MATLAB Answers — New Questions
How to calculate scores when using pcacov?
I want to perform PCA analysis. When using pcacov function, it is not returned the scores. Could any of you guys help me with this problem? I know that using pca function scores are returned. But I am not using pca function because I want to perform PCA analysis using the Spearman correlation matrix obtained instead of Pearson. Thanks a lot for your help.I want to perform PCA analysis. When using pcacov function, it is not returned the scores. Could any of you guys help me with this problem? I know that using pca function scores are returned. But I am not using pca function because I want to perform PCA analysis using the Spearman correlation matrix obtained instead of Pearson. Thanks a lot for your help. I want to perform PCA analysis. When using pcacov function, it is not returned the scores. Could any of you guys help me with this problem? I know that using pca function scores are returned. But I am not using pca function because I want to perform PCA analysis using the Spearman correlation matrix obtained instead of Pearson. Thanks a lot for your help. pca, scores, corr MATLAB Answers — New Questions
RoadRunner shape file load
I would like to load a shapefile (.shp) into Roadrunner, and while I can verify that the map appears correctly in QGIS, when I load the .shp and .prj files into Roadrunner, some parts are corrupted and not loaded properly. What could be the cause of this issue?
Thank you
(RoadRunner 2024a)I would like to load a shapefile (.shp) into Roadrunner, and while I can verify that the map appears correctly in QGIS, when I load the .shp and .prj files into Roadrunner, some parts are corrupted and not loaded properly. What could be the cause of this issue?
Thank you
(RoadRunner 2024a) I would like to load a shapefile (.shp) into Roadrunner, and while I can verify that the map appears correctly in QGIS, when I load the .shp and .prj files into Roadrunner, some parts are corrupted and not loaded properly. What could be the cause of this issue?
Thank you
(RoadRunner 2024a) #roadrunner, #shp MATLAB Answers — New Questions
Assistance Needed: Best Practices for Setting Up macOS Devices in Intune
Hi all,
I’m looking for the best way to set up macOS devices in Intune. These devices are already sittting in Intune but currently have no profiles attached. My goal is to configure them so that they are fully ready for users to use right away, without needing to install apps or perform additional setup after logging in.
Could someone please guide me on the correct settings and configurations required to achieve this? Additionally, if anyone has useful links or videos that could assist, I’d greatly appreciate it.
Thank you!
Hi all,I’m looking for the best way to set up macOS devices in Intune. These devices are already sittting in Intune but currently have no profiles attached. My goal is to configure them so that they are fully ready for users to use right away, without needing to install apps or perform additional setup after logging in.Could someone please guide me on the correct settings and configurations required to achieve this? Additionally, if anyone has useful links or videos that could assist, I’d greatly appreciate it.Thank you! Read More
Legal Parameters for Indirect Reseller case in CSP Program
Dear community,
We are an Indirect Provider in CSP, located in EU (CEMA Region). We would like your precious help to resolve a legal question that bothers us.
The case: one of our resellers has numerous subsidiaries with all of them having different legal entities.
The question: does our reseller, as being an indirect reseller in CSP will be able to buy license from us (as his Indirect Provider) and then resell these licenses to the subsidiaries, which in CSP languague will be their end customers (i.e., due to the fact that each one of them has their own legal entity).
Could you please help us understand if there is any confict following the case details? Any link to the appropriate documentation will help us. The one we were reviewing can be found here.
Thank you in advance for your significant support and help!
Warm regards,
Nick
cc @JillArmourMicrosoft @JillArmour
Dear community, We are an Indirect Provider in CSP, located in EU (CEMA Region). We would like your precious help to resolve a legal question that bothers us. The case: one of our resellers has numerous subsidiaries with all of them having different legal entities.The question: does our reseller, as being an indirect reseller in CSP will be able to buy license from us (as his Indirect Provider) and then resell these licenses to the subsidiaries, which in CSP languague will be their end customers (i.e., due to the fact that each one of them has their own legal entity).Could you please help us understand if there is any confict following the case details? Any link to the appropriate documentation will help us. The one we were reviewing can be found here. Thank you in advance for your significant support and help! Warm regards,Nickcc @JillArmourMicrosoft @JillArmour Read More
Locking numbers in calendar
Hi,
I have 3 tabels where i need the total sum of them to be put in a calender.
I would like it to be automatic but I don’t know how.
I already have the total sum of the tabels. But now I need something to put them into a calendar for save keeping.
Is there any way to put them in the calender automatically?
Please ask any question if I’m onclear on anything.
Thanks in advance.
Hi, I have 3 tabels where i need the total sum of them to be put in a calender.I would like it to be automatic but I don’t know how. I already have the total sum of the tabels. But now I need something to put them into a calendar for save keeping. Is there any way to put them in the calender automatically? Please ask any question if I’m onclear on anything.Thanks in advance. Read More
Value not shown in grid but shown in edit window.
Hi all,
I seek you advise, I have a calculated column in date format.
For some reasons I don’t get the result in the grid view.
However it is in the edit window
If I change column type from ‘Date and Time’ Date only to single line of text; then it is displayed in grid but as a number like 45517.
Why is it not showing when it is a date ???
Thanks
Hi all, I seek you advise, I have a calculated column in date format. For some reasons I don’t get the result in the grid view.However it is in the edit window If I change column type from ‘Date and Time’ Date only to single line of text; then it is displayed in grid but as a number like 45517. Why is it not showing when it is a date ??? Thanks Read More
Event trigger not running the pipeline might be due to event grid, need assistance on creation
Hi,
I created a trigger which supposed to run a pipeline once new file arrived.
It seems like my trigger has no issue and the problem is that I don’t have an existing event grid for that trigger.
Now, I’m trying to create an event grid subscription but I’m receiving the error below.
I don’t know if I’m using the correct Endpoint as I’m just formatting it to the existing event subscription in our Azure.
existing: https://pmeastus2.svc.datafactory.azure.com:4443/triggerevent/BlobEventsTrigger/trigger 1
what I’m using to create the event subscription:
Hi,I created a trigger which supposed to run a pipeline once new file arrived. It seems like my trigger has no issue and the problem is that I don’t have an existing event grid for that trigger. Now, I’m trying to create an event grid subscription but I’m receiving the error below. I don’t know if I’m using the correct Endpoint as I’m just formatting it to the existing event subscription in our Azure.existing: https://pmeastus2.svc.datafactory.azure.com:4443/triggerevent/BlobEventsTrigger/trigger 1 what I’m using to create the event subscription: Read More
Azure Linux Web App and http server
The advantage of using open-source solutions is that you can access many up-to-date features (e.g., using Python and related packages to operate big data models). However, the downside is that sometimes you need to understand the system architecture a bit, not just the code itself. This article will introduce how to perform initial port configuration on an Azure Linux Web App and how to modify default values.
TOC
HTTP Server and Startup Script
backend example: python
frontend example: node
HTTP Server and Startup Script
Azure Web App (App Service) exposes ports 80/443, with 443 being the encrypted port commonly used. This means that regardless of which port your locally developed application listens to, you need to perform port forwarding when deploying to the Web App.
A typical Windows Web App has an IIS built-in as the HTTP server, listening on port 80 by default. Regardless of the stack used (e.g., node, php, .net), IIS serves as the HTTP server. Therefore, since the web app has pre-configured forwarding rules on the platform side, users are not aware of the HTTP server and port forwarding during the operation.
However, the situation is different for Linux Web Apps. Different stacks have different HTTP servers (e.g., node can use pm2, php can use nginx, python can use uvicorn, etc.). The same HTTP server can also be used for multiple stacks (e.g., nginx can be used for php or python). Some languages can even start a simple server for port listening through an interpreter and corresponding modules (e.g., python with http.server). This makes it important to understand which HTTP server your application is running on.
You might recall that in different development environments, you need to enter some commands in the console to start the app before testing an application, such as:
uvicorn app:test –reload
npm start
This is because different tutorials usually use the corresponding HTTP server (or tools with HTTP server functionality) as a prerequisite for starting. Since these tools are constantly updated, the command line instructions or suffix parameters vary greatly. Therefore, a Startup Command feature is needed in Azure Linux Web App to manage these commands.
In the following sections, I will provide two examples and describe how to deploy your application to Azure Linux Web App and run it successfully under different stacks and HTTP servers.
backend example: python
For a Linux Python app, this example uses Python’s http.server package as the HTTP server. The command I use in the local development environment is `python server.py`.
import os
import http.server
import socketserver
from http import HTTPStatus
class Handler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
self.send_response(HTTPStatus.OK)
self.end_headers()
msg = ‘scale %s’ % (self.path)
self.wfile.write(msg.encode())
port = 8000
print(‘Listening on port %s’ % (port))
httpd = socketserver.TCPServer((”, port), Handler)
httpd.serve_forever()
After confirming the HTTP server and command, you can create a Linux python web app and deploy the code directly.
Remember the port mapping mentioned earlier? Since the python environment provided by Azure Web App forwards port 8000 to the exposed port 443 by default, for this code, you don’t need to set additional port forwarding rules after deployment. Just modify the startup command.
Before actual testing, remember to restart the app.
If your application needs to change the default listening port, for example, to 7999, in this case, besides modifying the corresponding port name in the code, you also need to add `WEBSITES_PORT=7999` in the App Setting to override the default port forwarding rules.
To confirm that your application is indeed listening on port 7999, you can go to the Kudu site and run the command:
netstat -tulpn | grep LISTEN
frontend example: node
For a Linux node app, this example uses pm2 as the HTTP server. The command I use in the local development environment is `npm start`.
npx create-react-app reactfailreact-app
cd reactfailreact-app
npm start
Azure Linux node Web App has a built-in pm2, a lightweight process manager with an HTTP server, suitable for experimentation. You can create a Linux node web app, compile the code, and deploy it.
Since the node environment provided by Azure Web App forwards port 3000 to the exposed port 443 by default, for this code, you don’t need to set additional port forwarding rules after deployment. Just modify the startup command.
Run the following command to compile the project. After execution, a build subfolder will be created.
npm run build
Create or modify `build/.deployment` with the following content:
[config]
SCM_DO_BUILD_DURING_DEPLOYMENT=false
Publish your project, specifying the build subfolder during the publishing process.
Go back to the app, navigate to Configuration, and specify the Startup Command as follows:
pm2 serve /home/site/wwwroot –no-daemon –spa
After restarting the web app, you can visit your webpage using a browser.
If your application needs to change the default listening port, for example, to 2999, in this case, besides specifying the listening port in the startup command, you also need to add `WEBSITES_PORT=2999` in the App Setting to override the default port forwarding rules.
pm2 serve /home/site/wwwroot –no-daemon –spa –port 2999
You can also go to the Kudu site and run the command:
netstat -tulpn | grep LISTEN
Microsoft Tech Community – Latest Blogs –Read More
Solving a large system takes too much memory?
Suppose i have a sparse matrix M with the following properties:
size(M) -> 100000 100000
sprank(M) -> 99236
nnz(M) -> 499987
numel(M) -> 1.0000e+10
who’s(‘M’) -> 8.4mb
How come solving the system takes way more than 8GB of RAM?
I’m using the following code (provided at http://www.mathworks.com/moler/exm/chapters/pagerank.pdf
function x = pagerank(G,p)
G = G – diag(diag(G));
[n,n] = size(G);
c = full(sum(G,1));
r = full(sum(G,2));
% Scale column sums to be 1 (or 0 where there are no out links).
k = find(c~=0);
D = sparse(k,k,1./c(k),n,n);
% Solve (I – p*G*D)*x = e
e = ones(n,1);
I = speye(n,n);
x = (I – p*G*D)e;
% Normalize so that sum(x) == 1.
x = x/sum(x);`Suppose i have a sparse matrix M with the following properties:
size(M) -> 100000 100000
sprank(M) -> 99236
nnz(M) -> 499987
numel(M) -> 1.0000e+10
who’s(‘M’) -> 8.4mb
How come solving the system takes way more than 8GB of RAM?
I’m using the following code (provided at http://www.mathworks.com/moler/exm/chapters/pagerank.pdf
function x = pagerank(G,p)
G = G – diag(diag(G));
[n,n] = size(G);
c = full(sum(G,1));
r = full(sum(G,2));
% Scale column sums to be 1 (or 0 where there are no out links).
k = find(c~=0);
D = sparse(k,k,1./c(k),n,n);
% Solve (I – p*G*D)*x = e
e = ones(n,1);
I = speye(n,n);
x = (I – p*G*D)e;
% Normalize so that sum(x) == 1.
x = x/sum(x);` Suppose i have a sparse matrix M with the following properties:
size(M) -> 100000 100000
sprank(M) -> 99236
nnz(M) -> 499987
numel(M) -> 1.0000e+10
who’s(‘M’) -> 8.4mb
How come solving the system takes way more than 8GB of RAM?
I’m using the following code (provided at http://www.mathworks.com/moler/exm/chapters/pagerank.pdf
function x = pagerank(G,p)
G = G – diag(diag(G));
[n,n] = size(G);
c = full(sum(G,1));
r = full(sum(G,2));
% Scale column sums to be 1 (or 0 where there are no out links).
k = find(c~=0);
D = sparse(k,k,1./c(k),n,n);
% Solve (I – p*G*D)*x = e
e = ones(n,1);
I = speye(n,n);
x = (I – p*G*D)e;
% Normalize so that sum(x) == 1.
x = x/sum(x);` matrix, solve, memory MATLAB Answers — New Questions
Unable to read MAT-file
hi all, I can not open the mat file (attached) in matlab while using load
Error using load
Unable to read MAT-file . File might be corrupt.
I already checked the ans here: https://www.mathworks.com/matlabcentral/answers/178877-unable-to-read-mat-file-file-may-be-corrupt
but it’s not work for me
Thankshi all, I can not open the mat file (attached) in matlab while using load
Error using load
Unable to read MAT-file . File might be corrupt.
I already checked the ans here: https://www.mathworks.com/matlabcentral/answers/178877-unable-to-read-mat-file-file-may-be-corrupt
but it’s not work for me
Thanks hi all, I can not open the mat file (attached) in matlab while using load
Error using load
Unable to read MAT-file . File might be corrupt.
I already checked the ans here: https://www.mathworks.com/matlabcentral/answers/178877-unable-to-read-mat-file-file-may-be-corrupt
but it’s not work for me
Thanks load MATLAB Answers — New Questions
cwtfilterbank magnitude linear scale
I am using the cwtfilterbank function to generate a scalogram from a signal. However, the frequencies on the Y-axis of the scalogram are not linear. I have read the documentation for cwtfilterbank, but I couldn’t find a direct solution. What changes can I make to achieve a linear frequency scale on the scalogram?
fb = cwtfilterbank(‘SignalLength’,signalLength,’Wavelet’,’amor’,’SamplingFrequency’,Fs,’VoicesPerOctave’,48, ‘FrequencyLimits’, [0 40])
[wt,f] = fb.wt(sig);
im = ind2rgb(im2uint8(rescale(abs(wt))),jet(256));I am using the cwtfilterbank function to generate a scalogram from a signal. However, the frequencies on the Y-axis of the scalogram are not linear. I have read the documentation for cwtfilterbank, but I couldn’t find a direct solution. What changes can I make to achieve a linear frequency scale on the scalogram?
fb = cwtfilterbank(‘SignalLength’,signalLength,’Wavelet’,’amor’,’SamplingFrequency’,Fs,’VoicesPerOctave’,48, ‘FrequencyLimits’, [0 40])
[wt,f] = fb.wt(sig);
im = ind2rgb(im2uint8(rescale(abs(wt))),jet(256)); I am using the cwtfilterbank function to generate a scalogram from a signal. However, the frequencies on the Y-axis of the scalogram are not linear. I have read the documentation for cwtfilterbank, but I couldn’t find a direct solution. What changes can I make to achieve a linear frequency scale on the scalogram?
fb = cwtfilterbank(‘SignalLength’,signalLength,’Wavelet’,’amor’,’SamplingFrequency’,Fs,’VoicesPerOctave’,48, ‘FrequencyLimits’, [0 40])
[wt,f] = fb.wt(sig);
im = ind2rgb(im2uint8(rescale(abs(wt))),jet(256)); wavelet, cwt, signal processing, continuous wavelet transforms MATLAB Answers — New Questions