Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab

Category: Matlab

Category Archives: Matlab

Matlab News Blog From https://blogs.mathworks.com/

Assistance with Missing “Foundational MATLAB” Badge
Matlab News

Assistance with Missing “Foundational MATLAB” Badge

PuTI / 2025-01-15

Dear MathWorks Help Center,
I hope this email finds you well.
I recently completed the MATLAB for the MathWorks Certified MATLAB Associate Exam course. However, I have not yet received the "Foundational MATLAB" badge on Credly, which I believe is awarded upon successful completion of this course.
I kindly request your assistance in resolving this issue and ensuring that the badge is issued. Please let me know if there are any additional steps I need to take to receive it.
Thank you for your time and support. I look forward to your response.
Best regards,

Nguyen Thanh TuanDear MathWorks Help Center,
I hope this email finds you well.
I recently completed the MATLAB for the MathWorks Certified MATLAB Associate Exam course. However, I have not yet received the "Foundational MATLAB" badge on Credly, which I believe is awarded upon successful completion of this course.
I kindly request your assistance in resolving this issue and ensuring that the badge is issued. Please let me know if there are any additional steps I need to take to receive it.
Thank you for your time and support. I look forward to your response.
Best regards,

Nguyen Thanh Tuan Dear MathWorks Help Center,
I hope this email finds you well.
I recently completed the MATLAB for the MathWorks Certified MATLAB Associate Exam course. However, I have not yet received the "Foundational MATLAB" badge on Credly, which I believe is awarded upon successful completion of this course.
I kindly request your assistance in resolving this issue and ensuring that the badge is issued. Please let me know if there are any additional steps I need to take to receive it.
Thank you for your time and support. I look forward to your response.
Best regards,

Nguyen Thanh Tuan matlab badge, foundational matlab, missing badge MATLAB Answers — New Questions

​

Build error: C++ compiler produced errors.
Matlab News

Build error: C++ compiler produced errors.

PuTI / 2025-01-15

