Author: PuTI
GPS Acquisition and Tracking on AMD RFSoC – Wrong PRNs from ADC Input (Loopback Works Fine)
Hi everyone,
I am working on the **GPS Acquisition and Tracking Using AMD RFSoC Device**
GPS Acquisition and Tracking Using AMD RFSoC Device – MATLAB & Simulink
reference design from MATLAB & Simulink, and I have run into a puzzling issue with the ADC path. I would really appreciate any insights from those who have worked with this design or with RFSoC ADC/DAC configurations in general.
**What Works**
In **loopback mode** (ADC input connected directly to DAC output), the system works perfectly — I can see correct PRN codes being acquired through the internal signal generator path.
**The Problem**
When I **disconnect the DAC** and feed real GPS data into the ADC (from a BladeRF via antenna or wire), I get **incorrect PRN codes**. The strange part is:
> **Even when the ADC is fully disconnected, I see those exact same wrong PRNs in the ILA (Integrated Logic Analyzer).**
This strongly suggests the issue is **not** with the incoming RF signal itself, but rather something internal — possibly a signal path that is not being properly muxed or gated when switching away from loopback, or a residual/default signal being driven onto the AXI-Stream bus when the ADC input is inactive.Hi everyone,
I am working on the **GPS Acquisition and Tracking Using AMD RFSoC Device**
GPS Acquisition and Tracking Using AMD RFSoC Device – MATLAB & Simulink
reference design from MATLAB & Simulink, and I have run into a puzzling issue with the ADC path. I would really appreciate any insights from those who have worked with this design or with RFSoC ADC/DAC configurations in general.
**What Works**
In **loopback mode** (ADC input connected directly to DAC output), the system works perfectly — I can see correct PRN codes being acquired through the internal signal generator path.
**The Problem**
When I **disconnect the DAC** and feed real GPS data into the ADC (from a BladeRF via antenna or wire), I get **incorrect PRN codes**. The strange part is:
> **Even when the ADC is fully disconnected, I see those exact same wrong PRNs in the ILA (Integrated Logic Analyzer).**
This strongly suggests the issue is **not** with the incoming RF signal itself, but rather something internal — possibly a signal path that is not being properly muxed or gated when switching away from loopback, or a residual/default signal being driven onto the AXI-Stream bus when the ADC input is inactive. Hi everyone,
I am working on the **GPS Acquisition and Tracking Using AMD RFSoC Device**
GPS Acquisition and Tracking Using AMD RFSoC Device – MATLAB & Simulink
reference design from MATLAB & Simulink, and I have run into a puzzling issue with the ADC path. I would really appreciate any insights from those who have worked with this design or with RFSoC ADC/DAC configurations in general.
**What Works**
In **loopback mode** (ADC input connected directly to DAC output), the system works perfectly — I can see correct PRN codes being acquired through the internal signal generator path.
**The Problem**
When I **disconnect the DAC** and feed real GPS data into the ADC (from a BladeRF via antenna or wire), I get **incorrect PRN codes**. The strange part is:
> **Even when the ADC is fully disconnected, I see those exact same wrong PRNs in the ILA (Integrated Logic Analyzer).**
This strongly suggests the issue is **not** with the incoming RF signal itself, but rather something internal — possibly a signal path that is not being properly muxed or gated when switching away from loopback, or a residual/default signal being driven onto the AXI-Stream bus when the ADC input is inactive. gps, rfsoc, hdl coder, soc, matlab, simulink, hdl, c/a code MATLAB Answers — New Questions
How to construct Kolmogorov-Arnold Network based on MATLAB’s Deep Learning Toolbox
Kolmogorov-Arnold Networks (KANs) are theoretically grounded alternatives to conventional Multilayer Perceptrons (MLPs). KANs are built upon the Kolmogorov-Arnold representation theorem, a profound mathematical result stating that any multivariate continuous function can be expressed through a finite composition of univariate continuous functions and binary additions. This theoretical guarantee takes concrete form in the equation:
where and are univariate continuous functions. The structure corresponds to a two-layer network: the first layer applies the inner functions , while the second layer applies the outer functions , with layer widths and , respectively. Each univariate function using B-spline curves with learnable coefficients.
This leads to a fundamentally different network architecture compared to MLPs. As illustrated in the following figure, traditional MLPs apply fixed nonlinear activations to weighted sums at each node, with learning concentrated in edge weights. In contrast, KANs invert this paradigm: nodes perform simple summations, and the learning occurs on the edges, where each connection is associated with a trainable B-spline activation function.
Can anyone has some advices about how to construct this KAN using Deep Learning Toolbox ?Kolmogorov-Arnold Networks (KANs) are theoretically grounded alternatives to conventional Multilayer Perceptrons (MLPs). KANs are built upon the Kolmogorov-Arnold representation theorem, a profound mathematical result stating that any multivariate continuous function can be expressed through a finite composition of univariate continuous functions and binary additions. This theoretical guarantee takes concrete form in the equation:
where and are univariate continuous functions. The structure corresponds to a two-layer network: the first layer applies the inner functions , while the second layer applies the outer functions , with layer widths and , respectively. Each univariate function using B-spline curves with learnable coefficients.
This leads to a fundamentally different network architecture compared to MLPs. As illustrated in the following figure, traditional MLPs apply fixed nonlinear activations to weighted sums at each node, with learning concentrated in edge weights. In contrast, KANs invert this paradigm: nodes perform simple summations, and the learning occurs on the edges, where each connection is associated with a trainable B-spline activation function.
Can anyone has some advices about how to construct this KAN using Deep Learning Toolbox ? Kolmogorov-Arnold Networks (KANs) are theoretically grounded alternatives to conventional Multilayer Perceptrons (MLPs). KANs are built upon the Kolmogorov-Arnold representation theorem, a profound mathematical result stating that any multivariate continuous function can be expressed through a finite composition of univariate continuous functions and binary additions. This theoretical guarantee takes concrete form in the equation:
where and are univariate continuous functions. The structure corresponds to a two-layer network: the first layer applies the inner functions , while the second layer applies the outer functions , with layer widths and , respectively. Each univariate function using B-spline curves with learnable coefficients.
This leads to a fundamentally different network architecture compared to MLPs. As illustrated in the following figure, traditional MLPs apply fixed nonlinear activations to weighted sums at each node, with learning concentrated in edge weights. In contrast, KANs invert this paradigm: nodes perform simple summations, and the learning occurs on the edges, where each connection is associated with a trainable B-spline activation function.
Can anyone has some advices about how to construct this KAN using Deep Learning Toolbox ? deep learning, kan, neural networks MATLAB Answers — New Questions
How do I find primitive polynomials for n > 16?
I use matlabs primpoly(n,’all’) to find masks for Galois LFSR random number generators. But the primpoly function tops out at n=16. Is there an equivalent function for arbitrarily large n?I use matlabs primpoly(n,’all’) to find masks for Galois LFSR random number generators. But the primpoly function tops out at n=16. Is there an equivalent function for arbitrarily large n? I use matlabs primpoly(n,’all’) to find masks for Galois LFSR random number generators. But the primpoly function tops out at n=16. Is there an equivalent function for arbitrarily large n? primpoly, galois, lfsr MATLAB Answers — New Questions
16?” />
How do I find the degrees of freedom of a cubic spline fit to calculate AIC and BIC
CP_data=CP_Filt; % Cuff Pressure values
CPowe=CP_data(maxindex); % peak to peak of oscillometric waves
% Fit cubic spline
h=median(diff(CPowe)) % h=average distance between CP points in mmHg approx 2-2.5;
p = 1/(1 + h^3/0.6) % Satisfactory smoothing for evenly spaced data
[CPvalues]=csaps(CPowe,CPOWE,p);
CP_cs = linspace(min(CPowe),max(CPowe),length(CPowe)*5); % Interpolate at data points
CPY_cs = ppval(CPvalues,CP_cs); % yfit data matching ydata = CPowe
Question. in calculating RMSE, AdjR2, AIC and BIC i need degrees of freedom DFE
DFE=n-k; : where n=length(ydata).
How do I find k?CP_data=CP_Filt; % Cuff Pressure values
CPowe=CP_data(maxindex); % peak to peak of oscillometric waves
% Fit cubic spline
h=median(diff(CPowe)) % h=average distance between CP points in mmHg approx 2-2.5;
p = 1/(1 + h^3/0.6) % Satisfactory smoothing for evenly spaced data
[CPvalues]=csaps(CPowe,CPOWE,p);
CP_cs = linspace(min(CPowe),max(CPowe),length(CPowe)*5); % Interpolate at data points
CPY_cs = ppval(CPvalues,CP_cs); % yfit data matching ydata = CPowe
Question. in calculating RMSE, AdjR2, AIC and BIC i need degrees of freedom DFE
DFE=n-k; : where n=length(ydata).
How do I find k? CP_data=CP_Filt; % Cuff Pressure values
CPowe=CP_data(maxindex); % peak to peak of oscillometric waves
% Fit cubic spline
h=median(diff(CPowe)) % h=average distance between CP points in mmHg approx 2-2.5;
p = 1/(1 + h^3/0.6) % Satisfactory smoothing for evenly spaced data
[CPvalues]=csaps(CPowe,CPOWE,p);
CP_cs = linspace(min(CPowe),max(CPowe),length(CPowe)*5); % Interpolate at data points
CPY_cs = ppval(CPvalues,CP_cs); % yfit data matching ydata = CPowe
Question. in calculating RMSE, AdjR2, AIC and BIC i need degrees of freedom DFE
DFE=n-k; : where n=length(ydata).
How do I find k? cubic spline quality of fit measures, degrees of freedom MATLAB Answers — New Questions
Why am I getting the error “Cannot program board UnoR4WiFi. Make sure the board is supported and the port and board type are correct.” when programming Arduino UNO R4 board?
On some Windows systems, creating the Arduino object or clicking "Program" in the Hardware Setup screen shows the error:
"Cannot program board UnoR4WiFi (COMx). Make sure the board is supported and the port and board type are correct."On some Windows systems, creating the Arduino object or clicking "Program" in the Hardware Setup screen shows the error:
"Cannot program board UnoR4WiFi (COMx). Make sure the board is supported and the port and board type are correct." On some Windows systems, creating the Arduino object or clicking "Program" in the Hardware Setup screen shows the error:
"Cannot program board UnoR4WiFi (COMx). Make sure the board is supported and the port and board type are correct." arduino, unor4wifi, driver MATLAB Answers — New Questions
How can I change the default axi width in VCK190 reference file from 32 to 64 bits?
I am trying to build IP using the provided VCK190 SoC template. However, the maximum allowed AXI width from software to the FPGA is 32 bits which is very low. I need 64 bits or higher. Where can I go to change this in the reference design?I am trying to build IP using the provided VCK190 SoC template. However, the maximum allowed AXI width from software to the FPGA is 32 bits which is very low. I need 64 bits or higher. Where can I go to change this in the reference design? I am trying to build IP using the provided VCK190 SoC template. However, the maximum allowed AXI width from software to the FPGA is 32 bits which is very low. I need 64 bits or higher. Where can I go to change this in the reference design? hdl coder, soc, axi width MATLAB Answers — New Questions
Get 0D results from CST to MATLAB
Hi all, I’m struggling on this export from CST to MATLAB using the direct call.
I managed to export the 1D results, for example Transient, Eye, …. Now I have to export the Eye Height but I don’t know how to execute the instruction. It is clear that GetArray won’t work because it’s a 0D result, but at the same time I didn’t find any other call to take those values.
Can someone solve this or maybe imagine how to solve it ???
design.invoke("ReportInformationToWindow","Reading Results")
ResultPath="TasksTran_bitpatternEyeAnalysis1Eye sizeEye height (1D)";
ResultTree = design.invoke(‘DSResulttree’); %
filename = ResultTree.invoke(‘GetFileFromTreeItem’, ResultPath); %it is a real .sig file on disk
data = design.invoke(‘Result0D’,filename);
% time=data.invoke("GetArray",’x’); % time data
% hight=data.invoke("GetArray",’y’); % voltage dataHi all, I’m struggling on this export from CST to MATLAB using the direct call.
I managed to export the 1D results, for example Transient, Eye, …. Now I have to export the Eye Height but I don’t know how to execute the instruction. It is clear that GetArray won’t work because it’s a 0D result, but at the same time I didn’t find any other call to take those values.
Can someone solve this or maybe imagine how to solve it ???
design.invoke("ReportInformationToWindow","Reading Results")
ResultPath="TasksTran_bitpatternEyeAnalysis1Eye sizeEye height (1D)";
ResultTree = design.invoke(‘DSResulttree’); %
filename = ResultTree.invoke(‘GetFileFromTreeItem’, ResultPath); %it is a real .sig file on disk
data = design.invoke(‘Result0D’,filename);
% time=data.invoke("GetArray",’x’); % time data
% hight=data.invoke("GetArray",’y’); % voltage data Hi all, I’m struggling on this export from CST to MATLAB using the direct call.
I managed to export the 1D results, for example Transient, Eye, …. Now I have to export the Eye Height but I don’t know how to execute the instruction. It is clear that GetArray won’t work because it’s a 0D result, but at the same time I didn’t find any other call to take those values.
Can someone solve this or maybe imagine how to solve it ???
design.invoke("ReportInformationToWindow","Reading Results")
ResultPath="TasksTran_bitpatternEyeAnalysis1Eye sizeEye height (1D)";
ResultTree = design.invoke(‘DSResulttree’); %
filename = ResultTree.invoke(‘GetFileFromTreeItem’, ResultPath); %it is a real .sig file on disk
data = design.invoke(‘Result0D’,filename);
% time=data.invoke("GetArray",’x’); % time data
% hight=data.invoke("GetArray",’y’); % voltage data cst, eye analysis, emc, signal processing, signal integrity MATLAB Answers — New Questions
Why Must the TimeZone be Specified for datetime when the Time Zone is Included in the DateString?
Suppose I have a date string
fu = "Mon Mar 3 12:20:40 EST 2025"
Converting to datetime causes an error because the TimeZone input is not specified
try
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’)
catch ME
ME.message
end
Why does TimeZone need to be specified if EST is included in the input?
Specifying the TimeZone then results in a warning, though I’m not sure what the "unexpected results" might be.
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’,’TimeZone’,’EST’)Suppose I have a date string
fu = "Mon Mar 3 12:20:40 EST 2025"
Converting to datetime causes an error because the TimeZone input is not specified
try
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’)
catch ME
ME.message
end
Why does TimeZone need to be specified if EST is included in the input?
Specifying the TimeZone then results in a warning, though I’m not sure what the "unexpected results" might be.
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’,’TimeZone’,’EST’) Suppose I have a date string
fu = "Mon Mar 3 12:20:40 EST 2025"
Converting to datetime causes an error because the TimeZone input is not specified
try
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’)
catch ME
ME.message
end
Why does TimeZone need to be specified if EST is included in the input?
Specifying the TimeZone then results in a warning, though I’m not sure what the "unexpected results" might be.
d = datetime(fu,’InputFormat’,’eee MMM d HH:mm:ss z yyyy’,’TimeZone’,’EST’) datetime, timezone MATLAB Answers — New Questions
Data Acquisition Toolbox issue with R2019a
Hi, I have an issue using Data Acquisition Toolbox with last Matlab release R2019a.
While my program runs correctly with earlier versions, it seems that DaQ does not report acquisition ended for non-continuous acquisitions (at least using my Data Translation Daq). The Daq stops correctly (LED changes color) but the session.IsRunning state remains on 1, and a timeout throw the error "Daq did not report it ended…".
Do I need to share more details/code or is it a clear bug with the latest release?
While I am writing this message I just remembered that I have also got an issue using VideoReader class with the latest release, but this will require another post.
Thanks for helping.
ValentinHi, I have an issue using Data Acquisition Toolbox with last Matlab release R2019a.
While my program runs correctly with earlier versions, it seems that DaQ does not report acquisition ended for non-continuous acquisitions (at least using my Data Translation Daq). The Daq stops correctly (LED changes color) but the session.IsRunning state remains on 1, and a timeout throw the error "Daq did not report it ended…".
Do I need to share more details/code or is it a clear bug with the latest release?
While I am writing this message I just remembered that I have also got an issue using VideoReader class with the latest release, but this will require another post.
Thanks for helping.
Valentin Hi, I have an issue using Data Acquisition Toolbox with last Matlab release R2019a.
While my program runs correctly with earlier versions, it seems that DaQ does not report acquisition ended for non-continuous acquisitions (at least using my Data Translation Daq). The Daq stops correctly (LED changes color) but the session.IsRunning state remains on 1, and a timeout throw the error "Daq did not report it ended…".
Do I need to share more details/code or is it a clear bug with the latest release?
While I am writing this message I just remembered that I have also got an issue using VideoReader class with the latest release, but this will require another post.
Thanks for helping.
Valentin data acquisition toolbox, r2019a, isrunning MATLAB Answers — New Questions
Simulink Build from Command Line
Hi All
I am currently generating a dll from a Simulink model and would like to automatically populate some of the settings so that I do not have to fill it in every time when I do this build on a different Simulink model. How can I get the settings from the current model and save this for use in future models. Also, how can I then build from the command line using these settings, rather than opening the GUI every time?
Thanks in advance
EtienneHi All
I am currently generating a dll from a Simulink model and would like to automatically populate some of the settings so that I do not have to fill it in every time when I do this build on a different Simulink model. How can I get the settings from the current model and save this for use in future models. Also, how can I then build from the command line using these settings, rather than opening the GUI every time?
Thanks in advance
Etienne Hi All
I am currently generating a dll from a Simulink model and would like to automatically populate some of the settings so that I do not have to fill it in every time when I do this build on a different Simulink model. How can I get the settings from the current model and save this for use in future models. Also, how can I then build from the command line using these settings, rather than opening the GUI every time?
Thanks in advance
Etienne simulink MATLAB Answers — New Questions
Introducing the First Frontier Suite built on Intelligence + Trust
Today Microsoft is announcing:
- Wave 3 of Microsoft 365 Copilot
- Expanded model diversity with Claude and next-gen OpenAI models available today
- General availability of Agent 365 on May 1 for $15 per user
- General availability of the new Microsoft 365 E7: The Frontier Suite on May 1 for $99 per user1
Frontier Transformation is a holistic reimagining of business, aligning AI with human ambition to achieve an organization’s highest aspirations. It is the next evolution of AI Transformation — not only do we need to deliver efficiency and productivity, but we need to democratize intelligence and do more for humanity. Companies do not want or need more AI experimentation. They need AI that delivers real business outcomes and growth.
In my daily conversations with customers and partners, they typically question what the most important components of an AI solution are. Is it the model? Is it silicon? At Microsoft, we believe the two most essential elements of Frontier Transformation are Intelligence + Trust. Organizations need to harness their own unique work intelligence as they build agents and solutions; and all AI artifacts across their technology stack must be observed, managed and secured to ensure they are delivering value responsibly.
Intelligence that shows up in real work
I often say that zero-shot artifact creation is nothing more than a parlor trick. Models can reason over data, produce draft documents, presentations and spreadsheets, but they do not understand work. Real differentiation comes from intelligence — deep work context, embedded in the tools people already use. AI should amplify your intelligence but do so in a manner that protects your differentiation and unique value.
Work IQ amplifies an individual’s IQ by tapping into your organization’s IQ. It is the intelligence layer that enables Microsoft 365 Copilot and agents to know how you work, with whom you work, and the content upon which you collaborate. That is why Copilot is faster, more accurate and more trusted than solutions built on models and connectors alone.
This month, we are unleashing Work IQ with our next generation of agentic experiences in Wave 3 of Microsoft 365 Copilot in Word, Excel, PowerPoint and Outlook. Employees will have an enhanced chat experience in Copilot with the ability to create and augment artifacts, and the power to build their own agents within the canvas they work in every day.
Microsoft 365 Copilot is model diverse by design. Rather than betting on a single model, we built a system that makes every model useful at work. Customers get the choice, performance and flexibility in an open, heterogenous environment. Copilot leverages leading models from OpenAI and Anthropic, operating openly across clouds and data services without locking customers in. Claude is now available in mainline chat in Copilot via the Frontier program, alongside the latest generation of OpenAI models.
Microsoft 365 Copilot Wave 3 is not just a singular release of new capabilities but rather a commitment to continuous innovation. We will bring frontier capabilities with enterprise promises for our customers in an open and model diverse manner. Another great example of this is Copilot Cowork, which is in research preview. Built in close collaboration with Anthropic, we are bringing the technology that powers Claude Cowork into Microsoft 365 Copilot to enable long-running, multi-step work that unfolds over time. Learn about our Wave 3 news.
These announcements come as our customers across industries are already seeing the value of Microsoft 365 Copilot. Microsoft recently delivered its strongest quarter yet with Copilot, with paid seats growing more than 160% year over year and daily active usage up ten times, as customers increasingly make Copilot a core part of everyday work. Expansion is also accelerating as the number of customers deploying Copilot at significant scale — more than 35,000 seats — tripled year over year. Just last week, Mercedes Benz announced a global rollout of Microsoft 365 Copilot, following recent investments from NASA, Fiserv, ING, the University of Kentucky, the University of Manchester, the U.S. Department of the Interior and Westpac. This is in addition to the 90 percent of the Fortune 500 who now use Copilot.
Trust: from agent experimentation and sprawl to enterprise control
The speed of agent development and proliferation tells us customers see value, but without guardrails the pace of adoption turns into blind spots, diminished ROI and real security risk. As AI agents become more capable and autonomous, trust is nonnegotiable. IDC predicts 1.3B agents in circulation by 2028, and 80% of the Fortune 500 are already using Microsoft agents, led by operationally complex industries like manufacturing, financial services and retail.
That is why I am excited to announce the May 1 general availability of Microsoft Agent 365, the control-plane for AI agents. Priced at $15 per user, Agent 365 gives IT and security leaders a single place to observe, govern, manage and secure agents across the organization — using the same infrastructure, applications and protections they rely on to manage people today.
We are seeing tremendous momentum with our preview customers. In just two months, tens of millions of agents have appeared in the Agent 365 Registry. We have tens of thousands of customers that are already adopting Agent 365 to securely govern and scale AI agents across enterprise workflows.
At Microsoft, we are also using Agent 365 as Customer Zero and the early signals are clear. We now have visibility into more than 500,000 agents across the company with the most widely used focused on research, coding, sales intelligence, customer triage and HR self-service. That adoption is translating into real work. Over the past 28 days alone, agents have been generating more than 65,000 responses every day for employees. This is evidence that we are not simply experimenting, we are embedding agents in the flow of everyday work and empowering human ambition.
Introducing the Frontier Suite
To meet this demand, I am thrilled to announce we are bringing Intelligence + Trust together with Microsoft 365 E7: The Frontier Suite. Microsoft 365 E7 unifies Microsoft 365 E5, Microsoft 365 Copilot and Agent 365 into a single solution powered by Work IQ and integrated with the apps and security stack customers already rely on. It includes Microsoft Entra Suite and advanced Defender, Intune and Purview security capabilities, delivering comprehensive protection across agents and employees.
Customers have told us E5 alone is no longer enough; they do not want multiple tools stitched together, they want one trusted solution. At $99 per user, E7 is priced below purchasing these capabilities à la carte, giving customers a simpler, more cost-effective way to deploy enterprise AI at scale.
With the general availability of Agent 365 and the latest agentic experiences in Microsoft 365 Copilot offered as one Frontier suite, AI moves from experimentation to durable, enterprise-wide value, built on a foundation of Intelligence + Trust. This is how we make Frontier Transformation real. Microsoft is not just imagining the future of AI, we are empowering organizations across industries and around the world to build it.
1Microsoft 365 E7 is available with and without Teams.
The post Introducing the First Frontier Suite built on Intelligence + Trust appeared first on The Official Microsoft Blog.
Today Microsoft is announcing: Wave 3 of Microsoft 365 Copilot Expanded model diversity with Claude and next-gen OpenAI models available today General availability of Agent 365 on May 1 for $15 per user General availability of the new Microsoft 365 E7: The Frontier Suite on May 1 for $99 per user1 Frontier Transformation is a…
The post Introducing the First Frontier Suite built on Intelligence + Trust appeared first on The Official Microsoft Blog.Read More
Symbolic matlabFunction() generates a non-working function for my problem
I want to convert the symbolic expression to a MATLAB function, but the result of matlabFunction() leads to a non-working function with an unspecified parameter t:
syms t real
l = [0;0;t]
syms x y z real
r = [x;y;z];
sep = r-l
dl = diff(l,t)
integrand = simplify(cross(dl,sep)./norm(sep).^3,"Steps",100)
Bsym = int(integrand,t,[0 Inf])
fcn = matlabFunction(Bsym,’File’,’fcn1′);
I received:
function Bsym = fcn1(x,y,z)
%FCN1
% Bsym = FCN1(X,Y,Z)
% This function was generated by the Symbolic Math Toolbox version 25.2.
% 10-Mar-2026 12:09:20
t2 = abs(y);
t3 = x.^2;
t4 = y.^2;
t5 = z.^2;
t7 = -z;
t6 = t2.^2;
t8 = -t3;
t9 = -t4;
t10 = t+t7;
t11 = -t6;
t12 = t10.^2;
t13 = t3+t6;
t16 = t8+t9;
t14 = t5+t13;
t17 = t8+t11;
t18 = t12+t13;
t20 = sqrt(t16);
t19 = 1.0./sqrt(t14);
t23 = t20+z;
t27 = 1.0./sqrt(t18);
t21 = t19.*z;
t30 = t10.*t27.*x;
t31 = t10.*t27.*y;
if ~all(cellfun(@isscalar,{t23,t8,y,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t0 = -(y.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (y ~= 0.0))
t0 = -y./t13-limit(t31,t == z+sqrt(t17),Left)./t13+limit(t31,t == z+sqrt(t17),Right)./t13+(t7.*t19.*y)./t13;
elseif ((0.0 <= z+sqrt(t8)) & (y == 0.0))
t0 = 0.0;
else
t0 = NaN;
end
if ~all(cellfun(@isscalar,{t23,t9,x,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t1 = (x.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (x ~= 0.0))
t1 = x./t13+limit(t30,t == z+sqrt(t17),Left)./t13-limit(t30,t == z+sqrt(t17),Right)./t13+(t21.*x)./t13;
elseif ((0.0 <= z+sqrt(t9)) & (x == 0.0))
t1 = 0.0;
else
t1 = NaN;
end
Bsym = [t0;t1;0.0];
end
But if you try, you’ll get an error.:
fcn1(1,1,1)
Unrecognized function or variable ‘t’.
Error in fcn1 (line 16)
t10 = t+t7;
^^^^^^^^^^^
Why did matlabFunction() skip the t parameter?I want to convert the symbolic expression to a MATLAB function, but the result of matlabFunction() leads to a non-working function with an unspecified parameter t:
syms t real
l = [0;0;t]
syms x y z real
r = [x;y;z];
sep = r-l
dl = diff(l,t)
integrand = simplify(cross(dl,sep)./norm(sep).^3,"Steps",100)
Bsym = int(integrand,t,[0 Inf])
fcn = matlabFunction(Bsym,’File’,’fcn1′);
I received:
function Bsym = fcn1(x,y,z)
%FCN1
% Bsym = FCN1(X,Y,Z)
% This function was generated by the Symbolic Math Toolbox version 25.2.
% 10-Mar-2026 12:09:20
t2 = abs(y);
t3 = x.^2;
t4 = y.^2;
t5 = z.^2;
t7 = -z;
t6 = t2.^2;
t8 = -t3;
t9 = -t4;
t10 = t+t7;
t11 = -t6;
t12 = t10.^2;
t13 = t3+t6;
t16 = t8+t9;
t14 = t5+t13;
t17 = t8+t11;
t18 = t12+t13;
t20 = sqrt(t16);
t19 = 1.0./sqrt(t14);
t23 = t20+z;
t27 = 1.0./sqrt(t18);
t21 = t19.*z;
t30 = t10.*t27.*x;
t31 = t10.*t27.*y;
if ~all(cellfun(@isscalar,{t23,t8,y,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t0 = -(y.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (y ~= 0.0))
t0 = -y./t13-limit(t31,t == z+sqrt(t17),Left)./t13+limit(t31,t == z+sqrt(t17),Right)./t13+(t7.*t19.*y)./t13;
elseif ((0.0 <= z+sqrt(t8)) & (y == 0.0))
t0 = 0.0;
else
t0 = NaN;
end
if ~all(cellfun(@isscalar,{t23,t9,x,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t1 = (x.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (x ~= 0.0))
t1 = x./t13+limit(t30,t == z+sqrt(t17),Left)./t13-limit(t30,t == z+sqrt(t17),Right)./t13+(t21.*x)./t13;
elseif ((0.0 <= z+sqrt(t9)) & (x == 0.0))
t1 = 0.0;
else
t1 = NaN;
end
Bsym = [t0;t1;0.0];
end
But if you try, you’ll get an error.:
fcn1(1,1,1)
Unrecognized function or variable ‘t’.
Error in fcn1 (line 16)
t10 = t+t7;
^^^^^^^^^^^
Why did matlabFunction() skip the t parameter? I want to convert the symbolic expression to a MATLAB function, but the result of matlabFunction() leads to a non-working function with an unspecified parameter t:
syms t real
l = [0;0;t]
syms x y z real
r = [x;y;z];
sep = r-l
dl = diff(l,t)
integrand = simplify(cross(dl,sep)./norm(sep).^3,"Steps",100)
Bsym = int(integrand,t,[0 Inf])
fcn = matlabFunction(Bsym,’File’,’fcn1′);
I received:
function Bsym = fcn1(x,y,z)
%FCN1
% Bsym = FCN1(X,Y,Z)
% This function was generated by the Symbolic Math Toolbox version 25.2.
% 10-Mar-2026 12:09:20
t2 = abs(y);
t3 = x.^2;
t4 = y.^2;
t5 = z.^2;
t7 = -z;
t6 = t2.^2;
t8 = -t3;
t9 = -t4;
t10 = t+t7;
t11 = -t6;
t12 = t10.^2;
t13 = t3+t6;
t16 = t8+t9;
t14 = t5+t13;
t17 = t8+t11;
t18 = t12+t13;
t20 = sqrt(t16);
t19 = 1.0./sqrt(t14);
t23 = t20+z;
t27 = 1.0./sqrt(t18);
t21 = t19.*z;
t30 = t10.*t27.*x;
t31 = t10.*t27.*y;
if ~all(cellfun(@isscalar,{t23,t8,y,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t0 = -(y.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (y ~= 0.0))
t0 = -y./t13-limit(t31,t == z+sqrt(t17),Left)./t13+limit(t31,t == z+sqrt(t17),Right)./t13+(t7.*t19.*y)./t13;
elseif ((0.0 <= z+sqrt(t8)) & (y == 0.0))
t0 = 0.0;
else
t0 = NaN;
end
if ~all(cellfun(@isscalar,{t23,t9,x,z}))
error(message(‘symbolic:sym:matlabFunction:ConditionsMustBeScalar’));
end
if (~(0.0 <= t23))
t1 = (x.*(t21+1.0))./t13;
elseif ((0.0 <= t23) & (x ~= 0.0))
t1 = x./t13+limit(t30,t == z+sqrt(t17),Left)./t13-limit(t30,t == z+sqrt(t17),Right)./t13+(t21.*x)./t13;
elseif ((0.0 <= z+sqrt(t9)) & (x == 0.0))
t1 = 0.0;
else
t1 = NaN;
end
Bsym = [t0;t1;0.0];
end
But if you try, you’ll get an error.:
fcn1(1,1,1)
Unrecognized function or variable ‘t’.
Error in fcn1 (line 16)
t10 = t+t7;
^^^^^^^^^^^
Why did matlabFunction() skip the t parameter? symbolic, error MATLAB Answers — New Questions
uORB read topic instance
Hi. In the support package for PX4 autopilots, when I use uORB Read for sensors, e.g. SensorAccel, i am unable to specify which instance to use, i.e. there are 2 accelerometers publishing data, and i want to receive separately on 2 blocks from instance 0 and instance 1. There should be a possibility to select which instance for multi instance topics, but it does not show up in the block?Hi. In the support package for PX4 autopilots, when I use uORB Read for sensors, e.g. SensorAccel, i am unable to specify which instance to use, i.e. there are 2 accelerometers publishing data, and i want to receive separately on 2 blocks from instance 0 and instance 1. There should be a possibility to select which instance for multi instance topics, but it does not show up in the block? Hi. In the support package for PX4 autopilots, when I use uORB Read for sensors, e.g. SensorAccel, i am unable to specify which instance to use, i.e. there are 2 accelerometers publishing data, and i want to receive separately on 2 blocks from instance 0 and instance 1. There should be a possibility to select which instance for multi instance topics, but it does not show up in the block? px4 MATLAB Answers — New Questions
How can I quickly find the eigenvalues and eigenvectors of a matrix with a special structure using high-precision calculations?
I have a large sparse matrix with the following structure:
It’s 5000×5000 in size. I want to find the 1000 eigenvalues and eigenvectors whose absolute values are closest to zero. The challenge is that the matrix has a large condition number, so to ensure accurate results, I have to use high-precision calculations—which, as you’d expect, makes things extremely slow. Luckily, I came across the following identity:
This identity cuts down on costly high-precision computations (since the matrix on the right is much smaller). So I created a function handle, Afun, that computes M*v for a given input vector v.
But unfortunately, the eigs function only works correctly with a function handle like Afun (where input v returns M*v) when you’re looking for the eigenvalues with the largest magnitude—that is, ‘largestabs’. I need the ones whose absolute values are closest to zero. Is there a way around this?
Or, setting aside this identity, is there any way to speed up high-precision calculations for large sparse matrices? The current speed is unbearably slow.I have a large sparse matrix with the following structure:
It’s 5000×5000 in size. I want to find the 1000 eigenvalues and eigenvectors whose absolute values are closest to zero. The challenge is that the matrix has a large condition number, so to ensure accurate results, I have to use high-precision calculations—which, as you’d expect, makes things extremely slow. Luckily, I came across the following identity:
This identity cuts down on costly high-precision computations (since the matrix on the right is much smaller). So I created a function handle, Afun, that computes M*v for a given input vector v.
But unfortunately, the eigs function only works correctly with a function handle like Afun (where input v returns M*v) when you’re looking for the eigenvalues with the largest magnitude—that is, ‘largestabs’. I need the ones whose absolute values are closest to zero. Is there a way around this?
Or, setting aside this identity, is there any way to speed up high-precision calculations for large sparse matrices? The current speed is unbearably slow. I have a large sparse matrix with the following structure:
It’s 5000×5000 in size. I want to find the 1000 eigenvalues and eigenvectors whose absolute values are closest to zero. The challenge is that the matrix has a large condition number, so to ensure accurate results, I have to use high-precision calculations—which, as you’d expect, makes things extremely slow. Luckily, I came across the following identity:
This identity cuts down on costly high-precision computations (since the matrix on the right is much smaller). So I created a function handle, Afun, that computes M*v for a given input vector v.
But unfortunately, the eigs function only works correctly with a function handle like Afun (where input v returns M*v) when you’re looking for the eigenvalues with the largest magnitude—that is, ‘largestabs’. I need the ones whose absolute values are closest to zero. Is there a way around this?
Or, setting aside this identity, is there any way to speed up high-precision calculations for large sparse matrices? The current speed is unbearably slow. sparse matrix, eigenvalue problem, high-precision computation MATLAB Answers — New Questions
How to Configure Simscape Multibody Block Parameters Using MATLAB
I’m currently attempting to build Simscape Multibody models programmatically using MATLAB scripts, but I keep encountering difficulties when setting block parameters. The main challenge is that I’m unsure about the corresponding variable names and the specific naming conventions for configurable options of each parameter.
After consulting the official documentation, I understand that I can use
simscape.multibody.*
functions or directly modify block parameters using
set_param
but I cannot find a comprehensive reference table for parameter names.
I would appreciate guidance on:
How to obtain a complete list of all configurable parameters for Simscape Multibody blocks
For enumeration-type parameters (such as geometry shapes, joint types), what are the corresponding option names
Is there a systematic approach to creating complete Simscape Multibody models through code
Thank you all for your help!I’m currently attempting to build Simscape Multibody models programmatically using MATLAB scripts, but I keep encountering difficulties when setting block parameters. The main challenge is that I’m unsure about the corresponding variable names and the specific naming conventions for configurable options of each parameter.
After consulting the official documentation, I understand that I can use
simscape.multibody.*
functions or directly modify block parameters using
set_param
but I cannot find a comprehensive reference table for parameter names.
I would appreciate guidance on:
How to obtain a complete list of all configurable parameters for Simscape Multibody blocks
For enumeration-type parameters (such as geometry shapes, joint types), what are the corresponding option names
Is there a systematic approach to creating complete Simscape Multibody models through code
Thank you all for your help! I’m currently attempting to build Simscape Multibody models programmatically using MATLAB scripts, but I keep encountering difficulties when setting block parameters. The main challenge is that I’m unsure about the corresponding variable names and the specific naming conventions for configurable options of each parameter.
After consulting the official documentation, I understand that I can use
simscape.multibody.*
functions or directly modify block parameters using
set_param
but I cannot find a comprehensive reference table for parameter names.
I would appreciate guidance on:
How to obtain a complete list of all configurable parameters for Simscape Multibody blocks
For enumeration-type parameters (such as geometry shapes, joint types), what are the corresponding option names
Is there a systematic approach to creating complete Simscape Multibody models through code
Thank you all for your help! simscape, simscape multibody MATLAB Answers — New Questions
How do I view online help page for an older version of matlab?
For example, help page for real time audio using Audio Toolbox is given here
https://www.mathworks.com/help/audio/gs/real-time-audio-in-matlab.html
This shows help (including smaple code) for R2025b which I suppose is the latest version
I would like to see the equivalent page for R2021b, since the name of some of the related functions seem to be different (the functionality itself is available I’m sure, just function API seems to be different)
I think back in the day there was a drop down menu that used to let you choose which version of matlab you wanted help for, but I don’t know if I am just imagining it at this point, it’s not there anymore
Is there any way to see the equivalent help page for a specific version of matlab?For example, help page for real time audio using Audio Toolbox is given here
https://www.mathworks.com/help/audio/gs/real-time-audio-in-matlab.html
This shows help (including smaple code) for R2025b which I suppose is the latest version
I would like to see the equivalent page for R2021b, since the name of some of the related functions seem to be different (the functionality itself is available I’m sure, just function API seems to be different)
I think back in the day there was a drop down menu that used to let you choose which version of matlab you wanted help for, but I don’t know if I am just imagining it at this point, it’s not there anymore
Is there any way to see the equivalent help page for a specific version of matlab? For example, help page for real time audio using Audio Toolbox is given here
https://www.mathworks.com/help/audio/gs/real-time-audio-in-matlab.html
This shows help (including smaple code) for R2025b which I suppose is the latest version
I would like to see the equivalent page for R2021b, since the name of some of the related functions seem to be different (the functionality itself is available I’m sure, just function API seems to be different)
I think back in the day there was a drop down menu that used to let you choose which version of matlab you wanted help for, but I don’t know if I am just imagining it at this point, it’s not there anymore
Is there any way to see the equivalent help page for a specific version of matlab? help MATLAB Answers — New Questions
Unable to update the model referenced by ‘HITL_Plant_top’.
Hi guys,
I tried to run the example Visualize PX4 Hardware-in-the-Loop (HITL) Simulation with VTOL UAV Over Urban Environment, When I run HITL Simulation from First MATLAB Instance, I get an error:
Model reference simulation target:
Model compilation reason, state compilation duration
===========================================================================
The VTOLDynamics target (VTOLDynamics_msf. mexw64) does not exist. Unable to compile. For detailed information, please refer to the compilation logs. 0d
Compiled 0 models, totaling 1 model (0 models are already the latest)
Compilation duration: 0h 0m 22.807s
Unable to update the model referenced by ‘HITL_Plant_top’.
Reason:
This type of variable does not support indexing using curly braces.
I have no idea why this error occured, I need your help. Thank youHi guys,
I tried to run the example Visualize PX4 Hardware-in-the-Loop (HITL) Simulation with VTOL UAV Over Urban Environment, When I run HITL Simulation from First MATLAB Instance, I get an error:
Model reference simulation target:
Model compilation reason, state compilation duration
===========================================================================
The VTOLDynamics target (VTOLDynamics_msf. mexw64) does not exist. Unable to compile. For detailed information, please refer to the compilation logs. 0d
Compiled 0 models, totaling 1 model (0 models are already the latest)
Compilation duration: 0h 0m 22.807s
Unable to update the model referenced by ‘HITL_Plant_top’.
Reason:
This type of variable does not support indexing using curly braces.
I have no idea why this error occured, I need your help. Thank you Hi guys,
I tried to run the example Visualize PX4 Hardware-in-the-Loop (HITL) Simulation with VTOL UAV Over Urban Environment, When I run HITL Simulation from First MATLAB Instance, I get an error:
Model reference simulation target:
Model compilation reason, state compilation duration
===========================================================================
The VTOLDynamics target (VTOLDynamics_msf. mexw64) does not exist. Unable to compile. For detailed information, please refer to the compilation logs. 0d
Compiled 0 models, totaling 1 model (0 models are already the latest)
Compilation duration: 0h 0m 22.807s
Unable to update the model referenced by ‘HITL_Plant_top’.
Reason:
This type of variable does not support indexing using curly braces.
I have no idea why this error occured, I need your help. Thank you htil, simulink, px4 MATLAB Answers — New Questions
visdiff() is crashing continuously in R2025b
Dear all
i am experiencing a lot of crashes using visdiff() in R2025b, are experiencing them too?
Thanks in advance.
DDear all
i am experiencing a lot of crashes using visdiff() in R2025b, are experiencing them too?
Thanks in advance.
D Dear all
i am experiencing a lot of crashes using visdiff() in R2025b, are experiencing them too?
Thanks in advance.
D visdiff MATLAB Answers — New Questions
How can I force a .txt export
Hi,
I am working on a program that has to export .txt files, the problem is these files get named in versions as in V3.02 and then the files get saved as .02 files instead of .txt if I dont write it out every time.
is there a way to force the .txt ending?
heres my export function:
%% export
function exportSelectedCurve(fig1)
H = guidata(fig1);
p = H.params;
fs = H.fs;
t = H.t;
% — Filter vorbereiten
[b,a] = butter(4, p.fc/(fs/2));
MA = @(x) movmean(x,p.win);
SG = @(x) sgolayfilt(x,p.order,p.framelen);
BW = @(x) filtfilt(b,a,x);
filters = {@(x)x, MA, SG, BW};
filt = filters{H.exportCurve};
% — Daten filtern
HipZ_L = filt(H.HipZ_L + H.offset(3));
HipX_L = filt(H.HipX_L + H.offset(1));
KneeX_L = filt(H.KneeX_L + H.offset(5));
HipZ_R = filt(H.HipZ_R + H.offset(4));
HipX_R = filt(H.HipX_R + H.offset(2));
KneeX_R = filt(H.KneeX_R + H.offset(6));
% — Outputmatrix
out = [ …
t, …
HipZ_L, HipX_L, KneeX_L, zeros(size(t)), …
HipZ_R, HipX_R, KneeX_R, zeros(size(t)) ];
header = [‘time,left_hip_abduction_joint,left_hip_extension_joint,’ …
‘left_knee_joint,left_ankle_joint,’ …
‘right_hip_abduction_joint,right_hip_extension_joint,’ …
‘right_knee_joint,right_ankle_joint’];
defaultName = [H.importName ‘_smoothed.txt’];
% — Save-Dialog
[file, path] = uiputfile( …
{‘*.txt’,’Text files (*.txt)’}, …
‘Export speichern unter’, …
defaultName);
if isequal(file,0) || isequal(path,0)
return;
end
% — Nur .txt ergänzen, nichts abschneiden
if length(file) < 4 || ~strcmpi(file(max(1,end-3):end), ‘.txt’)
file = [file ‘.txt’];
end
fname = fullfile(path, file);
% — Datei öffnen
fid = fopen(fname, ‘w’);
if fid == -1
errordlg([‘Datei konnte nicht geöffnet werden: ‘ fname], ‘Exportfehler’);
return;
end
% — Header schreiben
fprintf(fid, ‘%sn’, header);
fclose(fid);
% — Daten anhängen
writematrix(out, fname, ‘Delimiter’, ‘,’, ‘WriteMode’, ‘append’);
disp([‘Exported: ‘ fname]);
endHi,
I am working on a program that has to export .txt files, the problem is these files get named in versions as in V3.02 and then the files get saved as .02 files instead of .txt if I dont write it out every time.
is there a way to force the .txt ending?
heres my export function:
%% export
function exportSelectedCurve(fig1)
H = guidata(fig1);
p = H.params;
fs = H.fs;
t = H.t;
% — Filter vorbereiten
[b,a] = butter(4, p.fc/(fs/2));
MA = @(x) movmean(x,p.win);
SG = @(x) sgolayfilt(x,p.order,p.framelen);
BW = @(x) filtfilt(b,a,x);
filters = {@(x)x, MA, SG, BW};
filt = filters{H.exportCurve};
% — Daten filtern
HipZ_L = filt(H.HipZ_L + H.offset(3));
HipX_L = filt(H.HipX_L + H.offset(1));
KneeX_L = filt(H.KneeX_L + H.offset(5));
HipZ_R = filt(H.HipZ_R + H.offset(4));
HipX_R = filt(H.HipX_R + H.offset(2));
KneeX_R = filt(H.KneeX_R + H.offset(6));
% — Outputmatrix
out = [ …
t, …
HipZ_L, HipX_L, KneeX_L, zeros(size(t)), …
HipZ_R, HipX_R, KneeX_R, zeros(size(t)) ];
header = [‘time,left_hip_abduction_joint,left_hip_extension_joint,’ …
‘left_knee_joint,left_ankle_joint,’ …
‘right_hip_abduction_joint,right_hip_extension_joint,’ …
‘right_knee_joint,right_ankle_joint’];
defaultName = [H.importName ‘_smoothed.txt’];
% — Save-Dialog
[file, path] = uiputfile( …
{‘*.txt’,’Text files (*.txt)’}, …
‘Export speichern unter’, …
defaultName);
if isequal(file,0) || isequal(path,0)
return;
end
% — Nur .txt ergänzen, nichts abschneiden
if length(file) < 4 || ~strcmpi(file(max(1,end-3):end), ‘.txt’)
file = [file ‘.txt’];
end
fname = fullfile(path, file);
% — Datei öffnen
fid = fopen(fname, ‘w’);
if fid == -1
errordlg([‘Datei konnte nicht geöffnet werden: ‘ fname], ‘Exportfehler’);
return;
end
% — Header schreiben
fprintf(fid, ‘%sn’, header);
fclose(fid);
% — Daten anhängen
writematrix(out, fname, ‘Delimiter’, ‘,’, ‘WriteMode’, ‘append’);
disp([‘Exported: ‘ fname]);
end Hi,
I am working on a program that has to export .txt files, the problem is these files get named in versions as in V3.02 and then the files get saved as .02 files instead of .txt if I dont write it out every time.
is there a way to force the .txt ending?
heres my export function:
%% export
function exportSelectedCurve(fig1)
H = guidata(fig1);
p = H.params;
fs = H.fs;
t = H.t;
% — Filter vorbereiten
[b,a] = butter(4, p.fc/(fs/2));
MA = @(x) movmean(x,p.win);
SG = @(x) sgolayfilt(x,p.order,p.framelen);
BW = @(x) filtfilt(b,a,x);
filters = {@(x)x, MA, SG, BW};
filt = filters{H.exportCurve};
% — Daten filtern
HipZ_L = filt(H.HipZ_L + H.offset(3));
HipX_L = filt(H.HipX_L + H.offset(1));
KneeX_L = filt(H.KneeX_L + H.offset(5));
HipZ_R = filt(H.HipZ_R + H.offset(4));
HipX_R = filt(H.HipX_R + H.offset(2));
KneeX_R = filt(H.KneeX_R + H.offset(6));
% — Outputmatrix
out = [ …
t, …
HipZ_L, HipX_L, KneeX_L, zeros(size(t)), …
HipZ_R, HipX_R, KneeX_R, zeros(size(t)) ];
header = [‘time,left_hip_abduction_joint,left_hip_extension_joint,’ …
‘left_knee_joint,left_ankle_joint,’ …
‘right_hip_abduction_joint,right_hip_extension_joint,’ …
‘right_knee_joint,right_ankle_joint’];
defaultName = [H.importName ‘_smoothed.txt’];
% — Save-Dialog
[file, path] = uiputfile( …
{‘*.txt’,’Text files (*.txt)’}, …
‘Export speichern unter’, …
defaultName);
if isequal(file,0) || isequal(path,0)
return;
end
% — Nur .txt ergänzen, nichts abschneiden
if length(file) < 4 || ~strcmpi(file(max(1,end-3):end), ‘.txt’)
file = [file ‘.txt’];
end
fname = fullfile(path, file);
% — Datei öffnen
fid = fopen(fname, ‘w’);
if fid == -1
errordlg([‘Datei konnte nicht geöffnet werden: ‘ fname], ‘Exportfehler’);
return;
end
% — Header schreiben
fprintf(fid, ‘%sn’, header);
fclose(fid);
% — Daten anhängen
writematrix(out, fname, ‘Delimiter’, ‘,’, ‘WriteMode’, ‘append’);
disp([‘Exported: ‘ fname]);
end export, .txt MATLAB Answers — New Questions
smart home matlab code and simulink model
Can anyone please share with me Matlab smart home code and simulink model which should have working condition on energy managment AC power source solar power generation DC and AC load and battry with different load condition such cloudy day, sunny day and night time .
i am looking for positive response
thanksCan anyone please share with me Matlab smart home code and simulink model which should have working condition on energy managment AC power source solar power generation DC and AC load and battry with different load condition such cloudy day, sunny day and night time .
i am looking for positive response
thanks Can anyone please share with me Matlab smart home code and simulink model which should have working condition on energy managment AC power source solar power generation DC and AC load and battry with different load condition such cloudy day, sunny day and night time .
i am looking for positive response
thanks smart home MATLAB Answers — New Questions









