Category: Matlab
Category Archives: Matlab
How do I install and configure RTI for use with DDS Blockset?
I am trying to build my model which contains DDS blocks into an executable that conforms to the RTI Connext DDS API. However, I encounter the following error after pressing the "Build" button:
Environment variable "NDDSHOME" is not defined, set it to the "RTI"
installation directory, for more information please refer to "RTI" documentation.
How do I resolve this issue and install RTI for use with Simulink and DDS Blockset?I am trying to build my model which contains DDS blocks into an executable that conforms to the RTI Connext DDS API. However, I encounter the following error after pressing the "Build" button:
Environment variable "NDDSHOME" is not defined, set it to the "RTI"
installation directory, for more information please refer to "RTI" documentation.
How do I resolve this issue and install RTI for use with Simulink and DDS Blockset? I am trying to build my model which contains DDS blocks into an executable that conforms to the RTI Connext DDS API. However, I encounter the following error after pressing the "Build" button:
Environment variable "NDDSHOME" is not defined, set it to the "RTI"
installation directory, for more information please refer to "RTI" documentation.
How do I resolve this issue and install RTI for use with Simulink and DDS Blockset? rti, dds, addons MATLAB Answers — New Questions
How to solve a highly non-linear ODE containing multiple powers?
I’m working on a time-dependent equation from fluid mechanics for the velocity (u) in a loop. The equation I’m trying to solve is:
Where c1, c2, c3, and c4 are all positive, known constants. I’ve tried pretty much all of the ODE solvers in MATLAB and they all blow up to infinity and return the following error: "Warning: Failure at t=3.237651e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.150245e-14) at time t."
Can anyone give me some insights into other solvers that might work for this type of problem, or modifications to the solvers I’ve tried that can resolve the integration tolerance issue?I’m working on a time-dependent equation from fluid mechanics for the velocity (u) in a loop. The equation I’m trying to solve is:
Where c1, c2, c3, and c4 are all positive, known constants. I’ve tried pretty much all of the ODE solvers in MATLAB and they all blow up to infinity and return the following error: "Warning: Failure at t=3.237651e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.150245e-14) at time t."
Can anyone give me some insights into other solvers that might work for this type of problem, or modifications to the solvers I’ve tried that can resolve the integration tolerance issue? I’m working on a time-dependent equation from fluid mechanics for the velocity (u) in a loop. The equation I’m trying to solve is:
Where c1, c2, c3, and c4 are all positive, known constants. I’ve tried pretty much all of the ODE solvers in MATLAB and they all blow up to infinity and return the following error: "Warning: Failure at t=3.237651e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.150245e-14) at time t."
Can anyone give me some insights into other solvers that might work for this type of problem, or modifications to the solvers I’ve tried that can resolve the integration tolerance issue? differential equations, nonlinear, numerical integration, ode MATLAB Answers — New Questions
SoC Builder stucked on “Synthesize design”
Hello. I’m attempting to deploy the "RFSoC Template" from the SoC Blockset, which involves a simple loopback from a DAC to an ADC channel for the ZCU-111 board. I can open and simulate the top-level model successfully. However, when I try to use the "SoC Builder" via the "Configure, Build & Deploy" button, the wizard becomes indefinitely stuck at the "Synthesize design" step. All preceding steps execute without errors. The last few lines in the MATLAB command window indicate an "Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’ as follows:
### Workflow complete.
———- Generating Xilinx Design Tcl File ———-
———- Generating constraints file ———-
———- Creating Vivado project ———-
———- Building Vivado project with 6 parallel jobs ———-
### Using the SoC system information from ‘/home/canisio/Workspace/Simulink_RFSoC/soc_prj/socsysinfo.mat’
Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’
Could not open file /home/canisio/Workspace/Simulink_RFSoC/soc_prj/vivado_build_prj.log. No such file or directory.
Even though the GUI indicates "Project build successfully started in a separate window," no additional window or prompt appears, aside from the "code generation report." I opened the Linux "System Monitor," and judging by the core usage, there’s definitely no synthesis occurring.
I’m utilizing Matlab/Simulink 2024a alongside Vivado tools 2023.1 on Ubuntu 22.04.4 LTS. Vivado has the necessary licenses for the RFSoC board and functions correctly; I’ve successfully opened the created project and generated the respective bitstream. However, this deviates from the anticipated workflow for the SoC Blockset, and I aim to utilize the complete MathWorks framework.
The SD card to boot the board was configured according to the instructions provided in the installation of the "SoC Blockset Support Package for Xilinx Devices" version 24.1.1. I’m able to connect via JTAG and ping to and from the board.
Am I overlooking any additional configurations? Thank you in advance.Hello. I’m attempting to deploy the "RFSoC Template" from the SoC Blockset, which involves a simple loopback from a DAC to an ADC channel for the ZCU-111 board. I can open and simulate the top-level model successfully. However, when I try to use the "SoC Builder" via the "Configure, Build & Deploy" button, the wizard becomes indefinitely stuck at the "Synthesize design" step. All preceding steps execute without errors. The last few lines in the MATLAB command window indicate an "Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’ as follows:
### Workflow complete.
———- Generating Xilinx Design Tcl File ———-
———- Generating constraints file ———-
———- Creating Vivado project ———-
———- Building Vivado project with 6 parallel jobs ———-
### Using the SoC system information from ‘/home/canisio/Workspace/Simulink_RFSoC/soc_prj/socsysinfo.mat’
Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’
Could not open file /home/canisio/Workspace/Simulink_RFSoC/soc_prj/vivado_build_prj.log. No such file or directory.
Even though the GUI indicates "Project build successfully started in a separate window," no additional window or prompt appears, aside from the "code generation report." I opened the Linux "System Monitor," and judging by the core usage, there’s definitely no synthesis occurring.
I’m utilizing Matlab/Simulink 2024a alongside Vivado tools 2023.1 on Ubuntu 22.04.4 LTS. Vivado has the necessary licenses for the RFSoC board and functions correctly; I’ve successfully opened the created project and generated the respective bitstream. However, this deviates from the anticipated workflow for the SoC Blockset, and I aim to utilize the complete MathWorks framework.
The SD card to boot the board was configured according to the instructions provided in the installation of the "SoC Blockset Support Package for Xilinx Devices" version 24.1.1. I’m able to connect via JTAG and ping to and from the board.
Am I overlooking any additional configurations? Thank you in advance. Hello. I’m attempting to deploy the "RFSoC Template" from the SoC Blockset, which involves a simple loopback from a DAC to an ADC channel for the ZCU-111 board. I can open and simulate the top-level model successfully. However, when I try to use the "SoC Builder" via the "Configure, Build & Deploy" button, the wizard becomes indefinitely stuck at the "Synthesize design" step. All preceding steps execute without errors. The last few lines in the MATLAB command window indicate an "Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’ as follows:
### Workflow complete.
———- Generating Xilinx Design Tcl File ———-
———- Generating constraints file ———-
———- Creating Vivado project ———-
———- Building Vivado project with 6 parallel jobs ———-
### Using the SoC system information from ‘/home/canisio/Workspace/Simulink_RFSoC/soc_prj/socsysinfo.mat’
Error while evaluating TimerFcn for timer ‘BuildStatusTimer_soc_rfsoc_top’
Could not open file /home/canisio/Workspace/Simulink_RFSoC/soc_prj/vivado_build_prj.log. No such file or directory.
Even though the GUI indicates "Project build successfully started in a separate window," no additional window or prompt appears, aside from the "code generation report." I opened the Linux "System Monitor," and judging by the core usage, there’s definitely no synthesis occurring.
I’m utilizing Matlab/Simulink 2024a alongside Vivado tools 2023.1 on Ubuntu 22.04.4 LTS. Vivado has the necessary licenses for the RFSoC board and functions correctly; I’ve successfully opened the created project and generated the respective bitstream. However, this deviates from the anticipated workflow for the SoC Blockset, and I aim to utilize the complete MathWorks framework.
The SD card to boot the board was configured according to the instructions provided in the installation of the "SoC Blockset Support Package for Xilinx Devices" version 24.1.1. I’m able to connect via JTAG and ping to and from the board.
Am I overlooking any additional configurations? Thank you in advance. soc, xilinx, zcu, rfsoc, soc builder, synthesis, stuck MATLAB Answers — New Questions
how to take seasoanal mean
I have data with 231x141x6408 dimension, it is daily mean data of January, February, and December from 1950-2020. How to take seasonal mean from the data for each year. so I finally obtain data with dimension 231x141x71, please note there are leap years.
Link of the data
https://drive.google.com/file/d/1PeZKZZIJN7LBXxRn9omSyQN3UU33TBNX/view?usp=sharingI have data with 231x141x6408 dimension, it is daily mean data of January, February, and December from 1950-2020. How to take seasonal mean from the data for each year. so I finally obtain data with dimension 231x141x71, please note there are leap years.
Link of the data
https://drive.google.com/file/d/1PeZKZZIJN7LBXxRn9omSyQN3UU33TBNX/view?usp=sharing I have data with 231x141x6408 dimension, it is daily mean data of January, February, and December from 1950-2020. How to take seasonal mean from the data for each year. so I finally obtain data with dimension 231x141x71, please note there are leap years.
Link of the data
https://drive.google.com/file/d/1PeZKZZIJN7LBXxRn9omSyQN3UU33TBNX/view?usp=sharing mean MATLAB Answers — New Questions
Matlab Online Figures Won’t Close
I have a Simulink / Matlab program that runs scrips and generates many figures. They are generated in a script and then closed in the same script. When I run it on the computer the figures close. When I run it online however, the figure contents close but there is a blank figure left that will not close at all. I have to exit Matlab Online and open a new session to ever get rid of them.
How do I properly get Matlab figures to close online?
figure(101);
hold on;
plot(BASEQ.Time,BASEQ.LSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.RSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.LEAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.REAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.LWAngularWorkonClub);
plot(BASEQ.Time,BASEQ.RWAngularWorkonClub);
ylabel(‘Work (J)’);
grid ‘on’;
%Add Legend to Plot
legend(‘LS Angular Work’,’RS Angular Work’,’LE Angular Work’,’RE Angular Work’,’LW Angular Work’,’RW Angular Work’);
legend(‘Location’,’southeast’);
%Add a Title
title(‘Angular Work on Distal Segment’);
subtitle(‘BASE’);
%Save Figure
savefig(‘BaseData Charts/BASE_Plot – Angular Work’);
%Close Figure
close(101);I have a Simulink / Matlab program that runs scrips and generates many figures. They are generated in a script and then closed in the same script. When I run it on the computer the figures close. When I run it online however, the figure contents close but there is a blank figure left that will not close at all. I have to exit Matlab Online and open a new session to ever get rid of them.
How do I properly get Matlab figures to close online?
figure(101);
hold on;
plot(BASEQ.Time,BASEQ.LSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.RSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.LEAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.REAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.LWAngularWorkonClub);
plot(BASEQ.Time,BASEQ.RWAngularWorkonClub);
ylabel(‘Work (J)’);
grid ‘on’;
%Add Legend to Plot
legend(‘LS Angular Work’,’RS Angular Work’,’LE Angular Work’,’RE Angular Work’,’LW Angular Work’,’RW Angular Work’);
legend(‘Location’,’southeast’);
%Add a Title
title(‘Angular Work on Distal Segment’);
subtitle(‘BASE’);
%Save Figure
savefig(‘BaseData Charts/BASE_Plot – Angular Work’);
%Close Figure
close(101); I have a Simulink / Matlab program that runs scrips and generates many figures. They are generated in a script and then closed in the same script. When I run it on the computer the figures close. When I run it online however, the figure contents close but there is a blank figure left that will not close at all. I have to exit Matlab Online and open a new session to ever get rid of them.
How do I properly get Matlab figures to close online?
figure(101);
hold on;
plot(BASEQ.Time,BASEQ.LSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.RSAngularWorkonArm);
plot(BASEQ.Time,BASEQ.LEAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.REAngularWorkonForearm);
plot(BASEQ.Time,BASEQ.LWAngularWorkonClub);
plot(BASEQ.Time,BASEQ.RWAngularWorkonClub);
ylabel(‘Work (J)’);
grid ‘on’;
%Add Legend to Plot
legend(‘LS Angular Work’,’RS Angular Work’,’LE Angular Work’,’RE Angular Work’,’LW Angular Work’,’RW Angular Work’);
legend(‘Location’,’southeast’);
%Add a Title
title(‘Angular Work on Distal Segment’);
subtitle(‘BASE’);
%Save Figure
savefig(‘BaseData Charts/BASE_Plot – Angular Work’);
%Close Figure
close(101); figures, close, plot MATLAB Answers — New Questions
Is Login Named User available on machines without a display?
I have a machine without a GUI or display. Can I still use the Login Named User license option?I have a machine without a GUI or display. Can I still use the Login Named User license option? I have a machine without a GUI or display. Can I still use the Login Named User license option? MATLAB Answers — New Questions
Is there a list of MatLab tutors?
Is there a list of MatLab tutors somewhere that I can hire on an hourly basis to help me get started?
I prefer someone I can talk to by telephone using one of the screen sharing apps.
I probably only need an hour or two to get started, but may need the occasional hour or two later on as I tackle more advanced tasks.Is there a list of MatLab tutors somewhere that I can hire on an hourly basis to help me get started?
I prefer someone I can talk to by telephone using one of the screen sharing apps.
I probably only need an hour or two to get started, but may need the occasional hour or two later on as I tackle more advanced tasks. Is there a list of MatLab tutors somewhere that I can hire on an hourly basis to help me get started?
I prefer someone I can talk to by telephone using one of the screen sharing apps.
I probably only need an hour or two to get started, but may need the occasional hour or two later on as I tackle more advanced tasks. matlab tutors MATLAB Answers — New Questions
Variable Browser Tab Issue
So I was using the Variable Browser ealier today and for some reason, the tab in the Variable Browser is actually not showing up. Can you tell me if there is a way to get that tab back.
This is the proof btw.So I was using the Variable Browser ealier today and for some reason, the tab in the Variable Browser is actually not showing up. Can you tell me if there is a way to get that tab back.
This is the proof btw. So I was using the Variable Browser ealier today and for some reason, the tab in the Variable Browser is actually not showing up. Can you tell me if there is a way to get that tab back.
This is the proof btw. variable browser MATLAB Answers — New Questions
Offline Documentation works for GUI, but not for CLI
We installed the docuemtation ISO on our RHEL 8 server that is offline and we are able to get to the documentation from the gui by changing the help to localy installed.
However, the >>> doc command bring up nothing – just drops to the promps after typing it.
We are on 2024a.
We also set a startup.m file with the docroot listed for the full path – although, this might not be needed because its locally installed in the Matlab directory.We installed the docuemtation ISO on our RHEL 8 server that is offline and we are able to get to the documentation from the gui by changing the help to localy installed.
However, the >>> doc command bring up nothing – just drops to the promps after typing it.
We are on 2024a.
We also set a startup.m file with the docroot listed for the full path – although, this might not be needed because its locally installed in the Matlab directory. We installed the docuemtation ISO on our RHEL 8 server that is offline and we are able to get to the documentation from the gui by changing the help to localy installed.
However, the >>> doc command bring up nothing – just drops to the promps after typing it.
We are on 2024a.
We also set a startup.m file with the docroot listed for the full path – although, this might not be needed because its locally installed in the Matlab directory. offline documentation, cli MATLAB Answers — New Questions
How do I configure MATLAB Parallel Server using a 3rd party scheduler to work within a firewall?
I am installing MATLAB Parallel Server and Parallel Computing Toolbox. I plan to use a 3rd party scheduler instead of MATLAB Job Scheduler. My network has a firewall, and I would like to know which ports need to be opened. I am installing MATLAB Parallel Server and Parallel Computing Toolbox. I plan to use a 3rd party scheduler instead of MATLAB Job Scheduler. My network has a firewall, and I would like to know which ports need to be opened. I am installing MATLAB Parallel Server and Parallel Computing Toolbox. I plan to use a 3rd party scheduler instead of MATLAB Job Scheduler. My network has a firewall, and I would like to know which ports need to be opened. MATLAB Answers — New Questions
Plot of the Rossler Attractor
I have made an m-file to plot the Rossler Attractor using the equations and a fourth order Runge Kutta methid but the plot lines are very pointed and do not appear smooth, has anyone any suggestions about how i can create a better Attractor? step size, h, used was 0.175. The plot of the Attractor can be found below, thank you.I have made an m-file to plot the Rossler Attractor using the equations and a fourth order Runge Kutta methid but the plot lines are very pointed and do not appear smooth, has anyone any suggestions about how i can create a better Attractor? step size, h, used was 0.175. The plot of the Attractor can be found below, thank you. I have made an m-file to plot the Rossler Attractor using the equations and a fourth order Runge Kutta methid but the plot lines are very pointed and do not appear smooth, has anyone any suggestions about how i can create a better Attractor? step size, h, used was 0.175. The plot of the Attractor can be found below, thank you. rossler equations, rossler attractor, smooth plot line MATLAB Answers — New Questions
HDL-Coder Delay Balancing in Feedback-Loop workaround
Hi,
I am trying to generate HDL-Code from a Subsystem that looks like this:
Inside Subsystem 2 and 3 there is some combinatorial logic with multipliers, adders etc. that need Delay-Balancing and Pipelining to achieve the desired Clock-Frequency.
Unfortunately hdlcoder refuses to perform delay-balancing and pipelining. It tells me:
"Delay balancing unsuccessful because Delay introduced in feedback loop cannot be path balanced"
"Unable to insert required number of pipeline registers because the Block is in a feedback path"
Is there a way to perform these optimizations in Subsystem 2 and 3 as if there was no Feedback-Loop involved?
Kind regards
NiklasHi,
I am trying to generate HDL-Code from a Subsystem that looks like this:
Inside Subsystem 2 and 3 there is some combinatorial logic with multipliers, adders etc. that need Delay-Balancing and Pipelining to achieve the desired Clock-Frequency.
Unfortunately hdlcoder refuses to perform delay-balancing and pipelining. It tells me:
"Delay balancing unsuccessful because Delay introduced in feedback loop cannot be path balanced"
"Unable to insert required number of pipeline registers because the Block is in a feedback path"
Is there a way to perform these optimizations in Subsystem 2 and 3 as if there was no Feedback-Loop involved?
Kind regards
Niklas Hi,
I am trying to generate HDL-Code from a Subsystem that looks like this:
Inside Subsystem 2 and 3 there is some combinatorial logic with multipliers, adders etc. that need Delay-Balancing and Pipelining to achieve the desired Clock-Frequency.
Unfortunately hdlcoder refuses to perform delay-balancing and pipelining. It tells me:
"Delay balancing unsuccessful because Delay introduced in feedback loop cannot be path balanced"
"Unable to insert required number of pipeline registers because the Block is in a feedback path"
Is there a way to perform these optimizations in Subsystem 2 and 3 as if there was no Feedback-Loop involved?
Kind regards
Niklas hdlcoder, pipelining, feedback, delay balancing MATLAB Answers — New Questions
How do I create lagged data correctly?
I have these codes so far to try to create lags but for some reason my lagged data and normal data shows same thing. What could be the problem?
Cyclicalitydata = readtable("Could be final data set.xlsx");
Countrydata = Cyclicalitydata(strcmp(Cyclicalitydata.Country, ‘Hungary’), :);
% Prepare variables
Fiscalvariable = Countrydata.CAPB1; % Dependent variable, original series
LaggedFiscalvariable = [NaN; Fiscalvariable(1:end-1)]; % Creating one-period lag
Economicactivity = Countrydata.Outputgap; % Independent main variable
Govsize = Countrydata.Govsize; % Control variable 1
Debtp = Countrydata.DebtGDP; % Control variable 2
CPIlevel = Countrydata.CPIlevel; % Additional control variable 3
Years = Countrydata.Year; % Year for plotting and analysis
CPIgrowth = [NaN; CPIlevel(1:end-1)];I have these codes so far to try to create lags but for some reason my lagged data and normal data shows same thing. What could be the problem?
Cyclicalitydata = readtable("Could be final data set.xlsx");
Countrydata = Cyclicalitydata(strcmp(Cyclicalitydata.Country, ‘Hungary’), :);
% Prepare variables
Fiscalvariable = Countrydata.CAPB1; % Dependent variable, original series
LaggedFiscalvariable = [NaN; Fiscalvariable(1:end-1)]; % Creating one-period lag
Economicactivity = Countrydata.Outputgap; % Independent main variable
Govsize = Countrydata.Govsize; % Control variable 1
Debtp = Countrydata.DebtGDP; % Control variable 2
CPIlevel = Countrydata.CPIlevel; % Additional control variable 3
Years = Countrydata.Year; % Year for plotting and analysis
CPIgrowth = [NaN; CPIlevel(1:end-1)]; I have these codes so far to try to create lags but for some reason my lagged data and normal data shows same thing. What could be the problem?
Cyclicalitydata = readtable("Could be final data set.xlsx");
Countrydata = Cyclicalitydata(strcmp(Cyclicalitydata.Country, ‘Hungary’), :);
% Prepare variables
Fiscalvariable = Countrydata.CAPB1; % Dependent variable, original series
LaggedFiscalvariable = [NaN; Fiscalvariable(1:end-1)]; % Creating one-period lag
Economicactivity = Countrydata.Outputgap; % Independent main variable
Govsize = Countrydata.Govsize; % Control variable 1
Debtp = Countrydata.DebtGDP; % Control variable 2
CPIlevel = Countrydata.CPIlevel; % Additional control variable 3
Years = Countrydata.Year; % Year for plotting and analysis
CPIgrowth = [NaN; CPIlevel(1:end-1)]; lagged data, code MATLAB Answers — New Questions
Subtractive Baseline-correction
Hello All,
Im trying to do a subtractive baseline correction on pupil data. I wrote the skript already but when i plot the data, it seems like the baseline correction did not work. The graphs do not all start from the same point. Any ideas of what i could´ve done wrong?
Thank you in advance
%Verzeichnis
Verzeichnis = ‘/Users/eliebonin/Documents/MATLAB/edf_daten_elie/Datensatz eye tracking’;
%Daten laden
load(‘testmat3.mat’)
%Überprüfen der Größe der Matrix
[proben_anzahl, ~] = size (testmat3);
%Sicherstellen, dass die Anzahl der Proben größer oder gleich 10 ist
if proben_anzahl < 10
error (‘Es gibt nicht genügend Proben für Baseline correction’);
end
%Definieren des Zeitbereiches für die Baseline
baseline_zeitraum = 1:10; %Annahme: Die ersten zehn Samples entgsprechen dem Baseline-Zeitraum
%Berechnen des Mittelwerts während des baseline Zeitraums für jede Probe
baseline_groesse = mean(testmat3(:,baseline_zeitraum), 2);
%substraktion des Baseline-Mittelwerts von allen Pupillengrößen für jede
%Probe
baseline_corrected_daten = testmat3 – baseline_groesse;
save(‘baseline_correction.mat’, ‘baseline_corrected_daten’);Hello All,
Im trying to do a subtractive baseline correction on pupil data. I wrote the skript already but when i plot the data, it seems like the baseline correction did not work. The graphs do not all start from the same point. Any ideas of what i could´ve done wrong?
Thank you in advance
%Verzeichnis
Verzeichnis = ‘/Users/eliebonin/Documents/MATLAB/edf_daten_elie/Datensatz eye tracking’;
%Daten laden
load(‘testmat3.mat’)
%Überprüfen der Größe der Matrix
[proben_anzahl, ~] = size (testmat3);
%Sicherstellen, dass die Anzahl der Proben größer oder gleich 10 ist
if proben_anzahl < 10
error (‘Es gibt nicht genügend Proben für Baseline correction’);
end
%Definieren des Zeitbereiches für die Baseline
baseline_zeitraum = 1:10; %Annahme: Die ersten zehn Samples entgsprechen dem Baseline-Zeitraum
%Berechnen des Mittelwerts während des baseline Zeitraums für jede Probe
baseline_groesse = mean(testmat3(:,baseline_zeitraum), 2);
%substraktion des Baseline-Mittelwerts von allen Pupillengrößen für jede
%Probe
baseline_corrected_daten = testmat3 – baseline_groesse;
save(‘baseline_correction.mat’, ‘baseline_corrected_daten’); Hello All,
Im trying to do a subtractive baseline correction on pupil data. I wrote the skript already but when i plot the data, it seems like the baseline correction did not work. The graphs do not all start from the same point. Any ideas of what i could´ve done wrong?
Thank you in advance
%Verzeichnis
Verzeichnis = ‘/Users/eliebonin/Documents/MATLAB/edf_daten_elie/Datensatz eye tracking’;
%Daten laden
load(‘testmat3.mat’)
%Überprüfen der Größe der Matrix
[proben_anzahl, ~] = size (testmat3);
%Sicherstellen, dass die Anzahl der Proben größer oder gleich 10 ist
if proben_anzahl < 10
error (‘Es gibt nicht genügend Proben für Baseline correction’);
end
%Definieren des Zeitbereiches für die Baseline
baseline_zeitraum = 1:10; %Annahme: Die ersten zehn Samples entgsprechen dem Baseline-Zeitraum
%Berechnen des Mittelwerts während des baseline Zeitraums für jede Probe
baseline_groesse = mean(testmat3(:,baseline_zeitraum), 2);
%substraktion des Baseline-Mittelwerts von allen Pupillengrößen für jede
%Probe
baseline_corrected_daten = testmat3 – baseline_groesse;
save(‘baseline_correction.mat’, ‘baseline_corrected_daten’); matlab, pupil data, preprocessing MATLAB Answers — New Questions
Why am I getting an “undefined function or variable” error when trying to launch EEGLAB?
I am trying to open the EEGLAB toolbox. I set the path to the EEGLAB toolbox, but it’s not letting me set the directory to the file with EEGLAB sample data, and when I type in "eeglab" to the command window, instead of opening the program it says "undefined function or variable". Why is this happening? I’m following all the tutorial steps.I am trying to open the EEGLAB toolbox. I set the path to the EEGLAB toolbox, but it’s not letting me set the directory to the file with EEGLAB sample data, and when I type in "eeglab" to the command window, instead of opening the program it says "undefined function or variable". Why is this happening? I’m following all the tutorial steps. I am trying to open the EEGLAB toolbox. I set the path to the EEGLAB toolbox, but it’s not letting me set the directory to the file with EEGLAB sample data, and when I type in "eeglab" to the command window, instead of opening the program it says "undefined function or variable". Why is this happening? I’m following all the tutorial steps. eeglab, error, unix MATLAB Answers — New Questions
Video Labeler change time between frames
I am using the videolabeler to annotate timelapse videos taken with a microscope, is there any where I can change the start and end time, as well as the time between frames?
It seems like this is preset and I could not find anywhere to change it.
Thanks!I am using the videolabeler to annotate timelapse videos taken with a microscope, is there any where I can change the start and end time, as well as the time between frames?
It seems like this is preset and I could not find anywhere to change it.
Thanks! I am using the videolabeler to annotate timelapse videos taken with a microscope, is there any where I can change the start and end time, as well as the time between frames?
It seems like this is preset and I could not find anywhere to change it.
Thanks! videolabler, annotation, videos MATLAB Answers — New Questions
Does the curvefit toolbox return the equation for the best fit line (or curve)?
For example, let’s say that a 5th order polynomial fits the data nicely. Does the curvefit results include the equation, or at least the coefficients, of the 5th order polynomial fit?
Perhaps a silly question, but you might be surprized at how many so-called curve fitting programs are out there that only care about displaying the fit.
Thank you for considering my question.
ToddFor example, let’s say that a 5th order polynomial fits the data nicely. Does the curvefit results include the equation, or at least the coefficients, of the 5th order polynomial fit?
Perhaps a silly question, but you might be surprized at how many so-called curve fitting programs are out there that only care about displaying the fit.
Thank you for considering my question.
Todd For example, let’s say that a 5th order polynomial fits the data nicely. Does the curvefit results include the equation, or at least the coefficients, of the 5th order polynomial fit?
Perhaps a silly question, but you might be surprized at how many so-called curve fitting programs are out there that only care about displaying the fit.
Thank you for considering my question.
Todd curve fitting MATLAB Answers — New Questions
failing to run Reinforcement learning job on the cluster
I have a custom reinforcement learning environment in which I train an agent using the SAC algorithm. The training runs smoothly on my desktop with four cores, but attempting to speed up the process on the university cluster has been unsuccessful. Below is some information about the job. Can this issue be resolved?
>> (jobRL5)
jobRL5 =
Job
Properties:
ID: 103
Type: pool
Username: amomani1
State: failed
SubmitDateTime: 13-May-2024 18:25:52
StartDateTime: 13-May-2024 18:27:12
RunningDuration: 0 days 13h 39m 28s
NumWorkersRange: [11 11]
NumThreads: 2
AutoAttachFiles: true
Auto Attached Files: List files
AttachedFiles: R:amomani1matlabcodes_SI_2023atalbot_inversion.m
R:amomani1matlabcodes_SI_2023atalbot_inversion2.m
R:amomani1matlabcodes_SI_2023atalbotcode.m
AutoAddClientPath: true
AdditionalPaths: \lightning.bu.binghamton.edumatlabnonshared23aIntegrationScriptsspiedie
\lightning.bu.binghamton.edumatlabnonshared23a
C:Usersamomani1DocumentsMATLAB
C:Usersamomani1AppDataLocalTemp8Editor_retgg
FileStore: [1×1 parallel.FileStore]
ValueStore: [1×1 parallel.ValueStore]
EnvironmentVariables: {}
Associated Tasks:
Number Pending: 0
Number Running: 0
Number Finished: 11
Task ID of Errors: []
Task ID of Warnings: []
Task Scheduler IDs: 4857192
>> c.getDebugLog(jobRL5)
LOG FILE OUTPUT:
Node file: compute[078,162]
Starting SMPD on compute078 compute162 …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -debug 0 &
Checking that SMPD processes are running (Attempt 1 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
No SMPD process running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
No SMPD process running on compute162
Checking that SMPD processes are running (Attempt 2 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
SMPD process found running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
SMPD process found running on compute162
All SMPDs launched
Machine args: -hosts 2 compute078 6 compute162 6
"/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_mpiexec" -smpd -phrase MATLAB -port 27192 -l -hosts 2 compute078 6 compute162 6 -genvlist PARALLEL_SERVER_DECODE_FUNCTION,PARALLEL_SERVER_STORAGE_LOCATION,PARALLEL_SERVER_STORAGE_CONSTRUCTOR,PARALLEL_SERVER_JOB_LOCATION,PARALLEL_SERVER_DEBUG,PARALLEL_SERVER_LICENSE_NUMBER,MLM_WEB_LICENSE,MLM_WEB_USER_CRED,MLM_WEB_ID,TZ,MDCE_DECODE_FUNCTION,MDCE_STORAGE_LOCATION,MDCE_STORAGE_CONSTRUCTOR,MDCE_JOB_LOCATION,MDCE_DEBUG,MDCE_LICENSE_NUMBER "/cm/shared/apps/Mathworks-MPS/2023a/bin/worker" -parallel
job aborted:
rank: node: exit code[: error message]
0: compute078: -2
1: compute078: -2
2: compute078: -2
3: compute078: -2
4: compute078: -2
5: compute078: -2
6: compute162: -2
7: compute162: -2
8: compute162: -2
9: compute162: -2
10: compute162: -2
11: compute162: 1: process 11 exited without calling finalize
Stopping SMPD …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -shutdown -phrase MATLAB -port 27192
Exiting with code: 123I have a custom reinforcement learning environment in which I train an agent using the SAC algorithm. The training runs smoothly on my desktop with four cores, but attempting to speed up the process on the university cluster has been unsuccessful. Below is some information about the job. Can this issue be resolved?
>> (jobRL5)
jobRL5 =
Job
Properties:
ID: 103
Type: pool
Username: amomani1
State: failed
SubmitDateTime: 13-May-2024 18:25:52
StartDateTime: 13-May-2024 18:27:12
RunningDuration: 0 days 13h 39m 28s
NumWorkersRange: [11 11]
NumThreads: 2
AutoAttachFiles: true
Auto Attached Files: List files
AttachedFiles: R:amomani1matlabcodes_SI_2023atalbot_inversion.m
R:amomani1matlabcodes_SI_2023atalbot_inversion2.m
R:amomani1matlabcodes_SI_2023atalbotcode.m
AutoAddClientPath: true
AdditionalPaths: \lightning.bu.binghamton.edumatlabnonshared23aIntegrationScriptsspiedie
\lightning.bu.binghamton.edumatlabnonshared23a
C:Usersamomani1DocumentsMATLAB
C:Usersamomani1AppDataLocalTemp8Editor_retgg
FileStore: [1×1 parallel.FileStore]
ValueStore: [1×1 parallel.ValueStore]
EnvironmentVariables: {}
Associated Tasks:
Number Pending: 0
Number Running: 0
Number Finished: 11
Task ID of Errors: []
Task ID of Warnings: []
Task Scheduler IDs: 4857192
>> c.getDebugLog(jobRL5)
LOG FILE OUTPUT:
Node file: compute[078,162]
Starting SMPD on compute078 compute162 …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -debug 0 &
Checking that SMPD processes are running (Attempt 1 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
No SMPD process running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
No SMPD process running on compute162
Checking that SMPD processes are running (Attempt 2 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
SMPD process found running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
SMPD process found running on compute162
All SMPDs launched
Machine args: -hosts 2 compute078 6 compute162 6
"/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_mpiexec" -smpd -phrase MATLAB -port 27192 -l -hosts 2 compute078 6 compute162 6 -genvlist PARALLEL_SERVER_DECODE_FUNCTION,PARALLEL_SERVER_STORAGE_LOCATION,PARALLEL_SERVER_STORAGE_CONSTRUCTOR,PARALLEL_SERVER_JOB_LOCATION,PARALLEL_SERVER_DEBUG,PARALLEL_SERVER_LICENSE_NUMBER,MLM_WEB_LICENSE,MLM_WEB_USER_CRED,MLM_WEB_ID,TZ,MDCE_DECODE_FUNCTION,MDCE_STORAGE_LOCATION,MDCE_STORAGE_CONSTRUCTOR,MDCE_JOB_LOCATION,MDCE_DEBUG,MDCE_LICENSE_NUMBER "/cm/shared/apps/Mathworks-MPS/2023a/bin/worker" -parallel
job aborted:
rank: node: exit code[: error message]
0: compute078: -2
1: compute078: -2
2: compute078: -2
3: compute078: -2
4: compute078: -2
5: compute078: -2
6: compute162: -2
7: compute162: -2
8: compute162: -2
9: compute162: -2
10: compute162: -2
11: compute162: 1: process 11 exited without calling finalize
Stopping SMPD …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -shutdown -phrase MATLAB -port 27192
Exiting with code: 123 I have a custom reinforcement learning environment in which I train an agent using the SAC algorithm. The training runs smoothly on my desktop with four cores, but attempting to speed up the process on the university cluster has been unsuccessful. Below is some information about the job. Can this issue be resolved?
>> (jobRL5)
jobRL5 =
Job
Properties:
ID: 103
Type: pool
Username: amomani1
State: failed
SubmitDateTime: 13-May-2024 18:25:52
StartDateTime: 13-May-2024 18:27:12
RunningDuration: 0 days 13h 39m 28s
NumWorkersRange: [11 11]
NumThreads: 2
AutoAttachFiles: true
Auto Attached Files: List files
AttachedFiles: R:amomani1matlabcodes_SI_2023atalbot_inversion.m
R:amomani1matlabcodes_SI_2023atalbot_inversion2.m
R:amomani1matlabcodes_SI_2023atalbotcode.m
AutoAddClientPath: true
AdditionalPaths: \lightning.bu.binghamton.edumatlabnonshared23aIntegrationScriptsspiedie
\lightning.bu.binghamton.edumatlabnonshared23a
C:Usersamomani1DocumentsMATLAB
C:Usersamomani1AppDataLocalTemp8Editor_retgg
FileStore: [1×1 parallel.FileStore]
ValueStore: [1×1 parallel.ValueStore]
EnvironmentVariables: {}
Associated Tasks:
Number Pending: 0
Number Running: 0
Number Finished: 11
Task ID of Errors: []
Task ID of Warnings: []
Task Scheduler IDs: 4857192
>> c.getDebugLog(jobRL5)
LOG FILE OUTPUT:
Node file: compute[078,162]
Starting SMPD on compute078 compute162 …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -debug 0 &
Checking that SMPD processes are running (Attempt 1 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
No SMPD process running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
No SMPD process running on compute162
Checking that SMPD processes are running (Attempt 2 of 60)
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute078 > /dev/null 2>&1
SMPD process found running on compute078
/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -phrase MATLAB -port 27192 -status compute162 > /dev/null 2>&1
SMPD process found running on compute162
All SMPDs launched
Machine args: -hosts 2 compute078 6 compute162 6
"/cm/shared/apps/Mathworks-MPS/2023a/bin/mw_mpiexec" -smpd -phrase MATLAB -port 27192 -l -hosts 2 compute078 6 compute162 6 -genvlist PARALLEL_SERVER_DECODE_FUNCTION,PARALLEL_SERVER_STORAGE_LOCATION,PARALLEL_SERVER_STORAGE_CONSTRUCTOR,PARALLEL_SERVER_JOB_LOCATION,PARALLEL_SERVER_DEBUG,PARALLEL_SERVER_LICENSE_NUMBER,MLM_WEB_LICENSE,MLM_WEB_USER_CRED,MLM_WEB_ID,TZ,MDCE_DECODE_FUNCTION,MDCE_STORAGE_LOCATION,MDCE_STORAGE_CONSTRUCTOR,MDCE_JOB_LOCATION,MDCE_DEBUG,MDCE_LICENSE_NUMBER "/cm/shared/apps/Mathworks-MPS/2023a/bin/worker" -parallel
job aborted:
rank: node: exit code[: error message]
0: compute078: -2
1: compute078: -2
2: compute078: -2
3: compute078: -2
4: compute078: -2
5: compute078: -2
6: compute162: -2
7: compute162: -2
8: compute162: -2
9: compute162: -2
10: compute162: -2
11: compute162: 1: process 11 exited without calling finalize
Stopping SMPD …
srun –ntasks-per-node=1 –ntasks=2 /cm/shared/apps/Mathworks-MPS/2023a/bin/mw_smpd -shutdown -phrase MATLAB -port 27192
Exiting with code: 123 reinforcement learing, cluster MATLAB Answers — New Questions
How do I construct a mesh in PDE Solver from only the boundary points?
Basically, the title. I have a non-uniform or clustered mesh on which I would like to solve a particular PDE but I can’t figure out how. I know the boundary points and nothing else. Any help?Basically, the title. I have a non-uniform or clustered mesh on which I would like to solve a particular PDE but I can’t figure out how. I know the boundary points and nothing else. Any help? Basically, the title. I have a non-uniform or clustered mesh on which I would like to solve a particular PDE but I can’t figure out how. I know the boundary points and nothing else. Any help? mesh MATLAB Answers — New Questions
How to install Matlab without Oracle java and use Open JDK instead?
How to install Matlab without Oracle java and use Open JDK instead. We think that we need update all our installation to use Open java because Oracle is starting to end free use of java. We use SCCM to install software silent.How to install Matlab without Oracle java and use Open JDK instead. We think that we need update all our installation to use Open java because Oracle is starting to end free use of java. We use SCCM to install software silent. How to install Matlab without Oracle java and use Open JDK instead. We think that we need update all our installation to use Open java because Oracle is starting to end free use of java. We use SCCM to install software silent. open jdk, install matlab MATLAB Answers — New Questions