function deploy_tracing_raspberry_pi() %#codegen
persistent yolov3Detector;
if isempty(yolov3Detector)
yolov3Detector = coder.loadDeepLearningNetwork(‘yolov3Detector.mat’);
end
mypi = raspi(‘192.168.18.233′,’pi’,’raspberry’);
cam = cameraboard(mypi,’Resolution’,’160×120′);
s = servo(mypi, 18, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
k = servo(mypi, 23, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
n = 90;
m = 90;
u = 2;
t = 0;
writePosition(s, n);
writePosition(k, m);
% Main loop
start = tic;
while t < 10000
t = t + 1;
%Capture image cameraboard
img = snapshot(cam);
elapsedTime = toc(start);
%Process frames at every 0.25 seconds
if elapsedTime > 0.25
end
% Detect
[bboxes,scores] = detect(yolov3Detector,img,’Threshold’,0.6);
if ~isempty(bboxes)
img = insertObjectAnnotation(img,’rectangle’,bboxes,scores);
[hI,wI,~] = size(img);
a = find(scores==max(scores));
x = bboxes(a,1);
y = bboxes(a,2);
w = bboxes(a,3);
h = bboxes(a,4);

if (wI/2 – (x + w/2) < 0)
n=n+u;
if n>=170
n = 150;
writePosition(s,n);
else
writePosition(s,n);
end
end
if (wI/2 – (x + w/2) > 0)
n=n-u;
if n<=10
n = 20;
writePosition(s,n);
else
writePosition(s,n);
end
end

if (hI/2 – (y + h/2) >0)
m=m+u;
if m>=170
m = 150;
writePosition(k,m);
else
writePosition(k,m);
end
end
if (hI/2 – (y + h/2) < 0)
m=m-u;
if m<=10
m = 20;
writePosition(k,m);
else
writePosition(k,m);
end

end
end

displayImage(mypi,img);
drawnow
end

%%
%when running the deploy script, I get an error
%Error executing command "touch -c /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi/*.*;make -j$(($(nproc)+1)) -Otarget -f deploy_tracing_raspberry_pi_rtw.mk all MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2024a" LINUX_TARGET_LIBS_MACRO="-lSDL -lmmal -lmmal_core -lmmal_util -lmmal_vc_client -lvcos -lbcm_host" -C /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi LC_ALL=C".function deploy_tracing_raspberry_pi() %#codegen
persistent yolov3Detector;
if isempty(yolov3Detector)
yolov3Detector = coder.loadDeepLearningNetwork(‘yolov3Detector.mat’);
end
mypi = raspi(‘192.168.18.233′,’pi’,’raspberry’);
cam = cameraboard(mypi,’Resolution’,’160×120′);
s = servo(mypi, 18, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
k = servo(mypi, 23, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
n = 90;
m = 90;
u = 2;
t = 0;
writePosition(s, n);
writePosition(k, m);
% Main loop
start = tic;
while t < 10000
t = t + 1;
%Capture image cameraboard
img = snapshot(cam);
elapsedTime = toc(start);
%Process frames at every 0.25 seconds
if elapsedTime > 0.25
end
% Detect
[bboxes,scores] = detect(yolov3Detector,img,’Threshold’,0.6);
if ~isempty(bboxes)
img = insertObjectAnnotation(img,’rectangle’,bboxes,scores);
[hI,wI,~] = size(img);
a = find(scores==max(scores));
x = bboxes(a,1);
y = bboxes(a,2);
w = bboxes(a,3);
h = bboxes(a,4);

if (wI/2 – (x + w/2) < 0)
n=n+u;
if n>=170
n = 150;
writePosition(s,n);
else
writePosition(s,n);
end
end
if (wI/2 – (x + w/2) > 0)
n=n-u;
if n<=10
n = 20;
writePosition(s,n);
else
writePosition(s,n);
end
end

if (hI/2 – (y + h/2) >0)
m=m+u;
if m>=170
m = 150;
writePosition(k,m);
else
writePosition(k,m);
end
end
if (hI/2 – (y + h/2) < 0)
m=m-u;
if m<=10
m = 20;
writePosition(k,m);
else
writePosition(k,m);
end

end
end

displayImage(mypi,img);
drawnow
end

%%
%when running the deploy script, I get an error
%Error executing command "touch -c /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi/*.*;make -j$(($(nproc)+1)) -Otarget -f deploy_tracing_raspberry_pi_rtw.mk all MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2024a" LINUX_TARGET_LIBS_MACRO="-lSDL -lmmal -lmmal_core -lmmal_util -lmmal_vc_client -lvcos -lbcm_host" -C /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi LC_ALL=C". function deploy_tracing_raspberry_pi() %#codegen
persistent yolov3Detector;
if isempty(yolov3Detector)
yolov3Detector = coder.loadDeepLearningNetwork(‘yolov3Detector.mat’);
end
mypi = raspi(‘192.168.18.233′,’pi’,’raspberry’);
cam = cameraboard(mypi,’Resolution’,’160×120′);
s = servo(mypi, 18, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
k = servo(mypi, 23, ‘MinPulseDuration’, 1e-3, ‘MaxPulseDuration’, 2e-3);
n = 90;
m = 90;
u = 2;
t = 0;
writePosition(s, n);
writePosition(k, m);
% Main loop
start = tic;
while t < 10000
t = t + 1;
%Capture image cameraboard
img = snapshot(cam);
elapsedTime = toc(start);
%Process frames at every 0.25 seconds
if elapsedTime > 0.25
end
% Detect
[bboxes,scores] = detect(yolov3Detector,img,’Threshold’,0.6);
if ~isempty(bboxes)
img = insertObjectAnnotation(img,’rectangle’,bboxes,scores);
[hI,wI,~] = size(img);
a = find(scores==max(scores));
x = bboxes(a,1);
y = bboxes(a,2);
w = bboxes(a,3);
h = bboxes(a,4);

if (wI/2 – (x + w/2) < 0)
n=n+u;
if n>=170
n = 150;
writePosition(s,n);
else
writePosition(s,n);
end
end
if (wI/2 – (x + w/2) > 0)
n=n-u;
if n<=10
n = 20;
writePosition(s,n);
else
writePosition(s,n);
end
end

if (hI/2 – (y + h/2) >0)
m=m+u;
if m>=170
m = 150;
writePosition(k,m);
else
writePosition(k,m);
end
end
if (hI/2 – (y + h/2) < 0)
m=m-u;
if m<=10
m = 20;
writePosition(k,m);
else
writePosition(k,m);
end

end
end

displayImage(mypi,img);
drawnow
end

%%
%when running the deploy script, I get an error
%Error executing command "touch -c /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi/*.*;make -j$(($(nproc)+1)) -Otarget -f deploy_tracing_raspberry_pi_rtw.mk all MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2024a" LINUX_TARGET_LIBS_MACRO="-lSDL -lmmal -lmmal_core -lmmal_util -lmmal_vc_client -lvcos -lbcm_host" -C /home/pi/MATLAB_ws/R2024a/C/Meruzhan/Yolov3/codegen/exe/deploy_tracing_raspberry_pi LC_ALL=C". mcc compiler MATLAB Answers — New Questions

​

how can i open .lod extension and .iqd extension file in matlab?
Matlab News

how can i open .lod extension and .iqd extension file in matlab?

PuTI / 2025-01-15

lod (Level of Detail) and iqd ( Inphase and Quadrature data)lod (Level of Detail) and iqd ( Inphase and Quadrature data) lod (Level of Detail) and iqd ( Inphase and Quadrature data) radar data MATLAB Answers — New Questions

​

Battery modeling lead acid constant current charging mode
Matlab News

Battery modeling lead acid constant current charging mode

PuTI / 2025-01-15

Hi, I am trying to understand the battery charging mode by using simulink.
A 12V,12Ah lead acid Battery is charged by using the method of constant current. when the battery is fully charge SOC 100%, but why the Terminal voltage is constant at about 24.5V. It’s normal? Could anyone can explain what happened?

Thank you very much. And, I have attached the picture for the lead acid simulink.

I’m new to MatLab and any help or direction would be greatly appreciated.

Sincerely,

Vincent Chye

<</matlabcentral/answers/uploaded_files/43996/battery%20charing.JPG>>

<</matlabcentral/answers/uploaded_files/43995/battery%20charing%201.JPG>>Hi, I am trying to understand the battery charging mode by using simulink.
A 12V,12Ah lead acid Battery is charged by using the method of constant current. when the battery is fully charge SOC 100%, but why the Terminal voltage is constant at about 24.5V. It’s normal? Could anyone can explain what happened?

Thank you very much. And, I have attached the picture for the lead acid simulink.

I’m new to MatLab and any help or direction would be greatly appreciated.

Sincerely,

Vincent Chye

<</matlabcentral/answers/uploaded_files/43996/battery%20charing.JPG>>

<</matlabcentral/answers/uploaded_files/43995/battery%20charing%201.JPG>> Hi, I am trying to understand the battery charging mode by using simulink.
A 12V,12Ah lead acid Battery is charged by using the method of constant current. when the battery is fully charge SOC 100%, but why the Terminal voltage is constant at about 24.5V. It’s normal? Could anyone can explain what happened?

Thank you very much. And, I have attached the picture for the lead acid simulink.

I’m new to MatLab and any help or direction would be greatly appreciated.

Sincerely,

Vincent Chye

<</matlabcentral/answers/uploaded_files/43996/battery%20charing.JPG>>

<</matlabcentral/answers/uploaded_files/43995/battery%20charing%201.JPG>> lead acid battery, power_electronics_control, battery_system_management MATLAB Answers — New Questions

​

Libreria UAV Toolbox Pixhawk de Matlab soporta Pixhawk 6c mini?
Matlab News

Libreria UAV Toolbox Pixhawk de Matlab soporta Pixhawk 6c mini?

PuTI / 2025-01-15

Estoy tratando de conectar una controlador de vuelo pixhawk 6c mini con la librería de soporte UAV para pixhawk, Trato de cargar el firmware PIXHAWC 6C, pero se genera un error. ¿Existe limitaciones con este controlador y la librería de matlab UAV Toolbox?Estoy tratando de conectar una controlador de vuelo pixhawk 6c mini con la librería de soporte UAV para pixhawk, Trato de cargar el firmware PIXHAWC 6C, pero se genera un error. ¿Existe limitaciones con este controlador y la librería de matlab UAV Toolbox? Estoy tratando de conectar una controlador de vuelo pixhawk 6c mini con la librería de soporte UAV para pixhawk, Trato de cargar el firmware PIXHAWC 6C, pero se genera un error. ¿Existe limitaciones con este controlador y la librería de matlab UAV Toolbox? pixhawk 6c mini, uav toolbox support package for px4, firmware pixhawk 6c mini MATLAB Answers — New Questions

​

Looking for a good source for using 2D Fast Fourier Transforms
Matlab News

Looking for a good source for using 2D Fast Fourier Transforms

PuTI / 2025-01-15

I have been trying to solve a 2D Poisson Equation for about 6 months now without too much prior knowledge and it has me completely stumped. I get close but seem to be missing something crucial. I’ve tried asking on this thread before but have yet to get any answers. So, I’ve decided to go the long route of finding a book or some other source on using FFTs in 2D, but have been having difficulty finding a good one. Surely someone here can point to at least one good source to help with using 2D FFTs.I have been trying to solve a 2D Poisson Equation for about 6 months now without too much prior knowledge and it has me completely stumped. I get close but seem to be missing something crucial. I’ve tried asking on this thread before but have yet to get any answers. So, I’ve decided to go the long route of finding a book or some other source on using FFTs in 2D, but have been having difficulty finding a good one. Surely someone here can point to at least one good source to help with using 2D FFTs. I have been trying to solve a 2D Poisson Equation for about 6 months now without too much prior knowledge and it has me completely stumped. I get close but seem to be missing something crucial. I’ve tried asking on this thread before but have yet to get any answers. So, I’ve decided to go the long route of finding a book or some other source on using FFTs in 2D, but have been having difficulty finding a good one. Surely someone here can point to at least one good source to help with using 2D FFTs. differential equations, mathematics MATLAB Answers — New Questions

​

Simscape block pip (G)
Matlab News

Simscape block pip (G)

PuTI / 2025-01-15

I’m noticing that when I use the Pipe (G) block in Simscape for checking pressure loss, it’s always giving me a bigger number than what my calculations say. Can you tell me how the Pipe (G) block figures out the pressure loss?I’m noticing that when I use the Pipe (G) block in Simscape for checking pressure loss, it’s always giving me a bigger number than what my calculations say. Can you tell me how the Pipe (G) block figures out the pressure loss? I’m noticing that when I use the Pipe (G) block in Simscape for checking pressure loss, it’s always giving me a bigger number than what my calculations say. Can you tell me how the Pipe (G) block figures out the pressure loss? pipe, simscape MATLAB Answers — New Questions

​

I’m trying to convert a .pkl 4D array into a datastore on MATLAB
Matlab News

I’m trying to convert a .pkl 4D array into a datastore on MATLAB

PuTI / 2025-01-15

I’m trying to convert a .pkl 4D array into a datastore on MATLAB, so that I can use the datastore to train a convolutional neural network. I have tried converting the .pkl file to a .mat, a .png and a .txt through python, but none have worked. When I try to convert the .mat file to the datastore using the code:
ds = datastore(‘folderpath’, ‘FileExtensions’, ‘.mat’, ‘Type’, ‘tabularText’)
I get the error "Cannot intepret data in the file ‘filepath’. Found 3 variable names but 2 data columns. You may need to specifiy a different format, delimiter or number of lines.’I’m trying to convert a .pkl 4D array into a datastore on MATLAB, so that I can use the datastore to train a convolutional neural network. I have tried converting the .pkl file to a .mat, a .png and a .txt through python, but none have worked. When I try to convert the .mat file to the datastore using the code:
ds = datastore(‘folderpath’, ‘FileExtensions’, ‘.mat’, ‘Type’, ‘tabularText’)
I get the error "Cannot intepret data in the file ‘filepath’. Found 3 variable names but 2 data columns. You may need to specifiy a different format, delimiter or number of lines.’ I’m trying to convert a .pkl 4D array into a datastore on MATLAB, so that I can use the datastore to train a convolutional neural network. I have tried converting the .pkl file to a .mat, a .png and a .txt through python, but none have worked. When I try to convert the .mat file to the datastore using the code:
ds = datastore(‘folderpath’, ‘FileExtensions’, ‘.mat’, ‘Type’, ‘tabularText’)
I get the error "Cannot intepret data in the file ‘filepath’. Found 3 variable names but 2 data columns. You may need to specifiy a different format, delimiter or number of lines.’ datastores, python, .pkl MATLAB Answers — New Questions

​

.Net Framework assembly is not found at runtime, although it has been loaded.
Matlab News

.Net Framework assembly is not found at runtime, although it has been loaded.

PuTI / 2025-01-15

Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening?Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening? Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening? .net framework, net.addassembly MATLAB Answers — New Questions

​

How to implement implicit methods in partial differential equations in matlab pdepe?
Matlab News

How to implement implicit methods in partial differential equations in matlab pdepe?

PuTI / 2025-01-15

Hello,
Refer to the above cited subject, I’m using pdepe for solving a complex partial dieeferntial equation. I’m not sure if matlab uses explicit or implicit method internally. However, at the right bondary for which I’m using newmann bc, I’m getting some erratic solutions which is not expected.
I’d like to know how to use implicit method in matlab, if you can show any example which can be referred, would help me.Hello,
Refer to the above cited subject, I’m using pdepe for solving a complex partial dieeferntial equation. I’m not sure if matlab uses explicit or implicit method internally. However, at the right bondary for which I’m using newmann bc, I’m getting some erratic solutions which is not expected.
I’d like to know how to use implicit method in matlab, if you can show any example which can be referred, would help me. Hello,
Refer to the above cited subject, I’m using pdepe for solving a complex partial dieeferntial equation. I’m not sure if matlab uses explicit or implicit method internally. However, at the right bondary for which I’m using newmann bc, I’m getting some erratic solutions which is not expected.
I’d like to know how to use implicit method in matlab, if you can show any example which can be referred, would help me. pdepe MATLAB Answers — New Questions

​

ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text. (no octave code)
Matlab News

ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text. (no octave code)

PuTI / 2025-01-15

ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.
I don’t have any octave code and this problem only happened after windows update.
Only part of data cannot be loaded by the matlab but can be opened by other machines.
I have reinstalled Matlab 2021a.ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.
I don’t have any octave code and this problem only happened after windows update.
Only part of data cannot be loaded by the matlab but can be opened by other machines.
I have reinstalled Matlab 2021a. ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.
I don’t have any octave code and this problem only happened after windows update.
Only part of data cannot be loaded by the matlab but can be opened by other machines.
I have reinstalled Matlab 2021a. load, data import MATLAB Answers — New Questions

​

Simulation 3D Camera gimbal in UAV Toolbox
Matlab News

Simulation 3D Camera gimbal in UAV Toolbox

PuTI / 2025-01-15

Hello,
I am using the Scenario Simulation blocks to implement an autonomous mission for fixed-wing UAVs, with the possibility of including Computer Vision. I would like to know if there is a possibility to implement a gimbal for the Simulation 3D Camera, since I want a steady image during turns.
Thank you in advance.Hello,
I am using the Scenario Simulation blocks to implement an autonomous mission for fixed-wing UAVs, with the possibility of including Computer Vision. I would like to know if there is a possibility to implement a gimbal for the Simulation 3D Camera, since I want a steady image during turns.
Thank you in advance. Hello,
I am using the Scenario Simulation blocks to implement an autonomous mission for fixed-wing UAVs, with the possibility of including Computer Vision. I would like to know if there is a possibility to implement a gimbal for the Simulation 3D Camera, since I want a steady image during turns.
Thank you in advance. scenario simulation, uav toolbox, simulation 3d MATLAB Answers — New Questions

​

How to deploy a compiled application by MATLAB Compiler on Windows using  the NET.addAssembly?
Matlab News

How to deploy a compiled application by MATLAB Compiler on Windows using the NET.addAssembly?

PuTI / 2025-01-15

The current appication is running fine in MATLAB, but once that it is compiled with mcc and get the C files, Visual Studio says that the .dll added by NET.addAssembly is not found…The current appication is running fine in MATLAB, but once that it is compiled with mcc and get the C files, Visual Studio says that the .dll added by NET.addAssembly is not found… The current appication is running fine in MATLAB, but once that it is compiled with mcc and get the C files, Visual Studio says that the .dll added by NET.addAssembly is not found… .net deploy MATLAB Answers — New Questions

​

Optional Arguments in Function as Struct Input
Matlab News

Optional Arguments in Function as Struct Input

PuTI / 2025-01-15

I have a Matlab function with many optional arguments which I want to call with these arguments recursively… This is just a short example, my real code is much more complexe and I don’t want to share it here… I know that this function seems kind of nonesense.
function [out] = calculateHatches(vec, args)
arguments
vec
args.Limit = 0
args.Color = ‘red’
args.Time = ’12:00′
% (and many more argumnts)
end

% some calculations that give me out

out = []
if args.Limit==0
for i=1:10
nargs = args;
nargs.Limit = 1;
% n arguments might change here …
% calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time)
nout = calculateHatches(vec,nargs)

out = [out, nout]
end
end
end
However, this won’t work, is there a way to makt it work?
calculateHatches(vec,nargs)
But I have too many optional arguments that change over time of programming too much, that I don’t want to write it into the code. This would mean a lot of administration work.
calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time)I have a Matlab function with many optional arguments which I want to call with these arguments recursively… This is just a short example, my real code is much more complexe and I don’t want to share it here… I know that this function seems kind of nonesense.
function [out] = calculateHatches(vec, args)
arguments
vec
args.Limit = 0
args.Color = ‘red’
args.Time = ’12:00′
% (and many more argumnts)
end

% some calculations that give me out

out = []
if args.Limit==0
for i=1:10
nargs = args;
nargs.Limit = 1;
% n arguments might change here …
% calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time)
nout = calculateHatches(vec,nargs)

out = [out, nout]
end
end
end
However, this won’t work, is there a way to makt it work?
calculateHatches(vec,nargs)
But I have too many optional arguments that change over time of programming too much, that I don’t want to write it into the code. This would mean a lot of administration work.
calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time) I have a Matlab function with many optional arguments which I want to call with these arguments recursively… This is just a short example, my real code is much more complexe and I don’t want to share it here… I know that this function seems kind of nonesense.
function [out] = calculateHatches(vec, args)
arguments
vec
args.Limit = 0
args.Color = ‘red’
args.Time = ’12:00′
% (and many more argumnts)
end

% some calculations that give me out

out = []
if args.Limit==0
for i=1:10
nargs = args;
nargs.Limit = 1;
% n arguments might change here …
% calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time)
nout = calculateHatches(vec,nargs)

