Category: News
no standalone apps output in console
I have function:
function m = magicsquare1(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
>> magicsquare1(5)
ans =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
The standalone application is created by
>> mcc -mv magicsquare1.m
(of course MCR is properly installed and configured)
Then the standalone application "magicsquare1" does not produce any output in command-line console!!! But it should, according to the help page of MATLAB compiler.
When I change the function like this:
function m = magicsquare2(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
disp(m);
and recompile by
>>mcc -mv magicsquare2.m
I am able to get correct output.
>> !magicsquare2 5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
So my question is: what is wrong? Why I am not able to get output from standalone application magicsquare1?I have function:
function m = magicsquare1(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
>> magicsquare1(5)
ans =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
The standalone application is created by
>> mcc -mv magicsquare1.m
(of course MCR is properly installed and configured)
Then the standalone application "magicsquare1" does not produce any output in command-line console!!! But it should, according to the help page of MATLAB compiler.
When I change the function like this:
function m = magicsquare2(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
disp(m);
and recompile by
>>mcc -mv magicsquare2.m
I am able to get correct output.
>> !magicsquare2 5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
So my question is: what is wrong? Why I am not able to get output from standalone application magicsquare1? I have function:
function m = magicsquare1(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
>> magicsquare1(5)
ans =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
The standalone application is created by
>> mcc -mv magicsquare1.m
(of course MCR is properly installed and configured)
Then the standalone application "magicsquare1" does not produce any output in command-line console!!! But it should, according to the help page of MATLAB compiler.
When I change the function like this:
function m = magicsquare2(n)
%MAGICSQUARE generates a magic square matrix of the size
% specified by the input parameter n.
% Copyright 2003-2012 The MathWorks, Inc.
if ischar(n)
n=str2num(n);
end
m = magic(n);
disp(m);
and recompile by
>>mcc -mv magicsquare2.m
I am able to get correct output.
>> !magicsquare2 5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
So my question is: what is wrong? Why I am not able to get output from standalone application magicsquare1? console apps MATLAB Answers — New Questions
How can I get a shapley summary plot?
I have checekd the MATLAB syntaxes about the shapley value plots, but the examples didn’t help me figure out how I can sketch a shapley summary plot similar to the attached image. Can you please help me out?
In python, you can use shap libraries to understand how much each input variable in the machine learning model contributes to the model prediction. But, I’m not able to have that flexibility in MATLAB.
Ref:https://towardsdatascience.com/explain-your-model-with-the-shap-values-bc36aac4de3dI have checekd the MATLAB syntaxes about the shapley value plots, but the examples didn’t help me figure out how I can sketch a shapley summary plot similar to the attached image. Can you please help me out?
In python, you can use shap libraries to understand how much each input variable in the machine learning model contributes to the model prediction. But, I’m not able to have that flexibility in MATLAB.
Ref:https://towardsdatascience.com/explain-your-model-with-the-shap-values-bc36aac4de3d I have checekd the MATLAB syntaxes about the shapley value plots, but the examples didn’t help me figure out how I can sketch a shapley summary plot similar to the attached image. Can you please help me out?
In python, you can use shap libraries to understand how much each input variable in the machine learning model contributes to the model prediction. But, I’m not able to have that flexibility in MATLAB.
Ref:https://towardsdatascience.com/explain-your-model-with-the-shap-values-bc36aac4de3d machine learning, shapley values MATLAB Answers — New Questions
modify v1 so that any value less than 4 is replaced with the value 0. Please help me making code.
modify v1 so that any value less than 4 is replaced with the value 0. please help me writing code.modify v1 so that any value less than 4 is replaced with the value 0. please help me writing code. modify v1 so that any value less than 4 is replaced with the value 0. please help me writing code. logical indexing MATLAB Answers — New Questions
Azure Virtual Desktop how to create host pool
What is Host Pool
Collection of one or more virtual machines (VMs) that serve as session hosts
Providing virtual desktops or remote applications to users
Efficient management, scaling, and maintenance of the virtual desktop infrastructure
Example Host Pool
A company Acme Corp, with multiple departments
Sales, Marketing, and Engineering. Each department has different host pool
Sales Department Host Pool
Host pool contains VMs with applications specific to the sales team
Marketing Department Host Pool
Host pool contains VMs with applications specific to the Marketing team
Engineering Department Host Pool
Host pool contains VMs with applications specific to the Engineering team
Host Pool Type
Personal host pool
Each user is assigned a dedicated session host VM
Individual desktop experience
Settings, data, and applications remain the same between sessions
Example:
A company assigns dedicated VMs to their executives and managers for personalized and consistent virtual desktop experiences
Assignment Type
Direct
Administrators manually assign specific session host VMs to individual users
Automatic
Azure Virtual Desktop automatically assigns a session host VM to users when they first log in to the host pool
Pooled host pool
Multiple users to share a set of session host virtual machines (VMs) within a host pool
Users are dynamically assigned an available session host VM from the pool
Two primary load balancing algorithms available for pooled host pools
Breadth-first load balancing
This algorithm distributes user sessions across the maximum number of available session host VMs in the host pool
Example
Pooled host pool with 4 session host VMs maximum session limit 6 , If there are 16 concurrent user sessions each VM will have 4 sessions on average maintaining a balanced distribution
Depth-first load balancing
This algorithm fills each session host VM to its maximum session limit before moving on to the next VM
Example
Pooled host pool with 4 session host VMs maximum session limit 6 , If there are 16 concurrent user sessions each VM will have maximum session limit then only move to next session
Application Group Type
Logical grouping of applications
App groups allow administrators to organize and manage application
Two primary app group types
Desktop App Group
Provides users with a full desktop experience
Allowing access to all applications session host VMs within the host pool
A desktop app group named Desktop Application Group
Automatically created when a host pool is created
Not support to create another desktop app group in the same host pool while a desktop app group exist
Example :
Software development team requires access to a complete Windows 10 desktop experience with various integrated development environments (IDEs), version control tools, and other applications
RemoteApp Group
Provides users access to individual applications installed on session host VMs Instead of presenting an entire desktop environment
You can create multiple remote app group as your requirement
Example:
A sales team needs access to a customer relationship management (CRM) application and a presentation tool
RemoteApp app group with these applications and assigns it to the sales team members
Application groups User Assignment
A user can be assigned to both a desktop app group and one or more RemoteApp app groups in the same host pool.
Users can only launch one type of app group per session
Workspace
A workspace is a logical grouping of application groups.
Each application group must be associated with a workspace for users to see the desktops and applications published to them
complete setup Guide click the below link
https://rijoskill.com/get-started-with-azure-virtual-desktop-a-complete-tutorial/
What is Host PoolCollection of one or more virtual machines (VMs) that serve as session hostsProviding virtual desktops or remote applications to usersEfficient management, scaling, and maintenance of the virtual desktop infrastructureExample Host PoolA company Acme Corp, with multiple departmentsSales, Marketing, and Engineering. Each department has different host poolSales Department Host PoolHost pool contains VMs with applications specific to the sales teamMarketing Department Host PoolHost pool contains VMs with applications specific to the Marketing teamEngineering Department Host PoolHost pool contains VMs with applications specific to the Engineering teamHost Pool TypePersonal host poolEach user is assigned a dedicated session host VMIndividual desktop experienceSettings, data, and applications remain the same between sessionsExample:A company assigns dedicated VMs to their executives and managers for personalized and consistent virtual desktop experiencesAssignment TypeDirectAdministrators manually assign specific session host VMs to individual usersAutomaticAzure Virtual Desktop automatically assigns a session host VM to users when they first log in to the host poolPooled host poolMultiple users to share a set of session host virtual machines (VMs) within a host poolUsers are dynamically assigned an available session host VM from the poolTwo primary load balancing algorithms available for pooled host poolsBreadth-first load balancingThis algorithm distributes user sessions across the maximum number of available session host VMs in the host poolExamplePooled host pool with 4 session host VMs maximum session limit 6 , If there are 16 concurrent user sessions each VM will have 4 sessions on average maintaining a balanced distributionDepth-first load balancingThis algorithm fills each session host VM to its maximum session limit before moving on to the next VMExamplePooled host pool with 4 session host VMs maximum session limit 6 , If there are 16 concurrent user sessions each VM will have maximum session limit then only move to next sessionApplication Group TypeLogical grouping of applicationsApp groups allow administrators to organize and manage applicationTwo primary app group typesDesktop App GroupProvides users with a full desktop experienceAllowing access to all applications session host VMs within the host poolA desktop app group named Desktop Application GroupAutomatically created when a host pool is createdNot support to create another desktop app group in the same host pool while a desktop app group existExample :Software development team requires access to a complete Windows 10 desktop experience with various integrated development environments (IDEs), version control tools, and other applicationsRemoteApp GroupProvides users access to individual applications installed on session host VMs Instead of presenting an entire desktop environmentYou can create multiple remote app group as your requirementExample:A sales team needs access to a customer relationship management (CRM) application and a presentation toolRemoteApp app group with these applications and assigns it to the sales team membersApplication groups User AssignmentA user can be assigned to both a desktop app group and one or more RemoteApp app groups in the same host pool.Users can only launch one type of app group per sessionWorkspaceA workspace is a logical grouping of application groups.Each application group must be associated with a workspace for users to see the desktops and applications published to themcomplete setup Guide click the below link https://rijoskill.com/get-started-with-azure-virtual-desktop-a-complete-tutorial/ Read More
Matlab Online Cannot “Open” Simulink File
Trying to open a Simulink file on Matlab Online causes a browser error, and the screen will be stuck with a loading circle, as shown in the picture above. The browser error is invisible to the user unless browser’s console is open. I hope the error in the picture will help the Matlab’s team to diagnose the problem. There are also a number of fetching errors to some US-east server that are not shown in the picture.
The issue can be replicated across Edge, Chrome, and Firefox.
It is currently impossible to load a simulink file from the computer unless the engineers figure out what the problem is. Is there a way for instructors to upload an online template and assign to students, which the students can retrieve and then modify?Trying to open a Simulink file on Matlab Online causes a browser error, and the screen will be stuck with a loading circle, as shown in the picture above. The browser error is invisible to the user unless browser’s console is open. I hope the error in the picture will help the Matlab’s team to diagnose the problem. There are also a number of fetching errors to some US-east server that are not shown in the picture.
The issue can be replicated across Edge, Chrome, and Firefox.
It is currently impossible to load a simulink file from the computer unless the engineers figure out what the problem is. Is there a way for instructors to upload an online template and assign to students, which the students can retrieve and then modify? Trying to open a Simulink file on Matlab Online causes a browser error, and the screen will be stuck with a loading circle, as shown in the picture above. The browser error is invisible to the user unless browser’s console is open. I hope the error in the picture will help the Matlab’s team to diagnose the problem. There are also a number of fetching errors to some US-east server that are not shown in the picture.
The issue can be replicated across Edge, Chrome, and Firefox.
It is currently impossible to load a simulink file from the computer unless the engineers figure out what the problem is. Is there a way for instructors to upload an online template and assign to students, which the students can retrieve and then modify? matlab online, simulink online MATLAB Answers — New Questions
Disp function with matlab coder
I’m experimenting with a simple hello world function to see how the coder works.
disp(‘Hello world’)
The mex version works, but when I make a standalone executable there is no output. In fact, the generated code for the function itself is completely empty ({}), like the disp() was purposely skipped over. Is this the expected behavior, or is there some setting I can change?
EDIT: I just tried fprintf(1,’Hello world’), and the converted code contains "cfprintf()". So still, purposely suppressing output? BTW, this is on Linux/2016b.I’m experimenting with a simple hello world function to see how the coder works.
disp(‘Hello world’)
The mex version works, but when I make a standalone executable there is no output. In fact, the generated code for the function itself is completely empty ({}), like the disp() was purposely skipped over. Is this the expected behavior, or is there some setting I can change?
EDIT: I just tried fprintf(1,’Hello world’), and the converted code contains "cfprintf()". So still, purposely suppressing output? BTW, this is on Linux/2016b. I’m experimenting with a simple hello world function to see how the coder works.
disp(‘Hello world’)
The mex version works, but when I make a standalone executable there is no output. In fact, the generated code for the function itself is completely empty ({}), like the disp() was purposely skipped over. Is this the expected behavior, or is there some setting I can change?
EDIT: I just tried fprintf(1,’Hello world’), and the converted code contains "cfprintf()". So still, purposely suppressing output? BTW, this is on Linux/2016b. matlab coder MATLAB Answers — New Questions
How to convert *.pth file to *.onnx?
Hi,
I used Pointpillars for 3D object detection on my own dataset (just using *.bin files and their *.txt labels) using Pytorch (Cuda). The format of the trained model is *.pth. I would like to convert the *.pth file to *.onnx format. I think I should define a model (Pointpillars) and a dummy tensor/input in this regard. I am not sure how to define them. Is there any MATLAB example/library in this regard?
I appreciate any help in advance.
Thank you,
AbbasHi,
I used Pointpillars for 3D object detection on my own dataset (just using *.bin files and their *.txt labels) using Pytorch (Cuda). The format of the trained model is *.pth. I would like to convert the *.pth file to *.onnx format. I think I should define a model (Pointpillars) and a dummy tensor/input in this regard. I am not sure how to define them. Is there any MATLAB example/library in this regard?
I appreciate any help in advance.
Thank you,
Abbas Hi,
I used Pointpillars for 3D object detection on my own dataset (just using *.bin files and their *.txt labels) using Pytorch (Cuda). The format of the trained model is *.pth. I would like to convert the *.pth file to *.onnx format. I think I should define a model (Pointpillars) and a dummy tensor/input in this regard. I am not sure how to define them. Is there any MATLAB example/library in this regard?
I appreciate any help in advance.
Thank you,
Abbas pth, onnx, pointpillars MATLAB Answers — New Questions
Excel Formulas HELP!!!
I am reaching out for last minute help, please please.
I have an assignment due by midnight and need help with formulas. Honestly I just don’t know how to use them properly. I’ve tried several times and get the Value error or something weird but no numbers are coming thru. I thought i was entering these formulas correctly.
Formula for: Converting my budget into the currency for said country and convert the amount of units of the local currency into dollars.
Formula for: I need to use excel functions to find the slope and y-intercept of the best-fit line for the given coordinates. Also need to calculate the avrg weekly income for all the years of edu using the slope and y-intercept to calculate. What is BLS DATA as a scatterplot?
Formula for: convert miligrams per milliliter to micrograms per teaspoon (this is just one out of 4 formulas that I need.
I am reaching out for last minute help, please please. I have an assignment due by midnight and need help with formulas. Honestly I just don’t know how to use them properly. I’ve tried several times and get the Value error or something weird but no numbers are coming thru. I thought i was entering these formulas correctly. Formula for: Converting my budget into the currency for said country and convert the amount of units of the local currency into dollars. Formula for: I need to use excel functions to find the slope and y-intercept of the best-fit line for the given coordinates. Also need to calculate the avrg weekly income for all the years of edu using the slope and y-intercept to calculate. What is BLS DATA as a scatterplot? Formula for: convert miligrams per milliliter to micrograms per teaspoon (this is just one out of 4 formulas that I need. Read More
Private SharePoint sites with Everyone except external users
I’m trying to find the Graph API endpoints that will allow me to get a list of all SharePoint sites that are private (not public). And then check to see if those sites have the group Everyone except external users added. Any help would be much appreciated.
I’m trying to find the Graph API endpoints that will allow me to get a list of all SharePoint sites that are private (not public). And then check to see if those sites have the group Everyone except external users added. Any help would be much appreciated. Read More
How to set parameters in an FMU from Matlab Simulink ?
We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated.We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated. We have an FMU developed using MSVC 2022 for Windows x64. The FMU imports in Simulink nicely and I am able to see the I/O ports as intended. I am also able to access the inputs set from the environment using assigning a constant / signal generator to the input ports.
I would now like to also set the parameters from the workspace. I have tried using several of the callback functions at the model (Simulink) level as well as the block level. However, I am still not able to see the supplied values affect the parameter values inside the FMU. I am testing this by logging the output in various functions. I only want to set the parameters once at the start of simulation and they are defined like so in the modelDescription.xml file:
<Float64 name="LP" valueReference="1" causality="parameter" variability="fixed" initial="exact" description="POS_THICKNESS" declaredType="Length" start=".1320e-3" />
While the default value is already set, we would like the end user to be able to configure it once for every run.
Any guidance with how to debug this would be appreciated. fmu, co-simulation, simulink MATLAB Answers — New Questions
how to calculate a derivative
can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example.can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example. can some one guide me how to calculate a derivative and integration in matlab . can you please give a little example. derivative and integration MATLAB Answers — New Questions
how to create a matrix with variables in it?
for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2]for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2] for eg., to create following matrix and work on it,
A=[x1 x1*x2 ; x1^2 x2^2] variable matrix MATLAB Answers — New Questions
Can I use a Copilot with Microsoft 365 even if they are licensed in different regions?
Hi, I work in a company that has offices in Australia, New Zealand and Singapore. My Singapore-based office has decided to adopt Copilot for our work tasks and we wish to engage a Singapore vendor to get the necessary licenses. However, our Microsoft 365 licenses are from New Zealand. Will this pose a problem?
We really want to engage the Singapore vendor because of how we’d be able to correspond more closely regarding the Copilot functionality. I did a preliminary search online and the information I found shows that this arrangement should be fine since Microsoft 365 and Copilot are separate products and it doesn’t matter if they are bought from different regions (save that it’ll affect where you get customer support from, etc). Can I confirm my understanding with the community?
Hi, I work in a company that has offices in Australia, New Zealand and Singapore. My Singapore-based office has decided to adopt Copilot for our work tasks and we wish to engage a Singapore vendor to get the necessary licenses. However, our Microsoft 365 licenses are from New Zealand. Will this pose a problem? We really want to engage the Singapore vendor because of how we’d be able to correspond more closely regarding the Copilot functionality. I did a preliminary search online and the information I found shows that this arrangement should be fine since Microsoft 365 and Copilot are separate products and it doesn’t matter if they are bought from different regions (save that it’ll affect where you get customer support from, etc). Can I confirm my understanding with the community? Read More
How to draw free-hand sketches using imfreehand ?
I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help …I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help … I have to take as input hand drawn sketches … I have tried using imfreehand() but it completes the figures itself.
I also tried the solution provided by Doug Schwarz in
<http://www.mathworks.in/matlabcentral/newsreader/view_thread/30168#75552>
where he coded the following :
function sketch(cmd)
if nargin == 0
cmd = ‘init’;
end
switch cmd
case ‘init’
fig = figure(‘DoubleBuffer’,’on’,’back’,’off’);
info.ax = axes(‘XLim’,[0 1],’YLim’,[0 1]);
info.drawing = [];
info.x = [];
info.y = [];
set(fig,’UserData’,info,…
‘WindowButtonDownFcn’,[mfilename,’ down’])
case ‘down’
myname = mfilename;
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = curpos(1,1);
info.y = curpos(1,2);
info.drawing = line(info.x,info.y,’Color’,’k’);
set(fig,’UserData’,info,…
‘WindowButtonMotionFcn’,[myname,’ move’],…
‘WindowButtonUpFcn’,[myname,’ up’])
case ‘move’
fig = gcbf;
info = get(fig,’UserData’);
curpos = get(info.ax,’CurrentPoint’);
info.x = [info.x;curpos(1,1)];
info.y = [info.y;curpos(1,2)];
set(info.drawing,’XData’,info.x,’YData’,info.y)
set(fig,’UserData’,info)
case ‘up’
fig = gcbf;
set(fig,’WindowButtonMotionFcn’,”,…
‘WindowButtonUpFcn’,”)
end
But I am not able to save the sketch being drawn or access it ..
Please help … freehand sketch MATLAB Answers — New Questions
Automated bad SEGMENT detection in EEGLAB
Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights.Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights. Hello everyone,
I am new to EEG pre-processing. I wanted to know if there is any way to detect bad segments in the EEG data automatically in EEGLAB? I found resources for automated detection of bad channels and arifact detection and rejection using ICLabel. However, i do not find any for bad segment detection and rejection. I have a lot of data and manually detecting it will be very time consuming. I heard about AMICA. But it seems to do ICA decomposition and I am satified with runica. If I am not wrong, AMICA doesnt detect bad segments.
Looking forward to your insights. amica, preprocessing, bad segment, eeglab MATLAB Answers — New Questions
To take the partial derivative of a function using matlab
Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You!Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You! Here is a particular code. Can anyone please help me in taking the analytical (partial) derivative of the function ‘F’ along X (i.e., w.r.t. X) along Y (i.e., w.r.t. Y) and along the diagonal (i.e., w.r.t. X plus w.r.t. Y) using matlab command.
[X, Y]=meshgrid(-1:2/511:+1, -1:2/511:+1);
F=sqrt(3).*(2.*(X.^2+Y.^2)-1);
Thanking You! differential equations MATLAB Answers — New Questions
Different dilution effect on the kinetics of a time course
Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B.Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B. Hi to everyone!
To simplify the explanation and the problem, I simulated the kinetics of an irreversible first-order reaction, A -> B. I implemented it in two independent compartments, R and P. I simulated the effect of a dilution in R by doubling at t= 0,1 the R volume. I programmed in P that, at t = 0.1, the instantaneous concentration of A and B would be reduced by half. I am sending an attach with the implementation of these simulations in the Simbiology interface.
When the simulations of the two compartments are plotted, it can be seen that the responses are not equal. That is, from t = 0.1 s, the reaction follow an exponential function in R with half of the initial amplitude and half of the initial value of k1. That is, the relaxation time is doubled. Meanwhile, in P, from t = 0.1, the reaction follows exponential kinetics with half the amplitude value but maintaining the initial value of k = 10. Without a doubt, the correct simulation is the latter (compartment P) where only the effect is observed in the amplitude and not in the relaxation time. Could you tell me what the error is that makes these kinetics that should be equal not be?
Thank you in advance!
Luis B. simbiolog MATLAB Answers — New Questions
General Availability of SQL FCI and AG Features SQL Server Enabled by Azure Arc
We have good news. Two business continuity features for SQL Server enabled by Azure Arc are now generally available:
View Failover Cluster Instance
Manage Availability Group
With Azure Arc, these features help you manage high availability and disaster recovery for SQL Server workloads across on-premises, hybrid and multi- cloud environment. You can now manage them all from the comfort and convenience of the Azure portal.
View Failover Cluster Instance lets you see your failover cluster instances. You can find out things like:
Which nodes are active or passive
What is the network name
What databases they have
This capability mirrors the convenience of managing standalone instances of SQL Server enabled by Azure Arc.
To learn more, read Viewing Always On Failover Cluster Instances in Azure Arc.
Manage Availability Group lets you check and control your availability groups. You can do things like:
See what availability groups you have
See their status and health
Failover to another node, if needed
To learn more, read Inventory and Status of Always On Availability Groups.
We want to hear your feedback about these features. Thank you for choosing Azure Arc-enabled SQL Server for your on-premises, hybrid and multi-cloud solutions.
Microsoft Tech Community – Latest Blogs –Read More
Drop Down Menu to display text from specific cells.
Hi.
I’m a teacher, and I’m trying to create a marking assessment sheet, in which if I select a Level from a drop down menu, it will display the relevant information.
I’ve looked at lots of functions, but have really struggled to find anything that works.
Basically, my mark scheme has 3 columns (grids) and within each column, there are 5 levels, which each have different information. What I want to happen is that as soon as a user selects the level from a grid, it displays the information from the mark scheme in the cell underneath (see picture underneath, I couldn’t fit all of the data in the print screen). I can’t use IF, as there are more than two levels and I’ve tried using VLOOKUP to no avail. Can anyone help? The file is attached.
Hi. I’m a teacher, and I’m trying to create a marking assessment sheet, in which if I select a Level from a drop down menu, it will display the relevant information.I’ve looked at lots of functions, but have really struggled to find anything that works. Basically, my mark scheme has 3 columns (grids) and within each column, there are 5 levels, which each have different information. What I want to happen is that as soon as a user selects the level from a grid, it displays the information from the mark scheme in the cell underneath (see picture underneath, I couldn’t fit all of the data in the print screen). I can’t use IF, as there are more than two levels and I’ve tried using VLOOKUP to no avail. Can anyone help? The file is attached. Read More