Month: September 2024
Is the memory usage of Windows Explorer within a normal range?
Hello,
Lately, I’ve observed that Windows Explorer seems to be consuming a significant amount of RAM. It appears that the usage keeps increasing after it’s opened, and even after a while, it doesn’t decrease. At times, I’ve seen it surpassing the 700MB mark. I can manually reduce the usage by resetting the task, but it doesn’t seem like a sustainable solution. I’m unsure if this is expected behavior, hence I wanted to seek clarification on this matter.
All drivers and software on my Windows 11 system, including the chipset, are up to date. Here are my system specs:
– CPU: 7800X3D
– GPU: 4090
– RAM: 64GB @ 6000mhz
– Windows installed on a 1TB M.2 SSD
I appreciate your assistance in reviewing this issue.
Thank you,
Dan.
Hello,Lately, I’ve observed that Windows Explorer seems to be consuming a significant amount of RAM. It appears that the usage keeps increasing after it’s opened, and even after a while, it doesn’t decrease. At times, I’ve seen it surpassing the 700MB mark. I can manually reduce the usage by resetting the task, but it doesn’t seem like a sustainable solution. I’m unsure if this is expected behavior, hence I wanted to seek clarification on this matter. All drivers and software on my Windows 11 system, including the chipset, are up to date. Here are my system specs: – CPU: 7800X3D – GPU: 4090 – RAM: 64GB @ 6000mhz – Windows installed on a 1TB M.2 SSD I appreciate your assistance in reviewing this issue.Thank you,Dan. Read More
Errors in EventLog occurred due to Metadata staging failure – Event ID 131
Greetings,
I recently encountered an issue with Event ID 131 errors in the event log indicating that the Metadata staging failed during my PC’s startup. After conducting some research on Google, I discovered that the data is fetched from a specific link in the registry:
ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDevice Metadata
-DeviceMetadataServiceURL.
I tested this on both the Windows 11 beta and Canary builds, which directed me to http://dmd.metaservices.microsoft.com/metadata.svc via the link http://go.microsoft.com/fwlink/?LinkID=252669&clcid=0x409. However, I encountered a 502 Bad Gateway error when attempting to access this web address through three different ISPs, suggesting a potential issue on Microsoft’s end.
I have reported this problem on the Microsoft Feedback Hub under “The Windows Insider Program.” If you are also experiencing this issue, please provide additional details here. Your input is appreciated. Thank you.
Greetings, I recently encountered an issue with Event ID 131 errors in the event log indicating that the Metadata staging failed during my PC’s startup. After conducting some research on Google, I discovered that the data is fetched from a specific link in the registry: ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDevice Metadata-DeviceMetadataServiceURL. I tested this on both the Windows 11 beta and Canary builds, which directed me to http://dmd.metaservices.microsoft.com/metadata.svc via the link http://go.microsoft.com/fwlink/?LinkID=252669&clcid=0x409. However, I encountered a 502 Bad Gateway error when attempting to access this web address through three different ISPs, suggesting a potential issue on Microsoft’s end. I have reported this problem on the Microsoft Feedback Hub under “The Windows Insider Program.” If you are also experiencing this issue, please provide additional details here. Your input is appreciated. Thank you. Read More
How to Change Explorer View Settings Permanently in Windows 11
Hello everyone,
I wanted to inquire if there is a method in the registry to permanently set the Explorer view to a specific type? The folder options/apply method seems to only work temporarily before everything switches back to a different view. I’ve also attempted this in the general C directory or My PC with minimal effect. Several years ago, when I was still using Windows 7, I encountered a similar issue and posted about it on SevenForums. Unfortunately, no real solution was provided. It was suggested that the problem may be due to mixed file types located outside the folder being customized, which causes folders with those file types elsewhere on the PC to not be affected by the ‘apply to all’ setting. I am wondering if anyone knows of a workaround for this issue. I am open to completely eliminating all other view options in favor of my preferred one, and if there is a registry tweak to achieve this, I would be willing to give it a try.
Any assistance would be greatly appreciated.
Hello everyone, I wanted to inquire if there is a method in the registry to permanently set the Explorer view to a specific type? The folder options/apply method seems to only work temporarily before everything switches back to a different view. I’ve also attempted this in the general C directory or My PC with minimal effect. Several years ago, when I was still using Windows 7, I encountered a similar issue and posted about it on SevenForums. Unfortunately, no real solution was provided. It was suggested that the problem may be due to mixed file types located outside the folder being customized, which causes folders with those file types elsewhere on the PC to not be affected by the ‘apply to all’ setting. I am wondering if anyone knows of a workaround for this issue. I am open to completely eliminating all other view options in favor of my preferred one, and if there is a registry tweak to achieve this, I would be willing to give it a try. Any assistance would be greatly appreciated. Read More
Fixing a Chaotic Text Formatting Issue: Enhancing Clarity and Readability
Hello everyone, I recently acquired a new laptop primarily for everyday internet browsing, yet I am extremely displeased with the font/text display quality. The text appears to be quite rough and abnormal.
Being new to Windows 11, I sought information on this issue before reaching out here. Despite following various recommended solutions from online sources, including a specific video tutorial, the problem persists.
This font/text irregularity isn’t confined to a single application; it is widespread across all platforms. While Firefox seems slightly better than Edge, the overall text appearance is still unsatisfactory.
To better convey my concern, I will also provide some screenshots for reference. I wonder if others perceive the same anomaly in text smoothness as I do. Comparing to previous laptops running older Windows versions, the current display lacks the expected crispness.
I am eagerly seeking assistance as this issue is increasingly frustrating me. Your help in resolving this matter would be highly appreciated as I find it difficult to tolerate this discrepancy any longer.
Hello everyone, I recently acquired a new laptop primarily for everyday internet browsing, yet I am extremely displeased with the font/text display quality. The text appears to be quite rough and abnormal. Being new to Windows 11, I sought information on this issue before reaching out here. Despite following various recommended solutions from online sources, including a specific video tutorial, the problem persists. This font/text irregularity isn’t confined to a single application; it is widespread across all platforms. While Firefox seems slightly better than Edge, the overall text appearance is still unsatisfactory. To better convey my concern, I will also provide some screenshots for reference. I wonder if others perceive the same anomaly in text smoothness as I do. Comparing to previous laptops running older Windows versions, the current display lacks the expected crispness. I am eagerly seeking assistance as this issue is increasingly frustrating me. Your help in resolving this matter would be highly appreciated as I find it difficult to tolerate this discrepancy any longer. Read More
Troubleshooting HP SpareKey Recovery Problems
After three years without any issues, my PC suddenly encountered a problem when I turned it on, leading me to an unexpected screen.
I attempted to use the Windows + B shortcut twice, but that didn’t resolve the issue, and the Ctrl + Alt + Delete combination also did not work.
Despite my search efforts, I could not locate an HP sparekey USB recovery key online.
I would greatly appreciate any assistance or guidance on how to resolve this situation.
After three years without any issues, my PC suddenly encountered a problem when I turned it on, leading me to an unexpected screen. I attempted to use the Windows + B shortcut twice, but that didn’t resolve the issue, and the Ctrl + Alt + Delete combination also did not work. Despite my search efforts, I could not locate an HP sparekey USB recovery key online. I would greatly appreciate any assistance or guidance on how to resolve this situation. Read More
New Laptop with Windows 11 Home in S Mode
One of my family members recently acquired a new HP laptop, and upon its initial setup, it was running Windows 11 Home in S mode. We successfully switched it out of S mode and reverted it to regular Windows 11 Home, as they preferred to avoid the restrictions of S mode.
I’m curious if this trend is becoming common with new computer purchases, specifically limited to HP machines. I recall a recent discussion on a related topic, but it’s been a while since I last purchased a new PC, prompting my inquiry.
One of my family members recently acquired a new HP laptop, and upon its initial setup, it was running Windows 11 Home in S mode. We successfully switched it out of S mode and reverted it to regular Windows 11 Home, as they preferred to avoid the restrictions of S mode. I’m curious if this trend is becoming common with new computer purchases, specifically limited to HP machines. I recall a recent discussion on a related topic, but it’s been a while since I last purchased a new PC, prompting my inquiry. Read More
Disabling HP SpareKey: Troubleshooting for Recovery
When I turned on my computer, which has been problem-free for the past three years, I encountered an unfamiliar screen. I attempted the Windows + B shortcut twice, but it was unsuccessful, as was the Ctrl + Alt + Delete combination. I searched the internet for an HP SpareKey USB recovery key without success. I would greatly appreciate any assistance.
When I turned on my computer, which has been problem-free for the past three years, I encountered an unfamiliar screen. I attempted the Windows + B shortcut twice, but it was unsuccessful, as was the Ctrl + Alt + Delete combination. I searched the internet for an HP SpareKey USB recovery key without success. I would greatly appreciate any assistance. Read More
instantaneous power control of SCIM by FOC method
Hello. I am simulating the control of a squirrel-cage induction motor with FOC (Field-Oriented Control). When the speed range exceeds a certain threshold, the controller becomes unresponsive and diverges. Please advise🙏Hello. I am simulating the control of a squirrel-cage induction motor with FOC (Field-Oriented Control). When the speed range exceeds a certain threshold, the controller becomes unresponsive and diverges. Please advise🙏 Hello. I am simulating the control of a squirrel-cage induction motor with FOC (Field-Oriented Control). When the speed range exceeds a certain threshold, the controller becomes unresponsive and diverges. Please advise🙏 field oriented control, instantaneous torque control, asynchronous machine, power point tracking MATLAB Answers — New Questions
Invalid Mex File: Gateway Function is missing in compiled app
I’ve built an app in appdesigner that uses some C++ code and Mex. I then compiled this app and sent it to some users using Windows 10. It works fine on my computer and at least one of my users is able to get it to work, but another user is getting this error when she tries to run it:
Invalid Mex-file ‘C:UsersusernameappDataLocal…BackgroundSubtractorOCV.mexw64’ : Gateway function is missing.
I’m using a background subtractor script from openCV provided by Matlab.
None of the answers I’ve seen around this issue online have helped. Thanks for any help you can provide.I’ve built an app in appdesigner that uses some C++ code and Mex. I then compiled this app and sent it to some users using Windows 10. It works fine on my computer and at least one of my users is able to get it to work, but another user is getting this error when she tries to run it:
Invalid Mex-file ‘C:UsersusernameappDataLocal…BackgroundSubtractorOCV.mexw64’ : Gateway function is missing.
I’m using a background subtractor script from openCV provided by Matlab.
None of the answers I’ve seen around this issue online have helped. Thanks for any help you can provide. I’ve built an app in appdesigner that uses some C++ code and Mex. I then compiled this app and sent it to some users using Windows 10. It works fine on my computer and at least one of my users is able to get it to work, but another user is getting this error when she tries to run it:
Invalid Mex-file ‘C:UsersusernameappDataLocal…BackgroundSubtractorOCV.mexw64’ : Gateway function is missing.
I’m using a background subtractor script from openCV provided by Matlab.
None of the answers I’ve seen around this issue online have helped. Thanks for any help you can provide. mex, mex compiler, appdesigner MATLAB Answers — New Questions
Undefined function for input arguments of type ‘matlab.ui.Figure’.
Hi All,
Trying to run the following code by calling imspline (imspline is a defined class: classdef imspline < handle):
h = imspline(gca,’lineColor’,[1 0.5 0],’pointColor’,[0.2 0.8 0.4],’lineWidth’,5);
It gives this error: Undefined function ‘addImPoint’ for input arguments of type ‘matlab.ui.Figure’. Please give some suggestions. Would this error related to MATLAB versions? Thanks a lot in advance.
function obj = imspline(varargin)
% Set figure and axis
if nargin > 0 && isnumeric(varargin{1})%HD Original Code
obj.hAx = varargin{1};
obj.hFig = get(obj.hAx,’Parent’);
else
obj.hFig = figure;
obj.hAx = axes;
end
set(obj.hAx,’XlimMode’,’Manual’,’YlimMode’,’Manual’);
hold(obj.hAx);
% Crosshair over axis
hFig = obj.hFig;
idxCopy = find(strcmp(varargin,’copy’));
if ~isempty(idxCopy)
import_struct = varargin{idxCopy+1}.exportProperties;
obj.lineColor = import_struct.lineColor;
obj.pointColor = import_struct.pointColor;
obj.lineWidth = import_struct.lineWidth;
obj.saveState = import_struct.saveState;
obj.isOpen = 0;
obj.addGraphics;
return
end
iptPointerManager(hFig);
crosshair = @(hFig, currentPoint)…
set(hFig, ‘Pointer’, ‘crosshair’);
iptSetPointerBehavior(obj.hAx,crosshair);
% Add new point at buttonup
obj.id.addImPoint_id = iptaddcallback(obj.hFig,’WindowButtonUpFcn’,{@addImPoint,obj}); %HD Original Code (Error)
obj.id.animateSpline_id = [];
% Parse input arguments
for c = 1:length(varargin)
if ischar(varargin{c})
varargin{c} = lower(varargin{c});
end
end
idxLineColor = find(strcmp(varargin,’linecolor’));
idxPointColor = find(strcmp(varargin,’pointcolor’));
idxLineWidth = find(strcmp(varargin,’linewidth’));
if ~isempty(idxLineColor)
obj.lineColor = varargin{idxLineColor+1};
end
if ~isempty(idxPointColor)
obj.pointColor = varargin{idxPointColor+1};
end
if ~isempty(idxLineWidth)
obj.lineWidth = varargin{idxLineWidth+1};
end
end
function obj = addImPoint(src,event,obj)
pos = get(obj.hAx,’CurrentPoint’);
button = get(obj.hFig,’SelectionType’);
if strcmp(button,’normal’)
% add new impoint and set properties
x = pos(1,1);
y = pos(1,2);
if isempty(obj.hVert)
obj.hLine = line(x,y,’Parent’,obj.hAx);
set(obj.hLine,’Color’,obj.lineColor,’LineWidth’,obj.lineWidth);
end
hNewImpoint = impoint(obj.hAx,x,y);
hNewImpoint.setColor(obj.pointColor);
obj.hVert{end+1} = hNewImpoint;
if isempty(obj.id.animateSpline_id)
obj.id.animateSpline_id = iptaddcallback(obj.hFig,’WindowButtonMotionFcn’,{@animateSpline,obj});
end
elseif strcmp(button,’alt’)
% Remove old axis and figure properties
obj.isOpen = 0;
iptremovecallback(obj.hFig, ‘WindowButtonMotionFcn’,obj.id.animateSpline_id);
animateSpline_id = [];
iptremovecallback(obj.hFig, ‘WindowButtonUpFcn’,obj.id.addImPoint_id);
addImPoint_id = [];
iptSetPointerBehavior(obj.hAx,[]);
% Draw new spline and make it dragable
obj.drawSpline;
for cVert = 1:length(obj.hVert)
obj.hVert{cVert}.addNewPositionCallback(@refreshVertexPosition);
end
iptaddcallback(obj.hLine,’ButtonDownFcn’,{@lineButtonDown,obj});
% Set the arrow pointer for the line
hFig = obj.hFig;
iptPointerManager(hFig);
pointerBehavior.enterFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Crosshair’);
pointerBehavior.exitFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Arrow’);
pointerBehavior.traverseFcn = [];
iptSetPointerBehavior(obj.hLine,pointerBehavior);
obj.isOpen = 0;
notify(obj,’SplineClosing’);
notify(obj,’SplineUpdated’);
end
function animateSpline(varargin)
obj.drawSpline;
end
function refreshVertexPosition(varargin)
obj.drawSpline;
notify(obj,’SplineUpdated’);
end
endHi All,
Trying to run the following code by calling imspline (imspline is a defined class: classdef imspline < handle):
h = imspline(gca,’lineColor’,[1 0.5 0],’pointColor’,[0.2 0.8 0.4],’lineWidth’,5);
It gives this error: Undefined function ‘addImPoint’ for input arguments of type ‘matlab.ui.Figure’. Please give some suggestions. Would this error related to MATLAB versions? Thanks a lot in advance.
function obj = imspline(varargin)
% Set figure and axis
if nargin > 0 && isnumeric(varargin{1})%HD Original Code
obj.hAx = varargin{1};
obj.hFig = get(obj.hAx,’Parent’);
else
obj.hFig = figure;
obj.hAx = axes;
end
set(obj.hAx,’XlimMode’,’Manual’,’YlimMode’,’Manual’);
hold(obj.hAx);
% Crosshair over axis
hFig = obj.hFig;
idxCopy = find(strcmp(varargin,’copy’));
if ~isempty(idxCopy)
import_struct = varargin{idxCopy+1}.exportProperties;
obj.lineColor = import_struct.lineColor;
obj.pointColor = import_struct.pointColor;
obj.lineWidth = import_struct.lineWidth;
obj.saveState = import_struct.saveState;
obj.isOpen = 0;
obj.addGraphics;
return
end
iptPointerManager(hFig);
crosshair = @(hFig, currentPoint)…
set(hFig, ‘Pointer’, ‘crosshair’);
iptSetPointerBehavior(obj.hAx,crosshair);
% Add new point at buttonup
obj.id.addImPoint_id = iptaddcallback(obj.hFig,’WindowButtonUpFcn’,{@addImPoint,obj}); %HD Original Code (Error)
obj.id.animateSpline_id = [];
% Parse input arguments
for c = 1:length(varargin)
if ischar(varargin{c})
varargin{c} = lower(varargin{c});
end
end
idxLineColor = find(strcmp(varargin,’linecolor’));
idxPointColor = find(strcmp(varargin,’pointcolor’));
idxLineWidth = find(strcmp(varargin,’linewidth’));
if ~isempty(idxLineColor)
obj.lineColor = varargin{idxLineColor+1};
end
if ~isempty(idxPointColor)
obj.pointColor = varargin{idxPointColor+1};
end
if ~isempty(idxLineWidth)
obj.lineWidth = varargin{idxLineWidth+1};
end
end
function obj = addImPoint(src,event,obj)
pos = get(obj.hAx,’CurrentPoint’);
button = get(obj.hFig,’SelectionType’);
if strcmp(button,’normal’)
% add new impoint and set properties
x = pos(1,1);
y = pos(1,2);
if isempty(obj.hVert)
obj.hLine = line(x,y,’Parent’,obj.hAx);
set(obj.hLine,’Color’,obj.lineColor,’LineWidth’,obj.lineWidth);
end
hNewImpoint = impoint(obj.hAx,x,y);
hNewImpoint.setColor(obj.pointColor);
obj.hVert{end+1} = hNewImpoint;
if isempty(obj.id.animateSpline_id)
obj.id.animateSpline_id = iptaddcallback(obj.hFig,’WindowButtonMotionFcn’,{@animateSpline,obj});
end
elseif strcmp(button,’alt’)
% Remove old axis and figure properties
obj.isOpen = 0;
iptremovecallback(obj.hFig, ‘WindowButtonMotionFcn’,obj.id.animateSpline_id);
animateSpline_id = [];
iptremovecallback(obj.hFig, ‘WindowButtonUpFcn’,obj.id.addImPoint_id);
addImPoint_id = [];
iptSetPointerBehavior(obj.hAx,[]);
% Draw new spline and make it dragable
obj.drawSpline;
for cVert = 1:length(obj.hVert)
obj.hVert{cVert}.addNewPositionCallback(@refreshVertexPosition);
end
iptaddcallback(obj.hLine,’ButtonDownFcn’,{@lineButtonDown,obj});
% Set the arrow pointer for the line
hFig = obj.hFig;
iptPointerManager(hFig);
pointerBehavior.enterFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Crosshair’);
pointerBehavior.exitFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Arrow’);
pointerBehavior.traverseFcn = [];
iptSetPointerBehavior(obj.hLine,pointerBehavior);
obj.isOpen = 0;
notify(obj,’SplineClosing’);
notify(obj,’SplineUpdated’);
end
function animateSpline(varargin)
obj.drawSpline;
end
function refreshVertexPosition(varargin)
obj.drawSpline;
notify(obj,’SplineUpdated’);
end
end Hi All,
Trying to run the following code by calling imspline (imspline is a defined class: classdef imspline < handle):
h = imspline(gca,’lineColor’,[1 0.5 0],’pointColor’,[0.2 0.8 0.4],’lineWidth’,5);
It gives this error: Undefined function ‘addImPoint’ for input arguments of type ‘matlab.ui.Figure’. Please give some suggestions. Would this error related to MATLAB versions? Thanks a lot in advance.
function obj = imspline(varargin)
% Set figure and axis
if nargin > 0 && isnumeric(varargin{1})%HD Original Code
obj.hAx = varargin{1};
obj.hFig = get(obj.hAx,’Parent’);
else
obj.hFig = figure;
obj.hAx = axes;
end
set(obj.hAx,’XlimMode’,’Manual’,’YlimMode’,’Manual’);
hold(obj.hAx);
% Crosshair over axis
hFig = obj.hFig;
idxCopy = find(strcmp(varargin,’copy’));
if ~isempty(idxCopy)
import_struct = varargin{idxCopy+1}.exportProperties;
obj.lineColor = import_struct.lineColor;
obj.pointColor = import_struct.pointColor;
obj.lineWidth = import_struct.lineWidth;
obj.saveState = import_struct.saveState;
obj.isOpen = 0;
obj.addGraphics;
return
end
iptPointerManager(hFig);
crosshair = @(hFig, currentPoint)…
set(hFig, ‘Pointer’, ‘crosshair’);
iptSetPointerBehavior(obj.hAx,crosshair);
% Add new point at buttonup
obj.id.addImPoint_id = iptaddcallback(obj.hFig,’WindowButtonUpFcn’,{@addImPoint,obj}); %HD Original Code (Error)
obj.id.animateSpline_id = [];
% Parse input arguments
for c = 1:length(varargin)
if ischar(varargin{c})
varargin{c} = lower(varargin{c});
end
end
idxLineColor = find(strcmp(varargin,’linecolor’));
idxPointColor = find(strcmp(varargin,’pointcolor’));
idxLineWidth = find(strcmp(varargin,’linewidth’));
if ~isempty(idxLineColor)
obj.lineColor = varargin{idxLineColor+1};
end
if ~isempty(idxPointColor)
obj.pointColor = varargin{idxPointColor+1};
end
if ~isempty(idxLineWidth)
obj.lineWidth = varargin{idxLineWidth+1};
end
end
function obj = addImPoint(src,event,obj)
pos = get(obj.hAx,’CurrentPoint’);
button = get(obj.hFig,’SelectionType’);
if strcmp(button,’normal’)
% add new impoint and set properties
x = pos(1,1);
y = pos(1,2);
if isempty(obj.hVert)
obj.hLine = line(x,y,’Parent’,obj.hAx);
set(obj.hLine,’Color’,obj.lineColor,’LineWidth’,obj.lineWidth);
end
hNewImpoint = impoint(obj.hAx,x,y);
hNewImpoint.setColor(obj.pointColor);
obj.hVert{end+1} = hNewImpoint;
if isempty(obj.id.animateSpline_id)
obj.id.animateSpline_id = iptaddcallback(obj.hFig,’WindowButtonMotionFcn’,{@animateSpline,obj});
end
elseif strcmp(button,’alt’)
% Remove old axis and figure properties
obj.isOpen = 0;
iptremovecallback(obj.hFig, ‘WindowButtonMotionFcn’,obj.id.animateSpline_id);
animateSpline_id = [];
iptremovecallback(obj.hFig, ‘WindowButtonUpFcn’,obj.id.addImPoint_id);
addImPoint_id = [];
iptSetPointerBehavior(obj.hAx,[]);
% Draw new spline and make it dragable
obj.drawSpline;
for cVert = 1:length(obj.hVert)
obj.hVert{cVert}.addNewPositionCallback(@refreshVertexPosition);
end
iptaddcallback(obj.hLine,’ButtonDownFcn’,{@lineButtonDown,obj});
% Set the arrow pointer for the line
hFig = obj.hFig;
iptPointerManager(hFig);
pointerBehavior.enterFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Crosshair’);
pointerBehavior.exitFcn = @(hFig,currentPoint) set(hFig,’Pointer’,’Arrow’);
pointerBehavior.traverseFcn = [];
iptSetPointerBehavior(obj.hLine,pointerBehavior);
obj.isOpen = 0;
notify(obj,’SplineClosing’);
notify(obj,’SplineUpdated’);
end
function animateSpline(varargin)
obj.drawSpline;
end
function refreshVertexPosition(varargin)
obj.drawSpline;
notify(obj,’SplineUpdated’);
end
end gui callback MATLAB Answers — New Questions
Need Code for Kinematics
I need the code for the following Kinematics equation
" Velocity
VB= AA + ( AB x r AB )
VC = VB + ( ω BC x r BC )
Accelaration
AB = AA +( ( AB X (ω AB x r AB )) + ( α AB x rAB)
AC = AB + ( ( BC X ( BC x r BC )) + ( α BC x r BC )
r AB = AB( sin θ i + cos θ j )
r BC = BC( sin α i + cos α j )
User need to input:
Distance: AB and BC
Angle: α and θ
k value = AB and α AB"
Need user ask to inputI need the code for the following Kinematics equation
" Velocity
VB= AA + ( AB x r AB )
VC = VB + ( ω BC x r BC )
Accelaration
AB = AA +( ( AB X (ω AB x r AB )) + ( α AB x rAB)
AC = AB + ( ( BC X ( BC x r BC )) + ( α BC x r BC )
r AB = AB( sin θ i + cos θ j )
r BC = BC( sin α i + cos α j )
User need to input:
Distance: AB and BC
Angle: α and θ
k value = AB and α AB"
Need user ask to input I need the code for the following Kinematics equation
" Velocity
VB= AA + ( AB x r AB )
VC = VB + ( ω BC x r BC )
Accelaration
AB = AA +( ( AB X (ω AB x r AB )) + ( α AB x rAB)
AC = AB + ( ( BC X ( BC x r BC )) + ( α BC x r BC )
r AB = AB( sin θ i + cos θ j )
r BC = BC( sin α i + cos α j )
User need to input:
Distance: AB and BC
Angle: α and θ
k value = AB and α AB"
Need user ask to input cross product MATLAB Answers — New Questions
Trying to use for loop to create an array of bandpass filters, but gets error “conversion to double from dfilt.df2sos is not possible”
I have been trying to use a for loop to generate an array of bandpass filters using the dfilt.df2sos command in order to minimise numerical errors, and then using fvtool to analyze the filters. However, when running the command I keep running into the error "Unable to perform assignment because value of type ‘dfilt.df2sos’ is not convertible to ‘double’." on line bppf(i) = dfilt.df2sos(s,g);. I suspect this is probably due to how I initialised the array bppf, but I can’t seem to find a workaround for this. I am also trying to use the web browser to run this code, but I’m not sure if that’s really the cause of the problem. Any help would be much appreciated thank you.
Edit: I realised I accidentally missed out on variables ap and as when copying and pasting my code
fs = 48000; % sample frequency
wss1 = [5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wss2 = [11360 5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wpp1 = 0.9*[8000 4000 2000 1000 500 250 125 63]*2*pi/fs;
wpp2 = zeros(8);
dp = 0.05;
ds = 0.05;
% peak passband ripple and minimum stopband attenuation in dB
ap = -20*log10(1-dp); as = -20*log10(ds);
% append wpp2
for i = 1:length(wpp2)
wpp2(i) = wss1(i)*wss2(i)/wpp1(i);
end
% design of prototype butteworth bandpass filter
bppf = zeros(8);
for i = 1:8
% bandedge frequencies for analog filter (T=1)
omp1 = 2*tan(wpp1(i)/2);
omp2 = 2*tan(wpp2(i)/2);
oms1 = 2*tan(wss1(i)/2);
oms2 = 2*tan(wss2(i)/2);
% filter design
[N Wn] = buttord([omp1/pi omp2/pi],[oms1/pi oms2/pi],ap,as);
[z,p,k] = butter(N,Wn,’bandpass’);
[s,g] = zp2sos(z,p,k);
bppf(i) = dfilt.df2sos(s,g);
end
fvtool(bppf(1),bppf(2),bppf(3),bppf(4),bppf(5),bppf(6),bppf(7),bppf(8))I have been trying to use a for loop to generate an array of bandpass filters using the dfilt.df2sos command in order to minimise numerical errors, and then using fvtool to analyze the filters. However, when running the command I keep running into the error "Unable to perform assignment because value of type ‘dfilt.df2sos’ is not convertible to ‘double’." on line bppf(i) = dfilt.df2sos(s,g);. I suspect this is probably due to how I initialised the array bppf, but I can’t seem to find a workaround for this. I am also trying to use the web browser to run this code, but I’m not sure if that’s really the cause of the problem. Any help would be much appreciated thank you.
Edit: I realised I accidentally missed out on variables ap and as when copying and pasting my code
fs = 48000; % sample frequency
wss1 = [5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wss2 = [11360 5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wpp1 = 0.9*[8000 4000 2000 1000 500 250 125 63]*2*pi/fs;
wpp2 = zeros(8);
dp = 0.05;
ds = 0.05;
% peak passband ripple and minimum stopband attenuation in dB
ap = -20*log10(1-dp); as = -20*log10(ds);
% append wpp2
for i = 1:length(wpp2)
wpp2(i) = wss1(i)*wss2(i)/wpp1(i);
end
% design of prototype butteworth bandpass filter
bppf = zeros(8);
for i = 1:8
% bandedge frequencies for analog filter (T=1)
omp1 = 2*tan(wpp1(i)/2);
omp2 = 2*tan(wpp2(i)/2);
oms1 = 2*tan(wss1(i)/2);
oms2 = 2*tan(wss2(i)/2);
% filter design
[N Wn] = buttord([omp1/pi omp2/pi],[oms1/pi oms2/pi],ap,as);
[z,p,k] = butter(N,Wn,’bandpass’);
[s,g] = zp2sos(z,p,k);
bppf(i) = dfilt.df2sos(s,g);
end
fvtool(bppf(1),bppf(2),bppf(3),bppf(4),bppf(5),bppf(6),bppf(7),bppf(8)) I have been trying to use a for loop to generate an array of bandpass filters using the dfilt.df2sos command in order to minimise numerical errors, and then using fvtool to analyze the filters. However, when running the command I keep running into the error "Unable to perform assignment because value of type ‘dfilt.df2sos’ is not convertible to ‘double’." on line bppf(i) = dfilt.df2sos(s,g);. I suspect this is probably due to how I initialised the array bppf, but I can’t seem to find a workaround for this. I am also trying to use the web browser to run this code, but I’m not sure if that’s really the cause of the problem. Any help would be much appreciated thank you.
Edit: I realised I accidentally missed out on variables ap and as when copying and pasting my code
fs = 48000; % sample frequency
wss1 = [5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wss2 = [11360 5680 2840 1420 710 355 177 88 44]*2*pi/fs;
wpp1 = 0.9*[8000 4000 2000 1000 500 250 125 63]*2*pi/fs;
wpp2 = zeros(8);
dp = 0.05;
ds = 0.05;
% peak passband ripple and minimum stopband attenuation in dB
ap = -20*log10(1-dp); as = -20*log10(ds);
% append wpp2
for i = 1:length(wpp2)
wpp2(i) = wss1(i)*wss2(i)/wpp1(i);
end
% design of prototype butteworth bandpass filter
bppf = zeros(8);
for i = 1:8
% bandedge frequencies for analog filter (T=1)
omp1 = 2*tan(wpp1(i)/2);
omp2 = 2*tan(wpp2(i)/2);
oms1 = 2*tan(wss1(i)/2);
oms2 = 2*tan(wss2(i)/2);
% filter design
[N Wn] = buttord([omp1/pi omp2/pi],[oms1/pi oms2/pi],ap,as);
[z,p,k] = butter(N,Wn,’bandpass’);
[s,g] = zp2sos(z,p,k);
bppf(i) = dfilt.df2sos(s,g);
end
fvtool(bppf(1),bppf(2),bppf(3),bppf(4),bppf(5),bppf(6),bppf(7),bppf(8)) filter, transfer function MATLAB Answers — New Questions
Tenant Issue: Admins are not able to authenticate as of the 24th of September
Hello All,
Situation: Admins are being forced to authenticate with Smart Cards or Certificates, but we did not make this change. So now not only am I blocked from getting into our admin ports etc, but I cannot authenticate to anything that I use MFA and this email address… I am dead in the water literally.
On the 24th, halfway through the day, I was forcibly kicked out of my sessions (browsers etc) and asked to re-authenticate. The only option was MFA Certificate or Smart Card. This is not how our tenant was configured, and I am the only admin and did not change it.
I am the only admin, neither my account (admin) nor the singular admin account that all onmicrosft.com have, are able to log in anymore. Any user that is NOT an admin it works and does not prompt them for a Certificate/SmartCard, it does the regular Azure App.
I have had a ticket with Microsoft for the week, and nothing they do fixes it. They said they reset my mfa permissions, and that it should have forced me to re-setup MFA for my account, but instead I
Hello All, Situation: Admins are being forced to authenticate with Smart Cards or Certificates, but we did not make this change. So now not only am I blocked from getting into our admin ports etc, but I cannot authenticate to anything that I use MFA and this email address… I am dead in the water literally. On the 24th, halfway through the day, I was forcibly kicked out of my sessions (browsers etc) and asked to re-authenticate. The only option was MFA Certificate or Smart Card. This is not how our tenant was configured, and I am the only admin and did not change it. I am the only admin, neither my account (admin) nor the singular admin account that all onmicrosft.com have, are able to log in anymore. Any user that is NOT an admin it works and does not prompt them for a Certificate/SmartCard, it does the regular Azure App. I have had a ticket with Microsoft for the week, and nothing they do fixes it. They said they reset my mfa permissions, and that it should have forced me to re-setup MFA for my account, but instead I Read More
¶/show-all: get more selective?
I’m pretty sure the answer to this is no, and I might have even asked this somewhere previously but…
Is there anyway at all to get more fine control over “show all”/ctrl-*/non-printing-characters/¶?
Specifically, it’s my dream to show page-breaks and column breaks but *not* to show spaces between each word. This would just be a nice always-on option to have transparent access to formatting. As it is, the space dots make text difficult to read.
I’m open to VBA and outside of the box solutions. Maybe I could even edit my font to eliminate whatever symbol the space is using?
I’m pretty sure the answer to this is no, and I might have even asked this somewhere previously but… Is there anyway at all to get more fine control over “show all”/ctrl-*/non-printing-characters/¶? Specifically, it’s my dream to show page-breaks and column breaks but *not* to show spaces between each word. This would just be a nice always-on option to have transparent access to formatting. As it is, the space dots make text difficult to read. I’m open to VBA and outside of the box solutions. Maybe I could even edit my font to eliminate whatever symbol the space is using? Read More
Excel Investment Template
Hello!
I’m using the Excel investment template that pulls data from Refinitiv. I want to add an additional source to it to cover the data that refinitiv does not include,is there a way to add/edit the sources that this specific template has, or does anyone know how to essentially recreate the exact same template with that source plus additional sources?
Thank you!
Hello!I’m using the Excel investment template that pulls data from Refinitiv. I want to add an additional source to it to cover the data that refinitiv does not include,is there a way to add/edit the sources that this specific template has, or does anyone know how to essentially recreate the exact same template with that source plus additional sources? Thank you! Read More
Unable to evaluate function model.
There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。 There was an error executing the ProcessExperienceFcn. Caused by: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IFunction/evaluate’, ‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’, 84)" style="font-weight:bold">rl.internal.function.IFunction/evaluate</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+function@IFunctionIFunction.m’,84,0)">第 84 行</a>) Unable to evaluate function model. 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.function.rlContinuousDeterministicActor/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’, 131)" style="font-weight:bold">rl.function.rlContinuousDeterministicActor/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+functionrlContinuousDeterministicActor.m’,131,0)">第 131 行</a>) [action,state] = evaluate(this,observation,varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.IGetAction/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’, 43)" style="font-weight:bold">rl.internal.function.IGetAction/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionIGetAction.m’,43,0)">第 43 行</a>) [action,state] = getAction_(this,observation,cargs{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/parenReferencePacked’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 326)" style="font-weight:bold">deep.AcceleratedFunction/parenReferencePacked</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,326,0)">第 326 行</a>) [varargout{1:nargout}] = obj.Function(struct(‘v’,matlab.lang.internal.move(inputs)).v); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘deep.AcceleratedFunction/feval’, ‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’, 388)" style="font-weight:bold">deep.AcceleratedFunction/feval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep+deepAcceleratedFunction.m’,388,0)">第 388 行</a>) [varargout{1:nargout}] = parenReferencePacked(obj, matlab.lang.internal.move(varargin)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.function.numericEval’, ‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’, 24)" style="font-weight:bold">rl.internal.function.numericEval</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+functionnumericEval.m’,24,0)">第 24 行</a>) [varargout{1:nargout}] = feval(accelfcn,fcnobjs{:},varargin{:}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.rlAdditiveNoisePolicy/getAction_’, ‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’, 162)" style="font-weight:bold">rl.policy.rlAdditiveNoisePolicy/getAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyrlAdditiveNoisePolicy.m’,162,0)">第 162 行</a>) [action,state] = rl.internal.function.numericEval(f,… ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.policy.PolicyInterface/getAction’, ‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’, 38)" style="font-weight:bold">rl.policy.PolicyInterface/getAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+policyPolicyInterface.m’,38,0)">第 38 行</a>) [action,this] = getAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’, 32)" style="font-weight:bold">rl.env.internal.PolicyExperienceProcessorInterface/evaluateAction_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalPolicyExperienceProcessorInterface.m’,32,0)">第 32 行</a>) [action,this.Policy_] = getAction(this.Policy_,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.ExperienceProcessorInterface/evaluateAction’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’, 70)" style="font-weight:bold">rl.env.internal.ExperienceProcessorInterface/evaluateAction</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalExperienceProcessorInterface.m’,70,0)">第 70 行</a>) action = evaluateAction_(this,observation); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/simInternal_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 109)" style="font-weight:bold">rl.env.internal.MATLABSimulator/simInternal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,109,0)">第 109 行</a>) act = evaluateAction(expProcessor,obs); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.MATLABSimulator/sim_’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’, 67)" style="font-weight:bold">rl.env.internal.MATLABSimulator/sim_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalMATLABSimulator.m’,67,0)">第 67 行</a>) out = simInternal_(this,simPkg); ^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.internal.AbstractSimulator/sim’, ‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’, 30)" style="font-weight:bold">rl.env.internal.AbstractSimulator/sim</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env+internalAbstractSimulator.m’,30,0)">第 30 行</a>) out = sim_(this,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.env.AbstractEnv/runEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’, 144)" style="font-weight:bold">rl.env.AbstractEnv/runEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+env@AbstractEnvrunEpisode.m’,144,0)">第 144 行</a>) out = sim(simulator,simData,policy,processExpFcn,processExpData); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 284)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_/nestedRunEpisode</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,284,0)">第 284 行</a>) out_or_F = runEpisode(env,p,… ^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_internal_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 351)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_internal_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,351,0)">第 351 行</a>) out = nestedRunEpisode(policy); ^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.OffPolicyTrainer/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’, 39)" style="font-weight:bold">rl.internal.train.OffPolicyTrainer/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainOffPolicyTrainer.m’,39,0)">第 39 行</a>) result = run_internal_(this); ^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.train.Trainer/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’, 8)" style="font-weight:bold">rl.internal.train.Trainer/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainTrainer.m’,8,0)">第 8 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.OnlineTrainingManager/run_’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’, 123)" style="font-weight:bold">rl.internal.trainmgr.OnlineTrainingManager/run_</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrOnlineTrainingManager.m’,123,0)">第 123 行</a>) trainResult = run(trainer); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.trainmgr.TrainingManager/run’, ‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’, 4)" style="font-weight:bold">rl.internal.trainmgr.TrainingManager/run</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+trainmgrTrainingManager.m’,4,0)">第 4 行</a>) result = run_(this); ^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.agent.AbstractAgent/train’, ‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’, 86)" style="font-weight:bold">rl.agent.AbstractAgent/train</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+agent@AbstractAgenttrain.m’,86,0)">第 86 行</a>) trainingResult = run(tm); ^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/runTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 169)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/runTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,169,0)">第 169 行</a>) obj.TrainingResult = train(obj.TrainedAgent,obj.Environment,obj.Options,Evaluator=obj.Evaluator); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tool.TrainingSession/startTraining’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’, 106)" style="font-weight:bold">rl.internal.app.tool.TrainingSession/startTraining</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+toolTrainingSession.m’,106,0)">第 106 行</a>) runTraining(obj); ^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.ReinforcementLearningApp/openTrainingSession’, ‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’, 369)" style="font-weight:bold">rl.internal.app.ReinforcementLearningApp/openTrainingSession</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+appReinforcementLearningApp.m’,369,0)">第 369 行</a>) startTraining(obj.TrainingSession,Data,IsResume) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab/trainCB’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 315)" style="font-weight:bold">rl.internal.app.tab.TrainTab/trainCB</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,315,0)">第 315 行</a>) openTrainingSession(obj.App,obj.Data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)’, ‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’, 210)" style="font-weight:bold">rl.internal.app.tab.TrainTab>@(~,~)trainCB(obj)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxrlrl+rl+internal+app+tabTrainTab.m’,210,0)">第 210 行</a>) obj.Widgets.TrainButton.ButtonPushedFcn = @(~, ~) trainCB(obj); ^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘internal.Callback.execute’, ‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’, 128)" style="font-weight:bold">internal.Callback.execute</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedtestmeaslibgeneral+internalCallback.m’,128,0)">第 128 行</a>) feval(callback, src, event); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.Action/PeerEventCallback’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’, 852)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.Action/PeerEventCallback</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseAction.m’,852,0)">第 852 行</a>) internal.Callback.execute(this.PushPerformedFcn, this, eventdata); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)’, ‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’, 41)" style="font-weight:bold">matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data)</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxmatlabtoolstrip+matlab+ui+internal+toolstrip+baseActionInterface.m’,41,0)">第 41 行</a>) this.PeerEventListener = addlistener(this.Peer, ‘peerEvent’, @(event, data) PeerEventCallback(this, event, data)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 出错 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))’, ‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’, 76)" style="font-weight:bold">viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event))</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxsharedviewmodelviewmodel+viewmodel+internal+factoryManagerFactoryProducer.m’,76,0)">第 76 行</a>) proxyCallback = @(src, event)callback(src, … ^^^^^^^^^^^^^^^^^ 原因: 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlnetwork/predict’, ‘F:Matlab2024btoolboxnnetcnndlnetwork.m’, 700)" style="font-weight:bold">dlnetwork/predict</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetcnndlnetwork.m’,700,0)">第 700 行</a>) 在层 "fc_1" 期间执行失败。 错误使用 <a href="matlab:matlab.lang.internal.introspective.errorDocCallback(‘dlarray/fullyconnect>iReshapeMtimesAdd’, ‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’, 272)" style="font-weight:bold">dlarray/fullyconnect>iReshapeMtimesAdd</a> (<a href="matlab: opentoline(‘F:Matlab2024btoolboxnnetdeepdeep@dlarrayfullyconnect.m’,272,0)">第 272 行</a>) 不支持复数。 rl MATLAB Answers — New Questions
Could I use double precision with `cusparse` or `cublas` function in mexcuda.cu file?
Hi,
I am trying to compile my .cu file with cudamex. In this file, I would like to write some functions in cusparse or cublas file. Because I don’t know much of setting the number of block or threads. But I find that all the cublas or cusparse functions are in float format, which is equal to single class in Matlab, imo. Could I have some way to input double precision numbers? Besides, must I include the cublas and cusparse library? Are there any version of them built in Matlab? The following is my example of copying float vector. It runs well. If it has some reundancy or irregular part, please let me know. Thank you.
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cuda_runtime.h>
#include <cusparse.h>
#include <cublas_v2.h>
#include <helper_functions.h>
#include <helper_cuda.h>
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray const *prhs[])
{
// =========================================================================
// input : x
// =========================================================================
mxGPUArray* x = mxGPUCopyFromMxArray(prhs[0]);
int N = (int)(mxGPUGetNumberOfElements(x));
// =========================================================================
// create other variable: y
// =========================================================================
auto dn = mxGPUGetNumberOfDimensions(x);
auto d = mxGPUGetDimensions(x);
mxGPUArray* y = mxGPUCreateGPUAraray(dn,d,mxSINGLE_CLASS,mxREAL,MX_GPU_INITIALIZE_VALUES);
// =========================================================================
// set device pointers: d_x, d_y
// =========================================================================
float *d_x = (float*)mxGPUGetData(x);
float *d_y = (float*)mxGPUGetData(y);
// =========================================================================
// gpu computing: initial
// =========================================================================
/* Get handle to the CUBLAS context */
cublasHandle_t cublasHandle = 0;
cublasStatus_t cublasStatus;
cublasStatus = cublasCreate(&cublasHandle);
checkCudaErrors(cublasStatus);
// =========================================================================
// step1
// =========================================================================
cublasScopy(cublasHandle, N, d_x,1,d_y,1);
// =========================================================================
// output
// =========================================================================
plhs[0] = mxGPUCreateMxArrayOnCPU(y);
// =========================================================================
// clear
// =========================================================================
mxGPUDestroyGPUArray(x);
mxGPUDestroyGPUArray(y);
}Hi,
I am trying to compile my .cu file with cudamex. In this file, I would like to write some functions in cusparse or cublas file. Because I don’t know much of setting the number of block or threads. But I find that all the cublas or cusparse functions are in float format, which is equal to single class in Matlab, imo. Could I have some way to input double precision numbers? Besides, must I include the cublas and cusparse library? Are there any version of them built in Matlab? The following is my example of copying float vector. It runs well. If it has some reundancy or irregular part, please let me know. Thank you.
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cuda_runtime.h>
#include <cusparse.h>
#include <cublas_v2.h>
#include <helper_functions.h>
#include <helper_cuda.h>
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray const *prhs[])
{
// =========================================================================
// input : x
// =========================================================================
mxGPUArray* x = mxGPUCopyFromMxArray(prhs[0]);
int N = (int)(mxGPUGetNumberOfElements(x));
// =========================================================================
// create other variable: y
// =========================================================================
auto dn = mxGPUGetNumberOfDimensions(x);
auto d = mxGPUGetDimensions(x);
mxGPUArray* y = mxGPUCreateGPUAraray(dn,d,mxSINGLE_CLASS,mxREAL,MX_GPU_INITIALIZE_VALUES);
// =========================================================================
// set device pointers: d_x, d_y
// =========================================================================
float *d_x = (float*)mxGPUGetData(x);
float *d_y = (float*)mxGPUGetData(y);
// =========================================================================
// gpu computing: initial
// =========================================================================
/* Get handle to the CUBLAS context */
cublasHandle_t cublasHandle = 0;
cublasStatus_t cublasStatus;
cublasStatus = cublasCreate(&cublasHandle);
checkCudaErrors(cublasStatus);
// =========================================================================
// step1
// =========================================================================
cublasScopy(cublasHandle, N, d_x,1,d_y,1);
// =========================================================================
// output
// =========================================================================
plhs[0] = mxGPUCreateMxArrayOnCPU(y);
// =========================================================================
// clear
// =========================================================================
mxGPUDestroyGPUArray(x);
mxGPUDestroyGPUArray(y);
} Hi,
I am trying to compile my .cu file with cudamex. In this file, I would like to write some functions in cusparse or cublas file. Because I don’t know much of setting the number of block or threads. But I find that all the cublas or cusparse functions are in float format, which is equal to single class in Matlab, imo. Could I have some way to input double precision numbers? Besides, must I include the cublas and cusparse library? Are there any version of them built in Matlab? The following is my example of copying float vector. It runs well. If it has some reundancy or irregular part, please let me know. Thank you.
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cuda_runtime.h>
#include <cusparse.h>
#include <cublas_v2.h>
#include <helper_functions.h>
#include <helper_cuda.h>
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray const *prhs[])
{
// =========================================================================
// input : x
// =========================================================================
mxGPUArray* x = mxGPUCopyFromMxArray(prhs[0]);
int N = (int)(mxGPUGetNumberOfElements(x));
// =========================================================================
// create other variable: y
// =========================================================================
auto dn = mxGPUGetNumberOfDimensions(x);
auto d = mxGPUGetDimensions(x);
mxGPUArray* y = mxGPUCreateGPUAraray(dn,d,mxSINGLE_CLASS,mxREAL,MX_GPU_INITIALIZE_VALUES);
// =========================================================================
// set device pointers: d_x, d_y
// =========================================================================
float *d_x = (float*)mxGPUGetData(x);
float *d_y = (float*)mxGPUGetData(y);
// =========================================================================
// gpu computing: initial
// =========================================================================
/* Get handle to the CUBLAS context */
cublasHandle_t cublasHandle = 0;
cublasStatus_t cublasStatus;
cublasStatus = cublasCreate(&cublasHandle);
checkCudaErrors(cublasStatus);
// =========================================================================
// step1
// =========================================================================
cublasScopy(cublasHandle, N, d_x,1,d_y,1);
// =========================================================================
// output
// =========================================================================
plhs[0] = mxGPUCreateMxArrayOnCPU(y);
// =========================================================================
// clear
// =========================================================================
mxGPUDestroyGPUArray(x);
mxGPUDestroyGPUArray(y);
} gpu, cublas MATLAB Answers — New Questions
Droplet size calculation of a spray image
Hi predecessors,
I have this kind of spray image and I want to calculate the droplet size and distribution of the particles, and wondering if there is a way to do that on MATLAB so that I can learn from it. Thanks!
Here are what I do now, I really appreciate you can help to point out the errors or mistakes,and if you are me, what code will you use to realize this function.
clc
clear all;
image=imread(‘E:picture_testheitu.tiff’);
jqimage=image(2000:2500,2000:2500);
imshow(jqimage,[0 4000]);title(‘jiequ’);
[gradthresh,numofiter]=imdiffuseest(jqimage);
diffusedImage=double(imdiffusefilt(jqimage,’GradientThresh’,gradthresh,’NumberOfIterations’,numofiter));
imshow(diffusedImage,[0 4000]);
[testx,testy]=size(diffusedImage);
array_x=zeros(501,501);
blank_x=zeros(501,501);
y=zeros(1,501);
for i=1:testx
testx_temp=diffusedImage(i,:);
for i1=2:testy-1
y(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_x(i,:)=y;
[pks,locs]=findpeaks(array_x(i,:),"MinPeakHeight",40);
blank_x_i=blank_x(i,:);
for i2=1:length(locs);
blank_x_i(locs(i2))=1;
end
blank_x(i,:)= blank_x_i;
end
array_y=zeros(501,501);
blank_y=zeros(501,501);
x=zeros(501,1);
for i=1:testy
testx_temp=diffusedImage(:,i);
for i1=2:testx-1
x(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_y(:,i)=x;
[pks,locs]=findpeaks(array_y(:,i),"MinPeakHeight",40);
blank_y_i=blank_y(:,i);
for i2=1:length(locs);
blank_y_i(locs(i2))=1;
end
blank_y(:,i)= blank_y_i;
end
figure;
imagesc(blank_x);
hold on;
imagesc(blank_y);
add_ab=blank_x+blank_y;
imagesc(add_ab);
figure;
binaryimage=im2bw(add_ab);
imshow(binaryimage);
binaryimage=imfill(binaryimage,’holes’);
imshow(binaryimage);title(‘binaryimage’);
figure
labeledimage=bwlabel(binaryimage,8);
imshow(labeledimage);
coloredlabels=label2rgb(labeledimage,’hsv’,’k’,’shuffle’);
hold on;
imshow(coloredlabels);
blobmeasurements=regionprops(labeledimage,add_ab,’all’);
numberofblobs=size(blobmeasurements,1);
boundaries=bwboundaries(binaryimage);
numberofboundaries=size(boundaries,1);
for k1=1:numberofboundaries
thisboundary=boundaries{k1};
plot(thisboundary(:,2),thisboundary(:,1),’g’,’LineWidth’,2);
end
for k2=1:numberofblobs
blobarea=blobmeasurements(k2).Area;
blobecd(k2)=sqrt(4*blobarea/pi);
fprintf(‘%dn’,blobecd(k2))
endHi predecessors,
I have this kind of spray image and I want to calculate the droplet size and distribution of the particles, and wondering if there is a way to do that on MATLAB so that I can learn from it. Thanks!
Here are what I do now, I really appreciate you can help to point out the errors or mistakes,and if you are me, what code will you use to realize this function.
clc
clear all;
image=imread(‘E:picture_testheitu.tiff’);
jqimage=image(2000:2500,2000:2500);
imshow(jqimage,[0 4000]);title(‘jiequ’);
[gradthresh,numofiter]=imdiffuseest(jqimage);
diffusedImage=double(imdiffusefilt(jqimage,’GradientThresh’,gradthresh,’NumberOfIterations’,numofiter));
imshow(diffusedImage,[0 4000]);
[testx,testy]=size(diffusedImage);
array_x=zeros(501,501);
blank_x=zeros(501,501);
y=zeros(1,501);
for i=1:testx
testx_temp=diffusedImage(i,:);
for i1=2:testy-1
y(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_x(i,:)=y;
[pks,locs]=findpeaks(array_x(i,:),"MinPeakHeight",40);
blank_x_i=blank_x(i,:);
for i2=1:length(locs);
blank_x_i(locs(i2))=1;
end
blank_x(i,:)= blank_x_i;
end
array_y=zeros(501,501);
blank_y=zeros(501,501);
x=zeros(501,1);
for i=1:testy
testx_temp=diffusedImage(:,i);
for i1=2:testx-1
x(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_y(:,i)=x;
[pks,locs]=findpeaks(array_y(:,i),"MinPeakHeight",40);
blank_y_i=blank_y(:,i);
for i2=1:length(locs);
blank_y_i(locs(i2))=1;
end
blank_y(:,i)= blank_y_i;
end
figure;
imagesc(blank_x);
hold on;
imagesc(blank_y);
add_ab=blank_x+blank_y;
imagesc(add_ab);
figure;
binaryimage=im2bw(add_ab);
imshow(binaryimage);
binaryimage=imfill(binaryimage,’holes’);
imshow(binaryimage);title(‘binaryimage’);
figure
labeledimage=bwlabel(binaryimage,8);
imshow(labeledimage);
coloredlabels=label2rgb(labeledimage,’hsv’,’k’,’shuffle’);
hold on;
imshow(coloredlabels);
blobmeasurements=regionprops(labeledimage,add_ab,’all’);
numberofblobs=size(blobmeasurements,1);
boundaries=bwboundaries(binaryimage);
numberofboundaries=size(boundaries,1);
for k1=1:numberofboundaries
thisboundary=boundaries{k1};
plot(thisboundary(:,2),thisboundary(:,1),’g’,’LineWidth’,2);
end
for k2=1:numberofblobs
blobarea=blobmeasurements(k2).Area;
blobecd(k2)=sqrt(4*blobarea/pi);
fprintf(‘%dn’,blobecd(k2))
end Hi predecessors,
I have this kind of spray image and I want to calculate the droplet size and distribution of the particles, and wondering if there is a way to do that on MATLAB so that I can learn from it. Thanks!
Here are what I do now, I really appreciate you can help to point out the errors or mistakes,and if you are me, what code will you use to realize this function.
clc
clear all;
image=imread(‘E:picture_testheitu.tiff’);
jqimage=image(2000:2500,2000:2500);
imshow(jqimage,[0 4000]);title(‘jiequ’);
[gradthresh,numofiter]=imdiffuseest(jqimage);
diffusedImage=double(imdiffusefilt(jqimage,’GradientThresh’,gradthresh,’NumberOfIterations’,numofiter));
imshow(diffusedImage,[0 4000]);
[testx,testy]=size(diffusedImage);
array_x=zeros(501,501);
blank_x=zeros(501,501);
y=zeros(1,501);
for i=1:testx
testx_temp=diffusedImage(i,:);
for i1=2:testy-1
y(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_x(i,:)=y;
[pks,locs]=findpeaks(array_x(i,:),"MinPeakHeight",40);
blank_x_i=blank_x(i,:);
for i2=1:length(locs);
blank_x_i(locs(i2))=1;
end
blank_x(i,:)= blank_x_i;
end
array_y=zeros(501,501);
blank_y=zeros(501,501);
x=zeros(501,1);
for i=1:testy
testx_temp=diffusedImage(:,i);
for i1=2:testx-1
x(i1)=abs((testx_temp(i1+1)-testx_temp(i1-1))/2);
end
array_y(:,i)=x;
[pks,locs]=findpeaks(array_y(:,i),"MinPeakHeight",40);
blank_y_i=blank_y(:,i);
for i2=1:length(locs);
blank_y_i(locs(i2))=1;
end
blank_y(:,i)= blank_y_i;
end
figure;
imagesc(blank_x);
hold on;
imagesc(blank_y);
add_ab=blank_x+blank_y;
imagesc(add_ab);
figure;
binaryimage=im2bw(add_ab);
imshow(binaryimage);
binaryimage=imfill(binaryimage,’holes’);
imshow(binaryimage);title(‘binaryimage’);
figure
labeledimage=bwlabel(binaryimage,8);
imshow(labeledimage);
coloredlabels=label2rgb(labeledimage,’hsv’,’k’,’shuffle’);
hold on;
imshow(coloredlabels);
blobmeasurements=regionprops(labeledimage,add_ab,’all’);
numberofblobs=size(blobmeasurements,1);
boundaries=bwboundaries(binaryimage);
numberofboundaries=size(boundaries,1);
for k1=1:numberofboundaries
thisboundary=boundaries{k1};
plot(thisboundary(:,2),thisboundary(:,1),’g’,’LineWidth’,2);
end
for k2=1:numberofblobs
blobarea=blobmeasurements(k2).Area;
blobecd(k2)=sqrt(4*blobarea/pi);
fprintf(‘%dn’,blobecd(k2))
end droplet size distribution, particle, image segmentation MATLAB Answers — New Questions
A4 paper size error (Word 2021)
In the paper size selection, the A4 paper size is displayed as 210.01 mm x 297 mm. Therefore, my printer cannot print, because the standard A4 paper size is 210 mm x 297 mm. I have tried many ways to fix this error, but it still does not work. I have tried to go to the page settings and reset the A4 paper size, but it still does not work.
In the paper size selection, the A4 paper size is displayed as 210.01 mm x 297 mm. Therefore, my printer cannot print, because the standard A4 paper size is 210 mm x 297 mm. I have tried many ways to fix this error, but it still does not work. I have tried to go to the page settings and reset the A4 paper size, but it still does not work. Read More