Tag Archives: matlab
Distinguish the different curves and identify the points corresponding to each way
I have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advanceI have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advance I have this figure but it is difficult to distinguish the different curves and identify the points corresponding to each approach. Is there any other way to represent each method?
Thanks in advance cureve MATLAB Answers — New Questions
How do I configure a MATLAB worker in a cluster to have the security setting of a user who submits the job?
I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder.I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder. I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder. security, workers, group, permission, mdcs, parallel, job, distributed, jobmanager MATLAB Answers — New Questions
edge detection and comparison
How to compare these two images to find the length and area of distortion in the final imageHow to compare these two images to find the length and area of distortion in the final image How to compare these two images to find the length and area of distortion in the final image edge detection, image comparison, gauging, metrology, image segmentation, caliper dimensions MATLAB Answers — New Questions
Retrieve requirement information linked to a test assessment step programmatically
Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help?Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help? Guys, do you know how to retrieve the requirement information linked to an assessment step? Normally slreq.outLinks function works for blocks. But I couldn’t make it for the test assessment step. Anyone help? test assessment step linked to a requirement MATLAB Answers — New Questions
Why do I receive a warning regarding exhausted change notification handles when I open MATLAB?
When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this?When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this? When I open MATLAB, I see a warning similar to the following:
Warning: Could not get change notification handle for remote <directory_name>. Windows has exhausted its pool of handles for this file server. Cannot determine whether this server supports directory timestamp updates. Type ‘help change_notification’ for more info
How can I resolve this? responsive, change_notification, entries, path, supply MATLAB Answers — New Questions
QPSK simulation with AWGN and BER using Simulink
Hi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulationHi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulation Hi
What wrong with this block diagram and how to make monte carlo simulation and i am wondering if there any resources for this kind of modulation qpsk MATLAB Answers — New Questions
S-Function ‘SimCoupler’ does not exist
where can I find this block in matlab 2017awhere can I find this block in matlab 2017a where can I find this block in matlab 2017a 1 MATLAB Answers — New Questions
Accessing LIN blocks in Simulink model
How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses.How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses. How do I get the LIN pack and LIN unpack blocks into my model? I have the Vehicle Network Toolbox (VNT) toolbox with me, I can see the LIN blocks in the documentation but I cannot see it the Simulink Library, Can some please help me out here? Or do I need a seperate license to access them because the documentation doesn’t mention anything related to the licenses. simulink, vnt, lin, can MATLAB Answers — New Questions
state flow chart properties action language
Action Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help meAction Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help me Action Language selected as Matlab, Cnt(counter) is updating and working fine.
when, Action Language selected as C, and if else ststement is replaced with flowchart (pattern) Cnt is not updating
if Any one faced this kind of issue before please help me state flow chart MATLAB Answers — New Questions
ODE time vector plot does not correspond to the time vector values
Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this?Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this? Hi! When I solve an ODE using ode23 I get a time vector and my state. In the time vector everything seems fine however when I plot the states agaisnt the time, the time appears completely skewed(it should be from 0-5 and its from 0-0.09…..)
How can I solve this? ode23, ode, plot, plotting, time MATLAB Answers — New Questions
Adding vectors of different sizes… works now? Can this be suppressed?
In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"?In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? In previous versions of matlab, adding two vectors of different sizes would result in an error (this would align with rules of matrix addition).
For example:
[ 1 2 3 4] + [1 2 3 4]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
For example:
[ 1 2 3 4] + [1 2 3 4 5]’
ans =
2 3 4 5
3 4 5 6
4 5 6 7
5 6 7 8
6 7 8 9
Is there a way to suppress this new "feature"? matrix addition, warnings, errors MATLAB Answers — New Questions
Why i get error message when trying using lowpass?
Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image;Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image; Hi all,
when i try to use lowpass command, i got this message;
lowpass requires Signal Processing Toolbox.
The image as below;
I am using Academic version and i have installed Signal Processing toolbox during installation
Here is the image; signal processing toolbox MATLAB Answers — New Questions
Adding names to the mlm.opt file when the maximum allowable number of characters (4000) is reached.
We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line?We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line? We would like to enter additional names to selected toolboxes and blocksets within the mlm.opt (options) file. However, we have reached the maximum number of allowed characters (4000). To get around this, we haved deleted some names from the line. Is there a way to split the line? options file MATLAB Answers — New Questions
Why I can not sign in in the installed matlab? (2024b academic version)
Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution?Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution? Hi I can not sign in in the installed matlab, when I try the sign in window write this:
mw-login :: No endpoint specified.
This is problem, because the toolboxes, wich I installed are not working, because the matlab do not see my lisence. But when I open online the matlab, the toolboxes are working.
So, someone know the solution, why I can not sign in? Or anything else solution? sign in, license, toolbox, problem MATLAB Answers — New Questions
DDPG algorithm/Experience Buffer/ rl.util.ExperienceBuffer
I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell.I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell. I want to code my own DDPG algorithm. In the intial steps, the Batch size is bigger than the number of experiences in experience buffer, how can I still get enough sampled data for my miniBatch ?
I use rl.util.ExperienceBuffer to create my experience buffer and use createSampledExperienceMiniBatch(buffer,BatchSize) function to get datas for minBatch. However, when the data in experience buffer is smaller than the BatchSize, the function return 0x0 cell. experiencebuffer, ddpg MATLAB Answers — New Questions
Which Matlab version ?
Hi,
My laptop details as follows :
====================
Processor Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
Video Card Intel(R) UHD Graphics
Operating System Windows 10
RAM 8.0 GB
=======================
I am thinking of 2022b version, will be working fine ? What you recmmend plz ?Hi,
My laptop details as follows :
====================
Processor Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
Video Card Intel(R) UHD Graphics
Operating System Windows 10
RAM 8.0 GB
=======================
I am thinking of 2022b version, will be working fine ? What you recmmend plz ? Hi,
My laptop details as follows :
====================
Processor Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
Video Card Intel(R) UHD Graphics
Operating System Windows 10
RAM 8.0 GB
=======================
I am thinking of 2022b version, will be working fine ? What you recmmend plz ? verion, 2022b MATLAB Answers — New Questions
Sample rate in Analog Input/Output blocks in Simulink
I am preparing a class assignment with NI myDAQ where the sample rate should be a variable to be defined by the students.
Sample rate should be a variable in the workspace so students can change it according to results from previous computations on the system itself.
If I try to insert a variable, defined in the workspace as a positive number, I get error. Is there a workarounf for it?I am preparing a class assignment with NI myDAQ where the sample rate should be a variable to be defined by the students.
Sample rate should be a variable in the workspace so students can change it according to results from previous computations on the system itself.
If I try to insert a variable, defined in the workspace as a positive number, I get error. Is there a workarounf for it? I am preparing a class assignment with NI myDAQ where the sample rate should be a variable to be defined by the students.
Sample rate should be a variable in the workspace so students can change it according to results from previous computations on the system itself.
If I try to insert a variable, defined in the workspace as a positive number, I get error. Is there a workarounf for it? sample rate, daq MATLAB Answers — New Questions
.mltbx installer that works on multiple operating systems
I am trying to create a .mltbx installer that works on multiple operating systems. The content of the .mltbx has a library that needs to be system specific (.dll for windows, .so for linux and .dylib for macos). Is there a way to have same .mltbx installer be compatible with all systems including the fact that on macos needs to be compatible with both arm and x86_64 architectures ?
If this is possible can anyone point me to how can I do that ?
My ideal result is a way to make .mltbx package to use a diffrent path to the libInterface file based on the system but I was not able to find any way to do this.
Thanks!I am trying to create a .mltbx installer that works on multiple operating systems. The content of the .mltbx has a library that needs to be system specific (.dll for windows, .so for linux and .dylib for macos). Is there a way to have same .mltbx installer be compatible with all systems including the fact that on macos needs to be compatible with both arm and x86_64 architectures ?
If this is possible can anyone point me to how can I do that ?
My ideal result is a way to make .mltbx package to use a diffrent path to the libInterface file based on the system but I was not able to find any way to do this.
Thanks! I am trying to create a .mltbx installer that works on multiple operating systems. The content of the .mltbx has a library that needs to be system specific (.dll for windows, .so for linux and .dylib for macos). Is there a way to have same .mltbx installer be compatible with all systems including the fact that on macos needs to be compatible with both arm and x86_64 architectures ?
If this is possible can anyone point me to how can I do that ?
My ideal result is a way to make .mltbx package to use a diffrent path to the libInterface file based on the system but I was not able to find any way to do this.
Thanks! mltbx, system, macos, windows, linux MATLAB Answers — New Questions
How to read ‘.webp’ image file
Hi,
I have a couple of image files in ‘.webp’ format, how to read them in Matlab?Hi,
I have a couple of image files in ‘.webp’ format, how to read them in Matlab? Hi,
I have a couple of image files in ‘.webp’ format, how to read them in Matlab? webp, image file MATLAB Answers — New Questions
Forcing robustfit to return an intercept
Hi,
I have datasets where I am plotting variance as a function of mean. The datasets have substantial heteroscedasticity but don’t really have high leverage outliers, as they are symmetric and n is large. I have Python code which uses HuberRegressor from sklearn.linear_model to fit a straight line. This works and I attach example below (from Python).
I am seeking to replicate this fit in MATLAB but have failed to get an intercept. I began with robustfit with the huber parameter. Whilst I get a line, the intercept is returned as zero with an SE of zero. So it is refusing to fit this parameter. In Python I get an intercept value. I tried various ways to get an intercept in MATLAB but all failed:
Adding a column of zeros to X and disabling the intercept in the CLI options of robustfit.
All the different fit types in robustfit.
Weighting the points in way similar to that in my short Python function. (https://github.com/datajoint/anscombe-numcodecs/blob/main/src/anscombe_numcodecs/estimate.py around line 63)
I tried fitlm both with and without the robust fit option.
All of the above result in a zero intercept. The only thing that gives me an intercept value is centering the X values around their mean. However, the fit fails badly on some datasets when I do this so I would like to avoid it. I have had no fit failures on the same data in Python.
I suspect what is happening is that the extreme heteroscedasticity makes the in SE of the intercept value very unreliable and MATLAB is somehow then choosing to avoid returning a value for it and sets it to zero. I don’t really care about the SE and significance, but I do need the intercept because I go on to use that value. Any idea how to force MATLAB to return it?Hi,
I have datasets where I am plotting variance as a function of mean. The datasets have substantial heteroscedasticity but don’t really have high leverage outliers, as they are symmetric and n is large. I have Python code which uses HuberRegressor from sklearn.linear_model to fit a straight line. This works and I attach example below (from Python).
I am seeking to replicate this fit in MATLAB but have failed to get an intercept. I began with robustfit with the huber parameter. Whilst I get a line, the intercept is returned as zero with an SE of zero. So it is refusing to fit this parameter. In Python I get an intercept value. I tried various ways to get an intercept in MATLAB but all failed:
Adding a column of zeros to X and disabling the intercept in the CLI options of robustfit.
All the different fit types in robustfit.
Weighting the points in way similar to that in my short Python function. (https://github.com/datajoint/anscombe-numcodecs/blob/main/src/anscombe_numcodecs/estimate.py around line 63)
I tried fitlm both with and without the robust fit option.
All of the above result in a zero intercept. The only thing that gives me an intercept value is centering the X values around their mean. However, the fit fails badly on some datasets when I do this so I would like to avoid it. I have had no fit failures on the same data in Python.
I suspect what is happening is that the extreme heteroscedasticity makes the in SE of the intercept value very unreliable and MATLAB is somehow then choosing to avoid returning a value for it and sets it to zero. I don’t really care about the SE and significance, but I do need the intercept because I go on to use that value. Any idea how to force MATLAB to return it? Hi,
I have datasets where I am plotting variance as a function of mean. The datasets have substantial heteroscedasticity but don’t really have high leverage outliers, as they are symmetric and n is large. I have Python code which uses HuberRegressor from sklearn.linear_model to fit a straight line. This works and I attach example below (from Python).
I am seeking to replicate this fit in MATLAB but have failed to get an intercept. I began with robustfit with the huber parameter. Whilst I get a line, the intercept is returned as zero with an SE of zero. So it is refusing to fit this parameter. In Python I get an intercept value. I tried various ways to get an intercept in MATLAB but all failed:
Adding a column of zeros to X and disabling the intercept in the CLI options of robustfit.
All the different fit types in robustfit.
Weighting the points in way similar to that in my short Python function. (https://github.com/datajoint/anscombe-numcodecs/blob/main/src/anscombe_numcodecs/estimate.py around line 63)
I tried fitlm both with and without the robust fit option.
All of the above result in a zero intercept. The only thing that gives me an intercept value is centering the X values around their mean. However, the fit fails badly on some datasets when I do this so I would like to avoid it. I have had no fit failures on the same data in Python.
I suspect what is happening is that the extreme heteroscedasticity makes the in SE of the intercept value very unreliable and MATLAB is somehow then choosing to avoid returning a value for it and sets it to zero. I don’t really care about the SE and significance, but I do need the intercept because I go on to use that value. Any idea how to force MATLAB to return it? curve fitting, robust fit, python MATLAB Answers — New Questions