Author: PuTI
Calculating 6D Estimation (3 Translations and 3 Rotations) from Two Orthogonal Detectors Output ((X, Y, Thea, Roll)
Hello everyone,
I am currently simulating a 2D-to-3D image registration pipeline to estimate 6D transformations (3D translations and 3 rotations) using two orthogonal X-ray detectors. From each detector, I can calculate the in-plane transformations (X, Y, Theta) and the out-of-plane rotations (Roll).
My question is whether it is possible to compute the full 6D transformation (3 translations and 3 rotations) using the information provided (X, Y, Theta, Roll).
I would greatly appreciate any insights or suggestions regarding this topic.
Thank you!Hello everyone,
I am currently simulating a 2D-to-3D image registration pipeline to estimate 6D transformations (3D translations and 3 rotations) using two orthogonal X-ray detectors. From each detector, I can calculate the in-plane transformations (X, Y, Theta) and the out-of-plane rotations (Roll).
My question is whether it is possible to compute the full 6D transformation (3 translations and 3 rotations) using the information provided (X, Y, Theta, Roll).
I would greatly appreciate any insights or suggestions regarding this topic.
Thank you! Hello everyone,
I am currently simulating a 2D-to-3D image registration pipeline to estimate 6D transformations (3D translations and 3 rotations) using two orthogonal X-ray detectors. From each detector, I can calculate the in-plane transformations (X, Y, Theta) and the out-of-plane rotations (Roll).
My question is whether it is possible to compute the full 6D transformation (3 translations and 3 rotations) using the information provided (X, Y, Theta, Roll).
I would greatly appreciate any insights or suggestions regarding this topic.
Thank you! 2d-to-3d image registration, 6d transformations MATLAB Answers — New Questions
Error only in versions after 2023b “Warning: Background transparency is not supported; using white instead.”
So far I have tried plotting and exporting the figure with versions 2024b, 2025b and MatlabOnline. Unfortunately, I am running into wall with generating/exporting figures with transparent background. For any type of plots, even just 2D plots:
[a, b] = deal(rand(5,1), rand(5,1))
plot(a,b)
In the past I would just click Edit > Copy Figure and paste into my word doc or anywhere. I checked theEdit > Copy Options… and set the Transparent background. Plots generated by these versions alway retain the background color white or black depending on the theme setting. The transparent option does not even show up if I go through File > Export Setup…>Export .
If I try to export in command in 2024b & 2025b I get the warning:
On Matlab Online I get even more warnings:
Warning: exportsetupdlg will be removed. Using uiexportdlg instead.
> In exportsetupdlg (line 27)
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip/FigureToolstripActionFactory/executeAction
In matlab.graphics.internal.toolstrip.FigureToolstripManager.actionCallback
Warning: Background transparency is not supported; using black instead.
Warning: Background transparency is not supported; using black instead.
I have been using Matlab for a long time so I have not fiddled with any settings for years. I test ran plot scripts that I used with 2023b and previous versions successfully before but this issue persist with the new Matlab versions.
I was excited to see 2025 versions got dark theme but can’t even use for this minor but very inconvient issue. Please help!
Update: Just reinstalled 2023b, now getting the same error on 2023b too!So far I have tried plotting and exporting the figure with versions 2024b, 2025b and MatlabOnline. Unfortunately, I am running into wall with generating/exporting figures with transparent background. For any type of plots, even just 2D plots:
[a, b] = deal(rand(5,1), rand(5,1))
plot(a,b)
In the past I would just click Edit > Copy Figure and paste into my word doc or anywhere. I checked theEdit > Copy Options… and set the Transparent background. Plots generated by these versions alway retain the background color white or black depending on the theme setting. The transparent option does not even show up if I go through File > Export Setup…>Export .
If I try to export in command in 2024b & 2025b I get the warning:
On Matlab Online I get even more warnings:
Warning: exportsetupdlg will be removed. Using uiexportdlg instead.
> In exportsetupdlg (line 27)
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip/FigureToolstripActionFactory/executeAction
In matlab.graphics.internal.toolstrip.FigureToolstripManager.actionCallback
Warning: Background transparency is not supported; using black instead.
Warning: Background transparency is not supported; using black instead.
I have been using Matlab for a long time so I have not fiddled with any settings for years. I test ran plot scripts that I used with 2023b and previous versions successfully before but this issue persist with the new Matlab versions.
I was excited to see 2025 versions got dark theme but can’t even use for this minor but very inconvient issue. Please help!
Update: Just reinstalled 2023b, now getting the same error on 2023b too! So far I have tried plotting and exporting the figure with versions 2024b, 2025b and MatlabOnline. Unfortunately, I am running into wall with generating/exporting figures with transparent background. For any type of plots, even just 2D plots:
[a, b] = deal(rand(5,1), rand(5,1))
plot(a,b)
In the past I would just click Edit > Copy Figure and paste into my word doc or anywhere. I checked theEdit > Copy Options… and set the Transparent background. Plots generated by these versions alway retain the background color white or black depending on the theme setting. The transparent option does not even show up if I go through File > Export Setup…>Export .
If I try to export in command in 2024b & 2025b I get the warning:
On Matlab Online I get even more warnings:
Warning: exportsetupdlg will be removed. Using uiexportdlg instead.
> In exportsetupdlg (line 27)
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip.FigureToolstripActionFactory
In matlab.graphics.internal.toolstrip/FigureToolstripActionFactory/executeAction
In matlab.graphics.internal.toolstrip.FigureToolstripManager.actionCallback
Warning: Background transparency is not supported; using black instead.
Warning: Background transparency is not supported; using black instead.
I have been using Matlab for a long time so I have not fiddled with any settings for years. I test ran plot scripts that I used with 2023b and previous versions successfully before but this issue persist with the new Matlab versions.
I was excited to see 2025 versions got dark theme but can’t even use for this minor but very inconvient issue. Please help!
Update: Just reinstalled 2023b, now getting the same error on 2023b too! background-transparency, 2024b, 2025b, warning MATLAB Answers — New Questions
Virtual hardware availability in simulation environment
I want to develop hardware in loop model using STM32 microcontroller hardware. Prior to that, I want to do simulation with virtual model of hardware. It means the mechanism, motors and hardware, all are virtual. Is such facility available in MATLAB for STM32 or for any other hardware?I want to develop hardware in loop model using STM32 microcontroller hardware. Prior to that, I want to do simulation with virtual model of hardware. It means the mechanism, motors and hardware, all are virtual. Is such facility available in MATLAB for STM32 or for any other hardware? I want to develop hardware in loop model using STM32 microcontroller hardware. Prior to that, I want to do simulation with virtual model of hardware. It means the mechanism, motors and hardware, all are virtual. Is such facility available in MATLAB for STM32 or for any other hardware? hil, stm32, hardware MATLAB Answers — New Questions
Control System for a Thermoelectric Cooler in Matlab & Simulink
I’m looking to model the control system block diagram for a thermoelectric cooler (TEC), that will be used in a small fridge. I’ve used the "Control Systems" toolbox to create block diagrams and get transient and steady state responses before for classes, however the transfer functions were often given or easy to solve. In this case, I’m stuck at finding the transfer function of the TEC, and how to incorporate it into a system. I recently learned about the simscape electronics toolbox that has a TEC block available, and a tutorial on how to use it, however I am unsure of how (or if) that would work with the control systems toolbox.
For some additional information on what I’m trying to acheive, here is an application note on a similar project. I’m mostly trying to recreate Figure 2 from Maxim Integrated’s APPLICATION NOTE 5424. I haven’t picked out exact components yet.
I’m new to control systems, matlab, simulink, and TECs, so any information would be greatly appreciated! And if I am going about this all wrong, a new direction would be appreciated as well.I’m looking to model the control system block diagram for a thermoelectric cooler (TEC), that will be used in a small fridge. I’ve used the "Control Systems" toolbox to create block diagrams and get transient and steady state responses before for classes, however the transfer functions were often given or easy to solve. In this case, I’m stuck at finding the transfer function of the TEC, and how to incorporate it into a system. I recently learned about the simscape electronics toolbox that has a TEC block available, and a tutorial on how to use it, however I am unsure of how (or if) that would work with the control systems toolbox.
For some additional information on what I’m trying to acheive, here is an application note on a similar project. I’m mostly trying to recreate Figure 2 from Maxim Integrated’s APPLICATION NOTE 5424. I haven’t picked out exact components yet.
I’m new to control systems, matlab, simulink, and TECs, so any information would be greatly appreciated! And if I am going about this all wrong, a new direction would be appreciated as well. I’m looking to model the control system block diagram for a thermoelectric cooler (TEC), that will be used in a small fridge. I’ve used the "Control Systems" toolbox to create block diagrams and get transient and steady state responses before for classes, however the transfer functions were often given or easy to solve. In this case, I’m stuck at finding the transfer function of the TEC, and how to incorporate it into a system. I recently learned about the simscape electronics toolbox that has a TEC block available, and a tutorial on how to use it, however I am unsure of how (or if) that would work with the control systems toolbox.
For some additional information on what I’m trying to acheive, here is an application note on a similar project. I’m mostly trying to recreate Figure 2 from Maxim Integrated’s APPLICATION NOTE 5424. I haven’t picked out exact components yet.
I’m new to control systems, matlab, simulink, and TECs, so any information would be greatly appreciated! And if I am going about this all wrong, a new direction would be appreciated as well. tec, controlsystems, peltiercooler MATLAB Answers — New Questions
Why is Matlab unable to import Wolfspeed Mosfet with Diode Model?
Hi,
I’m trying to import Mosfet Model parameters from PLECS .xml file provided by Wolfspeed using ee_importDeviceParameters function, however, I keep getting this error:
I have already inserted a mosfet block in Simulink with the body diode included and I use the function like this.
ee_importDeviceParameters("E3M0040120J2.xml","wolfspeed","untitled/MOSFET (Ideal, Switching)", GateResistanceOn=1, GateResistanceOff=1)
Is there anything I am missing?
Thanks in advance!Hi,
I’m trying to import Mosfet Model parameters from PLECS .xml file provided by Wolfspeed using ee_importDeviceParameters function, however, I keep getting this error:
I have already inserted a mosfet block in Simulink with the body diode included and I use the function like this.
ee_importDeviceParameters("E3M0040120J2.xml","wolfspeed","untitled/MOSFET (Ideal, Switching)", GateResistanceOn=1, GateResistanceOff=1)
Is there anything I am missing?
Thanks in advance! Hi,
I’m trying to import Mosfet Model parameters from PLECS .xml file provided by Wolfspeed using ee_importDeviceParameters function, however, I keep getting this error:
I have already inserted a mosfet block in Simulink with the body diode included and I use the function like this.
ee_importDeviceParameters("E3M0040120J2.xml","wolfspeed","untitled/MOSFET (Ideal, Switching)", GateResistanceOn=1, GateResistanceOff=1)
Is there anything I am missing?
Thanks in advance! mosfet, simscape MATLAB Answers — New Questions
Find the first value that is greater than or equal to and its corresponding value
A table from an .txt file is imported. It looks like this (say first column as x and second as y)
0.01 3
0.02 4
0.03 6
0.04 9
0.05 12
0.06 14
0.07 15
0.08 18
How to find the first value in column y that is greater than or equal to 10 and find the corresponding x value (PS: Both x and y are increasing as it goes down)A table from an .txt file is imported. It looks like this (say first column as x and second as y)
0.01 3
0.02 4
0.03 6
0.04 9
0.05 12
0.06 14
0.07 15
0.08 18
How to find the first value in column y that is greater than or equal to 10 and find the corresponding x value (PS: Both x and y are increasing as it goes down) A table from an .txt file is imported. It looks like this (say first column as x and second as y)
0.01 3
0.02 4
0.03 6
0.04 9
0.05 12
0.06 14
0.07 15
0.08 18
How to find the first value in column y that is greater than or equal to 10 and find the corresponding x value (PS: Both x and y are increasing as it goes down) index, greater, equal, corresponding MATLAB Answers — New Questions
When generating code, is there a setting to turn type casting on/off?
When generating code from the same Simulink file on two different computers, type casting is not generated on one computer.
This appears to be a setting somewhere other than the Simulink file itself.
Please review this inquiry and respond.When generating code from the same Simulink file on two different computers, type casting is not generated on one computer.
This appears to be a setting somewhere other than the Simulink file itself.
Please review this inquiry and respond. When generating code from the same Simulink file on two different computers, type casting is not generated on one computer.
This appears to be a setting somewhere other than the Simulink file itself.
Please review this inquiry and respond. type casting, code generation, simulink, matlab MATLAB Answers — New Questions
FMU Export for Windows x86-32
Dear Sir or Madam,
I am trying to export a Simulink model as Standalone FMU for Windows x86-32 platform. However, I obtain the following error:
Error:An installation of Microsoft Visual C++ 2017 cannot be detected
I have already installed Microsoft Visual Studio BuildTools 2017. This is the installation path.
C:Program Files (x86)Microsoft Visual Studio2017BuildTools
How could I solve this?
Thank you very much in advance.
Víctor Sánchez SuárezDear Sir or Madam,
I am trying to export a Simulink model as Standalone FMU for Windows x86-32 platform. However, I obtain the following error:
Error:An installation of Microsoft Visual C++ 2017 cannot be detected
I have already installed Microsoft Visual Studio BuildTools 2017. This is the installation path.
C:Program Files (x86)Microsoft Visual Studio2017BuildTools
How could I solve this?
Thank you very much in advance.
Víctor Sánchez Suárez Dear Sir or Madam,
I am trying to export a Simulink model as Standalone FMU for Windows x86-32 platform. However, I obtain the following error:
Error:An installation of Microsoft Visual C++ 2017 cannot be detected
I have already installed Microsoft Visual Studio BuildTools 2017. This is the installation path.
C:Program Files (x86)Microsoft Visual Studio2017BuildTools
How could I solve this?
Thank you very much in advance.
Víctor Sánchez Suárez fmu, 32-bit, x86, microsoft visual c++ 2017 MATLAB Answers — New Questions
Removing ghost rings on CCD reading?
Hello! I have a matrix were each value contains a level of intensity. I do some data manipulation on my data, and create these plots. My function that removes the ghost rings is horrible because it pouches everything. My goal is to only pouch the shadow ring. Can I get some advice on how to deal with it? TThanks!Hello! I have a matrix were each value contains a level of intensity. I do some data manipulation on my data, and create these plots. My function that removes the ghost rings is horrible because it pouches everything. My goal is to only pouch the shadow ring. Can I get some advice on how to deal with it? TThanks! Hello! I have a matrix were each value contains a level of intensity. I do some data manipulation on my data, and create these plots. My function that removes the ghost rings is horrible because it pouches everything. My goal is to only pouch the shadow ring. Can I get some advice on how to deal with it? TThanks! image processing, artifact removal MATLAB Answers — New Questions
where can I find libmwtommfile.dylib
I have used slbuild to create an executable file from a Simulink model. When I run the executable I get the error mesage
Could not open library: libmwtommfile.dylib
Where can I find this library?I have used slbuild to create an executable file from a Simulink model. When I run the executable I get the error mesage
Could not open library: libmwtommfile.dylib
Where can I find this library? I have used slbuild to create an executable file from a Simulink model. When I run the executable I get the error mesage
Could not open library: libmwtommfile.dylib
Where can I find this library? dynamic library MATLAB Answers — New Questions
How to initialize the deep learning ip core generated by deep learning hdl toolbox
Hi,
I’m currently working with the Deep Learning HDL Toolbox and would like to integrate the generated IP core into my own RTL design.
I used Wireshark to capture the traffic between MATLAB and the board, and I can now “run” the core by replaying those packets.
However, I haven’t been able to reverse-engineer the full initialization sequence: loading the network weights into external DDR, programming the configuration registers, and completing any hidden hand-shakes that happen before the first inference.
When I let MATLAB drive the board the same bit-stream works perfectly, so the missing piece is clearly the initialization flow.
Could you point me to the register map, the required power-on sequence, or any documentation that explains how to bring the Deep Learning IP out of reset and validate that it is ready to accept input data?
Thank you very much for your help.
Best regards.
Looking forward to your reply.Hi,
I’m currently working with the Deep Learning HDL Toolbox and would like to integrate the generated IP core into my own RTL design.
I used Wireshark to capture the traffic between MATLAB and the board, and I can now “run” the core by replaying those packets.
However, I haven’t been able to reverse-engineer the full initialization sequence: loading the network weights into external DDR, programming the configuration registers, and completing any hidden hand-shakes that happen before the first inference.
When I let MATLAB drive the board the same bit-stream works perfectly, so the missing piece is clearly the initialization flow.
Could you point me to the register map, the required power-on sequence, or any documentation that explains how to bring the Deep Learning IP out of reset and validate that it is ready to accept input data?
Thank you very much for your help.
Best regards.
Looking forward to your reply. Hi,
I’m currently working with the Deep Learning HDL Toolbox and would like to integrate the generated IP core into my own RTL design.
I used Wireshark to capture the traffic between MATLAB and the board, and I can now “run” the core by replaying those packets.
However, I haven’t been able to reverse-engineer the full initialization sequence: loading the network weights into external DDR, programming the configuration registers, and completing any hidden hand-shakes that happen before the first inference.
When I let MATLAB drive the board the same bit-stream works perfectly, so the missing piece is clearly the initialization flow.
Could you point me to the register map, the required power-on sequence, or any documentation that explains how to bring the Deep Learning IP out of reset and validate that it is ready to accept input data?
Thank you very much for your help.
Best regards.
Looking forward to your reply. fpga, deep learning ip core, initialize MATLAB Answers — New Questions
Microsoft announces acquisition of Osmos to accelerate autonomous data engineering in Fabric
Today, Microsoft is announcing the acquisition of Osmos, an agentic AI data engineering platform designed to help simplify complex and time-consuming data workflows.
Microsoft + Osmos: Extending Microsoft Fabric with agentic AI for data engineering
Organizations today face a common challenge: data is everywhere, but making it actionable is often manual, slow and expensive. Many teams spend most of their time preparing data instead of analyzing it. Osmos solves this problem by applying agentic AI to turn raw data into analytics and AI-ready assets in OneLake, the unified data lake at the core of Microsoft Fabric.
This acquisition builds on Microsoft Fabric’s goal to enable customers to unify all data and analytics into a single, secure platform. With the acquisition of Osmos, we are taking the next step toward a future where autonomous AI agents work alongside people — helping reduce operational overhead and making it easier for customers to connect, prepare, analyze and share data across the organization.
Looking ahead: Empowering customers to unlock value from data
Today’s announcement reinforces Microsoft’s focus to help every organization unlock more value from their data faster and with greater simplicity. The Osmos team will join Microsoft’s Fabric engineering organization to advance our vision for simpler, more intuitive and AI-ready data experiences.
Stay tuned for updates as we integrate Osmos into Fabric and continue our journey to empower every organization to achieve more with data. To follow updates, visit the Microsoft Fabric Blog.
Bogdan Crivat leads Microsoft’s Azure Data Analytics, building the Fabric engines for big data behind Power BI, and our AI-powered analytics infrastructure.
The post Microsoft announces acquisition of Osmos to accelerate autonomous data engineering in Fabric appeared first on The Official Microsoft Blog.
Today, Microsoft is announcing the acquisition of Osmos, an agentic AI data engineering platform designed to help simplify complex and time-consuming data workflows. Microsoft + Osmos: Extending Microsoft Fabric with agentic AI for data engineering Organizations today face a common challenge: data is everywhere, but making it actionable is often manual, slow and expensive. Many…
The post Microsoft announces acquisition of Osmos to accelerate autonomous data engineering in Fabric appeared first on The Official Microsoft Blog.Read More
Why t_tide prediction is offseted?
Hi, i’m trying to use t_tide_v1.4beta using matlab R2016a in 2 ways like in t_tide example but the result of the harmonic constants is not similar and the prediction is not similar between prediction also offseted to the observation data. Help me please. Herewith the code and the data that I use.
Code:
clear
clc
%format LONGG
%load t_example
% load data excel
data = readtable(‘D:TestT_Tidet_tide_v1.4betakmna_wnan.xlsx’);
time_axis = datetime(data.waktu);
data_time = datenum(time_axis);
obs_value = data.ukuran;
% Analisis Harminik
%—————————————————————————
% Way 1
% analisys
[NAME,FREQ,TIDECON,XOUT] = t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’synthesis’,1);
% prediction
YOUT=t_predic(data_time,NAME,FREQ,TIDECON,’latitude’,-3.66295,’synthesis’,1);
% Way 2
% analisys
[HarKons,XOUT2]=t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’rayleigh’,1,’synthesis’,1);
% prediction
% YOUT=T_PREDIC(TIM,TIDESTRUC,…)
YOUTHarKons1=t_predic(data_time,HarKons,’latitude’,-3.66295,’synthesis’,1);
YOUTHarKons2=t_predic(data_time,HarKons);
%% visualisasi
figure(1)
plot(time_axis,obs_value,’b’,’LineWidth’,1.5); hold on
plot(time_axis,XOUT,’r–‘,’LineWidth’,1.5); hold on
plot(time_axis,YOUT,’c.’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons1,’kx’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons2,’ko’,’LineWidth’,1.5); hold on
title(‘Tidal Elevation’,’FontSize’,14,’fontWeight’,’b’)
legend({‘obs_value’, ‘XOUT’, ‘YOUT’, ‘YOUTHarKons1’, ‘YOUTHarKons2′},’FontSize’, 10, ‘FontWeight’, ‘bold’, ‘Location’, ‘northeastoutside’);
xlabel(‘Time’,’FontSize’,14,’FontWeight’,’b’)
ylabel(‘Elevation (m)’,’FontSize’,14,’FontWeight’,’b’)
% Format sumbu X agar menampilkan tanggal/waktu
% datetick(‘x’, ‘dd/mm/yyyy HH:MM:ss’, ‘keepticks’, ‘keeplimits’)
grid on
Tidal graph obs_value and prediction:
Data:Hi, i’m trying to use t_tide_v1.4beta using matlab R2016a in 2 ways like in t_tide example but the result of the harmonic constants is not similar and the prediction is not similar between prediction also offseted to the observation data. Help me please. Herewith the code and the data that I use.
Code:
clear
clc
%format LONGG
%load t_example
% load data excel
data = readtable(‘D:TestT_Tidet_tide_v1.4betakmna_wnan.xlsx’);
time_axis = datetime(data.waktu);
data_time = datenum(time_axis);
obs_value = data.ukuran;
% Analisis Harminik
%—————————————————————————
% Way 1
% analisys
[NAME,FREQ,TIDECON,XOUT] = t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’synthesis’,1);
% prediction
YOUT=t_predic(data_time,NAME,FREQ,TIDECON,’latitude’,-3.66295,’synthesis’,1);
% Way 2
% analisys
[HarKons,XOUT2]=t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’rayleigh’,1,’synthesis’,1);
% prediction
% YOUT=T_PREDIC(TIM,TIDESTRUC,…)
YOUTHarKons1=t_predic(data_time,HarKons,’latitude’,-3.66295,’synthesis’,1);
YOUTHarKons2=t_predic(data_time,HarKons);
%% visualisasi
figure(1)
plot(time_axis,obs_value,’b’,’LineWidth’,1.5); hold on
plot(time_axis,XOUT,’r–‘,’LineWidth’,1.5); hold on
plot(time_axis,YOUT,’c.’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons1,’kx’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons2,’ko’,’LineWidth’,1.5); hold on
title(‘Tidal Elevation’,’FontSize’,14,’fontWeight’,’b’)
legend({‘obs_value’, ‘XOUT’, ‘YOUT’, ‘YOUTHarKons1’, ‘YOUTHarKons2′},’FontSize’, 10, ‘FontWeight’, ‘bold’, ‘Location’, ‘northeastoutside’);
xlabel(‘Time’,’FontSize’,14,’FontWeight’,’b’)
ylabel(‘Elevation (m)’,’FontSize’,14,’FontWeight’,’b’)
% Format sumbu X agar menampilkan tanggal/waktu
% datetick(‘x’, ‘dd/mm/yyyy HH:MM:ss’, ‘keepticks’, ‘keeplimits’)
grid on
Tidal graph obs_value and prediction:
Data: Hi, i’m trying to use t_tide_v1.4beta using matlab R2016a in 2 ways like in t_tide example but the result of the harmonic constants is not similar and the prediction is not similar between prediction also offseted to the observation data. Help me please. Herewith the code and the data that I use.
Code:
clear
clc
%format LONGG
%load t_example
% load data excel
data = readtable(‘D:TestT_Tidet_tide_v1.4betakmna_wnan.xlsx’);
time_axis = datetime(data.waktu);
data_time = datenum(time_axis);
obs_value = data.ukuran;
% Analisis Harminik
%—————————————————————————
% Way 1
% analisys
[NAME,FREQ,TIDECON,XOUT] = t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’synthesis’,1);
% prediction
YOUT=t_predic(data_time,NAME,FREQ,TIDECON,’latitude’,-3.66295,’synthesis’,1);
% Way 2
% analisys
[HarKons,XOUT2]=t_tide(obs_value,’interval’,1,’start’,data_time(1),’latitude’,-3.66295,’rayleigh’,1,’synthesis’,1);
% prediction
% YOUT=T_PREDIC(TIM,TIDESTRUC,…)
YOUTHarKons1=t_predic(data_time,HarKons,’latitude’,-3.66295,’synthesis’,1);
YOUTHarKons2=t_predic(data_time,HarKons);
%% visualisasi
figure(1)
plot(time_axis,obs_value,’b’,’LineWidth’,1.5); hold on
plot(time_axis,XOUT,’r–‘,’LineWidth’,1.5); hold on
plot(time_axis,YOUT,’c.’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons1,’kx’,’LineWidth’,1.5); hold on
plot(time_axis,YOUTHarKons2,’ko’,’LineWidth’,1.5); hold on
title(‘Tidal Elevation’,’FontSize’,14,’fontWeight’,’b’)
legend({‘obs_value’, ‘XOUT’, ‘YOUT’, ‘YOUTHarKons1’, ‘YOUTHarKons2′},’FontSize’, 10, ‘FontWeight’, ‘bold’, ‘Location’, ‘northeastoutside’);
xlabel(‘Time’,’FontSize’,14,’FontWeight’,’b’)
ylabel(‘Elevation (m)’,’FontSize’,14,’FontWeight’,’b’)
% Format sumbu X agar menampilkan tanggal/waktu
% datetick(‘x’, ‘dd/mm/yyyy HH:MM:ss’, ‘keepticks’, ‘keeplimits’)
grid on
Tidal graph obs_value and prediction:
Data: t_tide MATLAB Answers — New Questions
Putting spaces between elements of a string/
I have found some graph resources that list the adjacency matrices as strings of numbers without spaces, such as:
011001110000
101111000000
110100011000
011010001100
010101000110
110010100010
100001010011
101000101001
001100010101
000110001011
000011100101
000000111110
I would like to insert spaces between each digit, so that I can use it as my adjacency matrix in Matlab. Is there a good way to do this? The matrices will all be square, but of different sizes.I have found some graph resources that list the adjacency matrices as strings of numbers without spaces, such as:
011001110000
101111000000
110100011000
011010001100
010101000110
110010100010
100001010011
101000101001
001100010101
000110001011
000011100101
000000111110
I would like to insert spaces between each digit, so that I can use it as my adjacency matrix in Matlab. Is there a good way to do this? The matrices will all be square, but of different sizes. I have found some graph resources that list the adjacency matrices as strings of numbers without spaces, such as:
011001110000
101111000000
110100011000
011010001100
010101000110
110010100010
100001010011
101000101001
001100010101
000110001011
000011100101
000000111110
I would like to insert spaces between each digit, so that I can use it as my adjacency matrix in Matlab. Is there a good way to do this? The matrices will all be square, but of different sizes. adjacency matrix, strings, spaces, formatting MATLAB Answers — New Questions
Error replacing .so library
When using MATLAB/Simulink to control an Ettus USRP B210, I encountered the following issue: I modified several parts of the UHD driver and compiled it into a .so file. I want to replace the .so file used by Simulink with my own version, but an error indicates that libtre_hash.so.2 is missing. Is it possible to use my modified driver with Simulink to control the USRP?When using MATLAB/Simulink to control an Ettus USRP B210, I encountered the following issue: I modified several parts of the UHD driver and compiled it into a .so file. I want to replace the .so file used by Simulink with my own version, but an error indicates that libtre_hash.so.2 is missing. Is it possible to use my modified driver with Simulink to control the USRP? When using MATLAB/Simulink to control an Ettus USRP B210, I encountered the following issue: I modified several parts of the UHD driver and compiled it into a .so file. I want to replace the .so file used by Simulink with my own version, but an error indicates that libtre_hash.so.2 is missing. Is it possible to use my modified driver with Simulink to control the USRP? simulink, ,r2023b MATLAB Answers — New Questions
how to plot these 2 column data into a curve on oxy plane
pls see the attached,
Thanks &Br,
Tony.wangpls see the attached,
Thanks &Br,
Tony.wang pls see the attached,
Thanks &Br,
Tony.wang plotting data into a curve MATLAB Answers — New Questions
Implicit expansion with arrayfun (cpu vs gpu)
I find very convenient that Matlab allows for implicit expansion since the 2016 version (for an explanation, see this nice article: https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/?s_tid=blogs_rc_1).
I was then puzzled to discover that arrayfun on the cpu does not allow for it, while arrayfun when called with gpu arrays does allow for implicit expansion. Below is a MWE to demonstrate this behavior.
Let me quickly explain it: if I have two vectors x with size [2,1] and y with size [1,2], I can calculate the sum x+y and get a matrix 2*2 as intended. This is better than the ugly and more memory-intensive
repmat(x,1,2)+repmat(y,2,1)
Unfortunately this does not work with arrayfun on the cpu!
Since I code both using normal arrays and GPU arrays, I find this different behavior of arrayfun quite misleading. It would be great if Matlab could allow implicit expansion also on arrayfun cpu. When I have large arrays, duplicating dimensions with repmat takes a lot of memory.
%% Demonstration of implicit expansion support in MATLAB and arrayfun
% This script shows that:
% 1) MATLAB supports implicit expansion for standard array operations.
% 2) arrayfun on the GPU supports implicit expansion.
% 3) arrayfun on the CPU does NOT support implicit expansion!!
%
% Implicit expansion allows a 2×1 vector to be added to a 1×2 vector,
% producing a 2×2 matrix.
clear; clc; close all;
% Define test vectors
x = [1; 2]; % Column vector (2×1)
y = [1, 2]; % Row vector (1×2)
%% Implicit expansion using standard MATLAB operations
F1 = myadd(x, y);
%% Implicit expansion using arrayfun on the GPU
F2 = arrayfun(@myadd, gpuArray(x), gpuArray(y));
%% Attempt implicit expansion using arrayfun on the CPU (expected to fail)
try
F3 = arrayfun(@myadd, x, y);
catch ME
fprintf(‘CPU arrayfun error (expected):n%snn’, ME.message);
end
%% Function myadd
function F = myadd(x, y)
% Element-wise addition
F = x + y;
endI find very convenient that Matlab allows for implicit expansion since the 2016 version (for an explanation, see this nice article: https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/?s_tid=blogs_rc_1).
I was then puzzled to discover that arrayfun on the cpu does not allow for it, while arrayfun when called with gpu arrays does allow for implicit expansion. Below is a MWE to demonstrate this behavior.
Let me quickly explain it: if I have two vectors x with size [2,1] and y with size [1,2], I can calculate the sum x+y and get a matrix 2*2 as intended. This is better than the ugly and more memory-intensive
repmat(x,1,2)+repmat(y,2,1)
Unfortunately this does not work with arrayfun on the cpu!
Since I code both using normal arrays and GPU arrays, I find this different behavior of arrayfun quite misleading. It would be great if Matlab could allow implicit expansion also on arrayfun cpu. When I have large arrays, duplicating dimensions with repmat takes a lot of memory.
%% Demonstration of implicit expansion support in MATLAB and arrayfun
% This script shows that:
% 1) MATLAB supports implicit expansion for standard array operations.
% 2) arrayfun on the GPU supports implicit expansion.
% 3) arrayfun on the CPU does NOT support implicit expansion!!
%
% Implicit expansion allows a 2×1 vector to be added to a 1×2 vector,
% producing a 2×2 matrix.
clear; clc; close all;
% Define test vectors
x = [1; 2]; % Column vector (2×1)
y = [1, 2]; % Row vector (1×2)
%% Implicit expansion using standard MATLAB operations
F1 = myadd(x, y);
%% Implicit expansion using arrayfun on the GPU
F2 = arrayfun(@myadd, gpuArray(x), gpuArray(y));
%% Attempt implicit expansion using arrayfun on the CPU (expected to fail)
try
F3 = arrayfun(@myadd, x, y);
catch ME
fprintf(‘CPU arrayfun error (expected):n%snn’, ME.message);
end
%% Function myadd
function F = myadd(x, y)
% Element-wise addition
F = x + y;
end I find very convenient that Matlab allows for implicit expansion since the 2016 version (for an explanation, see this nice article: https://blogs.mathworks.com/loren/2016/10/24/matlab-arithmetic-expands-in-r2016b/?s_tid=blogs_rc_1).
I was then puzzled to discover that arrayfun on the cpu does not allow for it, while arrayfun when called with gpu arrays does allow for implicit expansion. Below is a MWE to demonstrate this behavior.
Let me quickly explain it: if I have two vectors x with size [2,1] and y with size [1,2], I can calculate the sum x+y and get a matrix 2*2 as intended. This is better than the ugly and more memory-intensive
repmat(x,1,2)+repmat(y,2,1)
Unfortunately this does not work with arrayfun on the cpu!
Since I code both using normal arrays and GPU arrays, I find this different behavior of arrayfun quite misleading. It would be great if Matlab could allow implicit expansion also on arrayfun cpu. When I have large arrays, duplicating dimensions with repmat takes a lot of memory.
%% Demonstration of implicit expansion support in MATLAB and arrayfun
% This script shows that:
% 1) MATLAB supports implicit expansion for standard array operations.
% 2) arrayfun on the GPU supports implicit expansion.
% 3) arrayfun on the CPU does NOT support implicit expansion!!
%
% Implicit expansion allows a 2×1 vector to be added to a 1×2 vector,
% producing a 2×2 matrix.
clear; clc; close all;
% Define test vectors
x = [1; 2]; % Column vector (2×1)
y = [1, 2]; % Row vector (1×2)
%% Implicit expansion using standard MATLAB operations
F1 = myadd(x, y);
%% Implicit expansion using arrayfun on the GPU
F2 = arrayfun(@myadd, gpuArray(x), gpuArray(y));
%% Attempt implicit expansion using arrayfun on the CPU (expected to fail)
try
F3 = arrayfun(@myadd, x, y);
catch ME
fprintf(‘CPU arrayfun error (expected):n%snn’, ME.message);
end
%% Function myadd
function F = myadd(x, y)
% Element-wise addition
F = x + y;
end arrayfun, implicit expansion MATLAB Answers — New Questions
The assignment of workers to cores
Hello, we are planning to buy an MDSC of 128 workers.
In running a parallel job of 128 workers, what is the minimum number of cores should there be in the hardware platform that I am going to use? How many workers can I assign to each core of the machine at the maximum ?
Would appreciate your answer. ThanksHello, we are planning to buy an MDSC of 128 workers.
In running a parallel job of 128 workers, what is the minimum number of cores should there be in the hardware platform that I am going to use? How many workers can I assign to each core of the machine at the maximum ?
Would appreciate your answer. Thanks Hello, we are planning to buy an MDSC of 128 workers.
In running a parallel job of 128 workers, what is the minimum number of cores should there be in the hardware platform that I am going to use? How many workers can I assign to each core of the machine at the maximum ?
Would appreciate your answer. Thanks parallel computing MATLAB Answers — New Questions
License checkout failed – License Manager Error -9
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2015b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/mpva/.matlab/R2015b_licenses:/usr/local/MATLAB/R2015b/licenses/license.dat:/usr/local/MATLAB/R
2015b/licenses/license_OptiPlex-960_1066905_R2015b.lic
Licensing error: -9,57.License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2015b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/mpva/.matlab/R2015b_licenses:/usr/local/MATLAB/R2015b/licenses/license.dat:/usr/local/MATLAB/R
2015b/licenses/license_OptiPlex-960_1066905_R2015b.lic
Licensing error: -9,57. License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2015b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/mpva/.matlab/R2015b_licenses:/usr/local/MATLAB/R2015b/licenses/license.dat:/usr/local/MATLAB/R
2015b/licenses/license_OptiPlex-960_1066905_R2015b.lic
Licensing error: -9,57. license error MATLAB Answers — New Questions
How to remove this red line in my micro-doppler analysis?
Here is my main code, I look the spectograms but I only see a red strip just near to the middle bins, which I assume that it is an object with zero speed.
rFFT = fft(mDopplerAvg.*win, [],1);
rFFT = rFFT – mean(rFFT, 2);
% Obtain range bins that include a target
rangePower = mean(abs(rFFT).^2,2);
% Do not use first few bins as they would probably include DC peaks due
% to antenna leakage (can be adjusted empirically)
rangeVar = var(abs(rFFT), 0, 2);
rangeVar(1:6) = 0;
[~, targetIdx] = max(rangeVar);
slowTime = rFFT(targetIdx,:);
Here, the mDopplerAvg is the raw I/Q matrix that I process for micro-Doppler. I have applied some tricks in order that the static zero speed object (the red strip) go away. However, it didn’t work. At the last of the code, the classic short time Fourier transform is applied along the second axis, and I think the size of the spectogram is well-configurated. I almost always obtain a map just like below.Here is my main code, I look the spectograms but I only see a red strip just near to the middle bins, which I assume that it is an object with zero speed.
rFFT = fft(mDopplerAvg.*win, [],1);
rFFT = rFFT – mean(rFFT, 2);
% Obtain range bins that include a target
rangePower = mean(abs(rFFT).^2,2);
% Do not use first few bins as they would probably include DC peaks due
% to antenna leakage (can be adjusted empirically)
rangeVar = var(abs(rFFT), 0, 2);
rangeVar(1:6) = 0;
[~, targetIdx] = max(rangeVar);
slowTime = rFFT(targetIdx,:);
Here, the mDopplerAvg is the raw I/Q matrix that I process for micro-Doppler. I have applied some tricks in order that the static zero speed object (the red strip) go away. However, it didn’t work. At the last of the code, the classic short time Fourier transform is applied along the second axis, and I think the size of the spectogram is well-configurated. I almost always obtain a map just like below. Here is my main code, I look the spectograms but I only see a red strip just near to the middle bins, which I assume that it is an object with zero speed.
rFFT = fft(mDopplerAvg.*win, [],1);
rFFT = rFFT – mean(rFFT, 2);
% Obtain range bins that include a target
rangePower = mean(abs(rFFT).^2,2);
% Do not use first few bins as they would probably include DC peaks due
% to antenna leakage (can be adjusted empirically)
rangeVar = var(abs(rFFT), 0, 2);
rangeVar(1:6) = 0;
[~, targetIdx] = max(rangeVar);
slowTime = rFFT(targetIdx,:);
Here, the mDopplerAvg is the raw I/Q matrix that I process for micro-Doppler. I have applied some tricks in order that the static zero speed object (the red strip) go away. However, it didn’t work. At the last of the code, the classic short time Fourier transform is applied along the second axis, and I think the size of the spectogram is well-configurated. I almost always obtain a map just like below. i/q, radar, signal processing, filtering MATLAB Answers — New Questions