out = [out, nout]
end
end
end
However, this won’t work, is there a way to makt it work?
calculateHatches(vec,nargs)
But I have too many optional arguments that change over time of programming too much, that I don’t want to write it into the code. This would mean a lot of administration work.
calculateHatches(vec,’Limit’,nargs.Limit,’Color’,nargs.Color,’Time’,nargs.Time) arguments, functions, matlab MATLAB Answers — New Questions

​

calling a funcion in a loop and replacing input variable with output variable
Matlab News

calling a funcion in a loop and replacing input variable with output variable

PuTI / 2025-01-15

So I have the funcion:
function y=function_for_Ex6a(x)
% This is a simple function
y=4*(1-cos(x)).^2+x.^3;
end
And I want to use a for loop to run through this function 100 times with an initial input of x=4. I need the output value of y to replace the input value for each interation. Any ideas? Please don’t just send links to other websites. Thanks.So I have the funcion:
function y=function_for_Ex6a(x)
% This is a simple function
y=4*(1-cos(x)).^2+x.^3;
end
And I want to use a for loop to run through this function 100 times with an initial input of x=4. I need the output value of y to replace the input value for each interation. Any ideas? Please don’t just send links to other websites. Thanks. So I have the funcion:
function y=function_for_Ex6a(x)
% This is a simple function
y=4*(1-cos(x)).^2+x.^3;
end
And I want to use a for loop to run through this function 100 times with an initial input of x=4. I need the output value of y to replace the input value for each interation. Any ideas? Please don’t just send links to other websites. Thanks. looping variables MATLAB Answers — New Questions

​

Log Scaling the variable in boxplot causes display problems
Matlab News

Log Scaling the variable in boxplot causes display problems

PuTI / 2025-01-15

The following error message is produced upon brushing over an existing plot containing frequency data as the data var (frequency as in Hz) and grouping variable for x in a boxplot:

Warning: Error occurred while executing the listener callback for
event EnterObject defined for class
matlab.graphics.interaction.actions.Linger:
Error using
matlab.graphics.axis.dataspace.CartesianDataSpace/TransformPoints
DataSpace or ColorSpace transform method failed
Error in matlab.graphics.internal.transformDataToWorld (line 29)
vertexData = double(hDataSpace.TransformPoints(belowMatrix,iter));
Error in
matlab.graphics.chart.internal.convertDataSpaceCoordsToViewerCoords
(line 44)
vertexData = matlab.graphics.internal.transformDataToWorld(hDataSpace,
belowMatrix, dataspaceData);
Error in
matlab.graphics.interaction.uiaxes.Datatips/lingerEnterCallback
Error in
matlab.graphics.interaction.uiaxes.Datatips>@(o,e)hObj.lingerEnterCallback(o,e)
Error in matlab.graphics.interaction.actions.Linger/enterEvent
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
> In matlab.graphics.interaction.actions.Linger/enterEvent
In matlab.graphics.interaction.actions.Linger/motionCallback
In matlab.graphics.interaction.actions.Linger
The only other Answer I saw pertaining to the transform fail had someone trying to display negative values on a logarithmic scale, but non of my values are negative (although there are NaN values, which must be included for statistical purposed)
Any ideas?The following error message is produced upon brushing over an existing plot containing frequency data as the data var (frequency as in Hz) and grouping variable for x in a boxplot:

Warning: Error occurred while executing the listener callback for
event EnterObject defined for class
matlab.graphics.interaction.actions.Linger:
Error using
matlab.graphics.axis.dataspace.CartesianDataSpace/TransformPoints
DataSpace or ColorSpace transform method failed
Error in matlab.graphics.internal.transformDataToWorld (line 29)
vertexData = double(hDataSpace.TransformPoints(belowMatrix,iter));
Error in
matlab.graphics.chart.internal.convertDataSpaceCoordsToViewerCoords
(line 44)
vertexData = matlab.graphics.internal.transformDataToWorld(hDataSpace,
belowMatrix, dataspaceData);
Error in
matlab.graphics.interaction.uiaxes.Datatips/lingerEnterCallback
Error in
matlab.graphics.interaction.uiaxes.Datatips>@(o,e)hObj.lingerEnterCallback(o,e)
Error in matlab.graphics.interaction.actions.Linger/enterEvent
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
> In matlab.graphics.interaction.actions.Linger/enterEvent
In matlab.graphics.interaction.actions.Linger/motionCallback
In matlab.graphics.interaction.actions.Linger
The only other Answer I saw pertaining to the transform fail had someone trying to display negative values on a logarithmic scale, but non of my values are negative (although there are NaN values, which must be included for statistical purposed)
Any ideas? The following error message is produced upon brushing over an existing plot containing frequency data as the data var (frequency as in Hz) and grouping variable for x in a boxplot:

Warning: Error occurred while executing the listener callback for
event EnterObject defined for class
matlab.graphics.interaction.actions.Linger:
Error using
matlab.graphics.axis.dataspace.CartesianDataSpace/TransformPoints
DataSpace or ColorSpace transform method failed
Error in matlab.graphics.internal.transformDataToWorld (line 29)
vertexData = double(hDataSpace.TransformPoints(belowMatrix,iter));
Error in
matlab.graphics.chart.internal.convertDataSpaceCoordsToViewerCoords
(line 44)
vertexData = matlab.graphics.internal.transformDataToWorld(hDataSpace,
belowMatrix, dataspaceData);
Error in
matlab.graphics.interaction.uiaxes.Datatips/lingerEnterCallback
Error in
matlab.graphics.interaction.uiaxes.Datatips>@(o,e)hObj.lingerEnterCallback(o,e)
Error in matlab.graphics.interaction.actions.Linger/enterEvent
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
> In matlab.graphics.interaction.actions.Linger/enterEvent
In matlab.graphics.interaction.actions.Linger/motionCallback
In matlab.graphics.interaction.actions.Linger
The only other Answer I saw pertaining to the transform fail had someone trying to display negative values on a logarithmic scale, but non of my values are negative (although there are NaN values, which must be included for statistical purposed)
Any ideas? boxplot, log scale, plot brushing MATLAB Answers — New Questions

​

timeseries forecasting for 10 years ahead ANN
Matlab News

timeseries forecasting for 10 years ahead ANN

PuTI / 2025-01-15

Hi,
i would like to forecast the Cl parameter for 10 years ahead. But keep getting error : Index in position 2 exceeds array bounds. Index must not exceed 1. by the way , when running the code, i have remove the heading, words from the excel. but still getting the error
Error in preparets (line 317)
xi = xx(:,FBS+((1-net.numInputDelays):0));
Error in timee (line 25)
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);

Please help to check which part that i did wrong.
data = readmatrix ("104CPr.csv");
Input = data(:,1:(end-1));
Target = data(:,end);
X = con2seq(Input)’;
T = con2seq(Target)’;
%% Data Preparation
N = 10; % Multi-step ahead prediction
% Input and target series are divided in two groups of data:
% 1st group: used to train the network
inputSeries = X(1:end-N);
targetSeries = T(1:end-N);
%% Network architecture
delay = 2;
inputDelays = 1:2;
feedbackDelays = 1:2;
hiddenLayerSize = 10;
trainFcn = ‘trainbr’;
% Network Creation
net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize,’open’, trainFcn);
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
[net,Y] = train(net,X,T,inputStates,layerStates);
outputs = net(X,inputStates,layerStates);
errors = gsubtract(T,Y);
performance = perform(net,T,Y);
view(net)
delay = 2;
netc = closeloop(net);
netc.name = [net.name ‘ – Closed Loop’];
view(netc)
[xc,xic,aic,tc] = preparets(netc,inputSeries,{},targetSeries);
yc = netc(xc,xic,aic);
closedLoopPerformance = perform(netc,tc,yc);
% Early Prediction Network
nets = removedelay(net);
nets.name = [net.name ‘ – Predict One Step Ahead’];
view(nets)
[xs,xis,ais,ts] = preparets(nets,inputSeries,{},targetSeries);
ys = nets(xs,xis,ais);
earlyPredictPerformance = perform(nets,ts,ys);
%%5. Multi-step ahead prediction
inputSeriesPred = [inputSeries(end-delay+1:end),inputSeriesVal];
targetSeriesPred = [targetSeries(end-delay+1:end), con2seq(nan(1,N))];
[Xs,Xi,Ai,Ts] = preparets(netc,inputSeriesPred,{},targetSeriesPred);
yPred = netc(Xs,Xi,Ai);
perf = perform(net,yPred,targetSeriesVal);
figure;
plot([cell2mat(targetSeries),nan(1,N);
nan(1,length(targetSeries)),cell2mat(yPred);
nan(1,length(targetSeries)),cell2mat(targetSeriesVal)]’)
legend(‘Original Targets’,’Network Predictions’,’Expected Outputs’);Hi,
i would like to forecast the Cl parameter for 10 years ahead. But keep getting error : Index in position 2 exceeds array bounds. Index must not exceed 1. by the way , when running the code, i have remove the heading, words from the excel. but still getting the error
Error in preparets (line 317)
xi = xx(:,FBS+((1-net.numInputDelays):0));
Error in timee (line 25)
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);

Please help to check which part that i did wrong.
data = readmatrix ("104CPr.csv");
Input = data(:,1:(end-1));
Target = data(:,end);
X = con2seq(Input)’;
T = con2seq(Target)’;
%% Data Preparation
N = 10; % Multi-step ahead prediction
% Input and target series are divided in two groups of data:
% 1st group: used to train the network
inputSeries = X(1:end-N);
targetSeries = T(1:end-N);
%% Network architecture
delay = 2;
inputDelays = 1:2;
feedbackDelays = 1:2;
hiddenLayerSize = 10;
trainFcn = ‘trainbr’;
% Network Creation
net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize,’open’, trainFcn);
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
[net,Y] = train(net,X,T,inputStates,layerStates);
outputs = net(X,inputStates,layerStates);
errors = gsubtract(T,Y);
performance = perform(net,T,Y);
view(net)
delay = 2;
netc = closeloop(net);
netc.name = [net.name ‘ – Closed Loop’];
view(netc)
[xc,xic,aic,tc] = preparets(netc,inputSeries,{},targetSeries);
yc = netc(xc,xic,aic);
closedLoopPerformance = perform(netc,tc,yc);
% Early Prediction Network
nets = removedelay(net);
nets.name = [net.name ‘ – Predict One Step Ahead’];
view(nets)
[xs,xis,ais,ts] = preparets(nets,inputSeries,{},targetSeries);
ys = nets(xs,xis,ais);
earlyPredictPerformance = perform(nets,ts,ys);
%%5. Multi-step ahead prediction
inputSeriesPred = [inputSeries(end-delay+1:end),inputSeriesVal];
targetSeriesPred = [targetSeries(end-delay+1:end), con2seq(nan(1,N))];
[Xs,Xi,Ai,Ts] = preparets(netc,inputSeriesPred,{},targetSeriesPred);
yPred = netc(Xs,Xi,Ai);
perf = perform(net,yPred,targetSeriesVal);
figure;
plot([cell2mat(targetSeries),nan(1,N);
nan(1,length(targetSeries)),cell2mat(yPred);
nan(1,length(targetSeries)),cell2mat(targetSeriesVal)]’)
legend(‘Original Targets’,’Network Predictions’,’Expected Outputs’); Hi,
i would like to forecast the Cl parameter for 10 years ahead. But keep getting error : Index in position 2 exceeds array bounds. Index must not exceed 1. by the way , when running the code, i have remove the heading, words from the excel. but still getting the error
Error in preparets (line 317)
xi = xx(:,FBS+((1-net.numInputDelays):0));
Error in timee (line 25)
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);

Please help to check which part that i did wrong.
data = readmatrix ("104CPr.csv");
Input = data(:,1:(end-1));
Target = data(:,end);
X = con2seq(Input)’;
T = con2seq(Target)’;
%% Data Preparation
N = 10; % Multi-step ahead prediction
% Input and target series are divided in two groups of data:
% 1st group: used to train the network
inputSeries = X(1:end-N);
targetSeries = T(1:end-N);
%% Network architecture
delay = 2;
inputDelays = 1:2;
feedbackDelays = 1:2;
hiddenLayerSize = 10;
trainFcn = ‘trainbr’;
% Network Creation
net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize,’open’, trainFcn);
[X,inputStates,layerStates,T] = preparets(net,inputSeries,{},targetSeries);
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
[net,Y] = train(net,X,T,inputStates,layerStates);
outputs = net(X,inputStates,layerStates);
errors = gsubtract(T,Y);
performance = perform(net,T,Y);
view(net)
delay = 2;
netc = closeloop(net);
netc.name = [net.name ‘ – Closed Loop’];
view(netc)
[xc,xic,aic,tc] = preparets(netc,inputSeries,{},targetSeries);
yc = netc(xc,xic,aic);
closedLoopPerformance = perform(netc,tc,yc);
% Early Prediction Network
nets = removedelay(net);
nets.name = [net.name ‘ – Predict One Step Ahead’];
view(nets)
[xs,xis,ais,ts] = preparets(nets,inputSeries,{},targetSeries);
ys = nets(xs,xis,ais);
earlyPredictPerformance = perform(nets,ts,ys);
%%5. Multi-step ahead prediction
inputSeriesPred = [inputSeries(end-delay+1:end),inputSeriesVal];
targetSeriesPred = [targetSeries(end-delay+1:end), con2seq(nan(1,N))];
[Xs,Xi,Ai,Ts] = preparets(netc,inputSeriesPred,{},targetSeriesPred);
yPred = netc(Xs,Xi,Ai);
perf = perform(net,yPred,targetSeriesVal);
figure;
plot([cell2mat(targetSeries),nan(1,N);
nan(1,length(targetSeries)),cell2mat(yPred);
nan(1,length(targetSeries)),cell2mat(targetSeriesVal)]’)
legend(‘Original Targets’,’Network Predictions’,’Expected Outputs’); ann, time series MATLAB Answers — New Questions

​

Error using slmsgviewer.startConnectorIfNotRunning (line 455) Unable to start Matlab connector from Simulink Message Viewer. How to rectify this error in Matlab
Matlab News

Error using slmsgviewer.startConnectorIfNotRunning (line 455) Unable to start Matlab connector from Simulink Message Viewer. How to rectify this error in Matlab

PuTI / 2025-01-15

When I am running or openeing a new file this error is constantly coming.When I am running or openeing a new file this error is constantly coming. When I am running or openeing a new file this error is constantly coming. slmsgviewer MATLAB Answers — New Questions

​

possibility to create “Enbaled” subsystem
Matlab News

possibility to create “Enbaled” subsystem

PuTI / 2025-01-15

Hello all,

I need to create the subsystem which needs to be optionally Enable/Disabled before simulation starts but there si no need to be enabled/disable during the simulation …
What are the possiblities to create a such subsystem in Simulink?

Thank you very much for your suggestion.Hello all,

I need to create the subsystem which needs to be optionally Enable/Disabled before simulation starts but there si no need to be enabled/disable during the simulation …
What are the possiblities to create a such subsystem in Simulink?

Thank you very much for your suggestion. Hello all,

I need to create the subsystem which needs to be optionally Enable/Disabled before simulation starts but there si no need to be enabled/disable during the simulation …
What are the possiblities to create a such subsystem in Simulink?

Thank you very much for your suggestion. enabled subsystem MATLAB Answers — New Questions

​

Finding the Analytical Equation q(t) for an RLC Circuit Using Given V(t) Data
Matlab News

Finding the Analytical Equation q(t) for an RLC Circuit Using Given V(t) Data

PuTI / 2025-01-15

Hello,
I have a numerical time series of voltage V(t) and aim to derive the analytical equation for the charge q(t)q(t)q(t) in an RLC circuit. The relationship between V(t), q(t), and the circuit parameters R, L, and C is governed by the following equation:
V(t) = R * dq/dt + L * d2q/dt2 + (1/C) * q(t)
I have attempted the following steps to estimate the parameters R, L, and C:
q(t); I calculated the charge q(t)as the cumulative integral of V(t), assuming a constant time step (delta_t):
q(t) = sum(V(t) * delta_t)
Computing Derivatives: I computed the first and second derivatives of q(t) numerically using finite differences:
The first derivative (dq/dt): dq/dt = (q(t+delta_t) – q(t)) / delta_t
The second derivative (d2q/dt2): d2q/dt2 = (dq/dt at t+delta_t – dq/dt at t) / delta_t
Creating the Matrix A:I created a matrix A and a vector V to represent the system of equations:
Matrix A has three columns:
The first column contains q(t),
The second column contains dq/dt,
The third column contains d2q/dt2.
Vector V contains the voltage values V(t).
Estimating Parameters:I solved for the parameters R, L, and C using the least-squares method: X = inv(A’ * A) * A’ * V.
Here, X contains the values [1/C, R, L].
Extracting Parameters:I extracted the parameter values from X as follows: C = 1 / X(1), R = X(2), L = X(3)
While I successfully estimated the parameters R, L, and C, I have not been able to derive the analytical equation for q(t). My goal is to find the closed-form expression for q(t) using these parameters and the RLC circuit equation.
How can I derive an analytical expression for q(t)q(t)q(t) from the RLC circuit equation?
Since V(t)V(t)V(t) is provided as numerical data, is there a way to approximate q(t)q(t)q(t) in a closed form?
Are there any MATLAB tools or functions that can handle this type of numerical differential equation?Hello,
I have a numerical time series of voltage V(t) and aim to derive the analytical equation for the charge q(t)q(t)q(t) in an RLC circuit. The relationship between V(t), q(t), and the circuit parameters R, L, and C is governed by the following equation:
V(t) = R * dq/dt + L * d2q/dt2 + (1/C) * q(t)
I have attempted the following steps to estimate the parameters R, L, and C:
q(t); I calculated the charge q(t)as the cumulative integral of V(t), assuming a constant time step (delta_t):
q(t) = sum(V(t) * delta_t)
Computing Derivatives: I computed the first and second derivatives of q(t) numerically using finite differences:
The first derivative (dq/dt): dq/dt = (q(t+delta_t) – q(t)) / delta_t
The second derivative (d2q/dt2): d2q/dt2 = (dq/dt at t+delta_t – dq/dt at t) / delta_t
Creating the Matrix A:I created a matrix A and a vector V to represent the system of equations:
Matrix A has three columns:
The first column contains q(t),
The second column contains dq/dt,
The third column contains d2q/dt2.
Vector V contains the voltage values V(t).
Estimating Parameters:I solved for the parameters R, L, and C using the least-squares method: X = inv(A’ * A) * A’ * V.
Here, X contains the values [1/C, R, L].
Extracting Parameters:I extracted the parameter values from X as follows: C = 1 / X(1), R = X(2), L = X(3)
While I successfully estimated the parameters R, L, and C, I have not been able to derive the analytical equation for q(t). My goal is to find the closed-form expression for q(t) using these parameters and the RLC circuit equation.
How can I derive an analytical expression for q(t)q(t)q(t) from the RLC circuit equation?
Since V(t)V(t)V(t) is provided as numerical data, is there a way to approximate q(t)q(t)q(t) in a closed form?
Are there any MATLAB tools or functions that can handle this type of numerical differential equation? Hello,
I have a numerical time series of voltage V(t) and aim to derive the analytical equation for the charge q(t)q(t)q(t) in an RLC circuit. The relationship between V(t), q(t), and the circuit parameters R, L, and C is governed by the following equation:
V(t) = R * dq/dt + L * d2q/dt2 + (1/C) * q(t)
I have attempted the following steps to estimate the parameters R, L, and C:
q(t); I calculated the charge q(t)as the cumulative integral of V(t), assuming a constant time step (delta_t):
q(t) = sum(V(t) * delta_t)
Computing Derivatives: I computed the first and second derivatives of q(t) numerically using finite differences:
The first derivative (dq/dt): dq/dt = (q(t+delta_t) – q(t)) / delta_t
The second derivative (d2q/dt2): d2q/dt2 = (dq/dt at t+delta_t – dq/dt at t) / delta_t
Creating the Matrix A:I created a matrix A and a vector V to represent the system of equations:
Matrix A has three columns:
The first column contains q(t),
The second column contains dq/dt,
The third column contains d2q/dt2.
Vector V contains the voltage values V(t).
Estimating Parameters:I solved for the parameters R, L, and C using the least-squares method: X = inv(A’ * A) * A’ * V.
Here, X contains the values [1/C, R, L].
Extracting Parameters:I extracted the parameter values from X as follows: C = 1 / X(1), R = X(2), L = X(3)
While I successfully estimated the parameters R, L, and C, I have not been able to derive the analytical equation for q(t). My goal is to find the closed-form expression for q(t) using these parameters and the RLC circuit equation.
How can I derive an analytical expression for q(t)q(t)q(t) from the RLC circuit equation?
Since V(t)V(t)V(t) is provided as numerical data, is there a way to approximate q(t)q(t)q(t) in a closed form?
Are there any MATLAB tools or functions that can handle this type of numerical differential equation? curve fitting, model MATLAB Answers — New Questions

​

Previous 1 … 77 78 79 80 81 … 101 Next

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss