Month: January 2025
MIMO systems input/output response in Simulink
I’m trying to simulate a plant with step input. This plant have two inputs and two outputs each input.
When i use ‘step’ command with MATLAB i’m getting 4 plots and that’s what i want.
But in simulink i can’t get 4 plots im getting just two.
and i’m using these simulink model;
How can get fix it ?
ThanksI’m trying to simulate a plant with step input. This plant have two inputs and two outputs each input.
When i use ‘step’ command with MATLAB i’m getting 4 plots and that’s what i want.
But in simulink i can’t get 4 plots im getting just two.
and i’m using these simulink model;
How can get fix it ?
Thanks I’m trying to simulate a plant with step input. This plant have two inputs and two outputs each input.
When i use ‘step’ command with MATLAB i’m getting 4 plots and that’s what i want.
But in simulink i can’t get 4 plots im getting just two.
and i’m using these simulink model;
How can get fix it ?
Thanks simulink, matlab, mimo MATLAB Answers — New Questions
Compiled report generator script fails.
I am receiving an error in a compiled script for report generator.
Here is the script:
makeDOMCompilable();
import mlreportgen.report.*
import mlreportgen.dom.*
rpt = Report(‘Test’,’pdf’);
%open(rpt);
% titlepage
%I = imread(img);
%imshow(I);
tp = TitlePage;
%location = pwd;
tp.Title = ‘Just a Test’;
tp.Image = which(strcat(‘duel.jpg’));
%tp.Author = Analyst();
tp.Publisher = ‘Mike Fisher’;
tp.PubDate = date();
tp.Subtitle = ‘GTG’;
add(rpt,tp);
add(rpt,LineBreak);
close(rpt);
rptview(rpt);
Runs fine in the command window. Compile it and run, get this error:
Error using mlreportgen.dom.Image
Invalid image type: .
Error in mlreportgen.report.TitlePage/getImageReporter
Error in mlreportgen.report.TitlePage/getImag
Error in mlreportgen.report.ReportForm/fillHole
Error in mlreportgen.report.TitlePage/processHole
Error in mlreportgen.report.ReportForm/fillForm
Error in mlreportgen.report.ReporterBase/getDocumentPart
Error in mlreportgen.report.ReporterBase/getImpl
Error in mlreportgen.report.internal.LockedForm.add
Error in mlreportgen.report.ReportBase/append
Error in mlreportgen.report.ReportBase/add
Error in JTest (line 28)I am receiving an error in a compiled script for report generator.
Here is the script:
makeDOMCompilable();
import mlreportgen.report.*
import mlreportgen.dom.*
rpt = Report(‘Test’,’pdf’);
%open(rpt);
% titlepage
%I = imread(img);
%imshow(I);
tp = TitlePage;
%location = pwd;
tp.Title = ‘Just a Test’;
tp.Image = which(strcat(‘duel.jpg’));
%tp.Author = Analyst();
tp.Publisher = ‘Mike Fisher’;
tp.PubDate = date();
tp.Subtitle = ‘GTG’;
add(rpt,tp);
add(rpt,LineBreak);
close(rpt);
rptview(rpt);
Runs fine in the command window. Compile it and run, get this error:
Error using mlreportgen.dom.Image
Invalid image type: .
Error in mlreportgen.report.TitlePage/getImageReporter
Error in mlreportgen.report.TitlePage/getImag
Error in mlreportgen.report.ReportForm/fillHole
Error in mlreportgen.report.TitlePage/processHole
Error in mlreportgen.report.ReportForm/fillForm
Error in mlreportgen.report.ReporterBase/getDocumentPart
Error in mlreportgen.report.ReporterBase/getImpl
Error in mlreportgen.report.internal.LockedForm.add
Error in mlreportgen.report.ReportBase/append
Error in mlreportgen.report.ReportBase/add
Error in JTest (line 28) I am receiving an error in a compiled script for report generator.
Here is the script:
makeDOMCompilable();
import mlreportgen.report.*
import mlreportgen.dom.*
rpt = Report(‘Test’,’pdf’);
%open(rpt);
% titlepage
%I = imread(img);
%imshow(I);
tp = TitlePage;
%location = pwd;
tp.Title = ‘Just a Test’;
tp.Image = which(strcat(‘duel.jpg’));
%tp.Author = Analyst();
tp.Publisher = ‘Mike Fisher’;
tp.PubDate = date();
tp.Subtitle = ‘GTG’;
add(rpt,tp);
add(rpt,LineBreak);
close(rpt);
rptview(rpt);
Runs fine in the command window. Compile it and run, get this error:
Error using mlreportgen.dom.Image
Invalid image type: .
Error in mlreportgen.report.TitlePage/getImageReporter
Error in mlreportgen.report.TitlePage/getImag
Error in mlreportgen.report.ReportForm/fillHole
Error in mlreportgen.report.TitlePage/processHole
Error in mlreportgen.report.ReportForm/fillForm
Error in mlreportgen.report.ReporterBase/getDocumentPart
Error in mlreportgen.report.ReporterBase/getImpl
Error in mlreportgen.report.internal.LockedForm.add
Error in mlreportgen.report.ReportBase/append
Error in mlreportgen.report.ReportBase/add
Error in JTest (line 28) generator, compiled, image MATLAB Answers — New Questions
how to open matlab in Ubuntu after installed
Right now the only way I know how to open matlab is opening terminal and type
/usr/local/MATLAB/R2024b/bin/matlab
Is there any other alternative that is easier, more straightforward?Right now the only way I know how to open matlab is opening terminal and type
/usr/local/MATLAB/R2024b/bin/matlab
Is there any other alternative that is easier, more straightforward? Right now the only way I know how to open matlab is opening terminal and type
/usr/local/MATLAB/R2024b/bin/matlab
Is there any other alternative that is easier, more straightforward? installation, linux MATLAB Answers — New Questions
simulating rolling 1 and 2 dice
I need to simulate rolling one dice 10 and 1000 times, and two dice 10 and 1000 times. I must add together the sums for the two dice. I then need to create a histogram with the PDF and CDF. I used a kernel density estimation to smooth the curves. I want to know if my code can be created into a loop to make things simpler. Here is what I have for the rolling 1 dice:
% Simulate 10 rolls, 1 die
roll_10 = randi([1, 6], 10, 1); %using the 1 because only rolling 1 die
mean_10=mean(roll_10);
std_10=std(roll_10);
figure;
histogram(roll_10)
% Plot the smooth PDF using a kernel density estimation
figure;
subplot(2, 1, 1);
ksdensity(roll_10); % Smooth PDF using kernel density estimation. each data point replaced with a wieghing function to estimate the pdf
title(‘Smooth PDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Probability Density’);
xlim([0, 7]); % Limiting x-axis to dice face values
% Plot the smooth CDF using a kernel density estimation
subplot(2, 1, 2);
ksdensity(roll_10, ‘Cumulative’, true); % Smooth CDF
title(‘Smooth CDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Cumulative Probability’);
xlim([0, 7]); % Limiting x-axis to dice face valuesI need to simulate rolling one dice 10 and 1000 times, and two dice 10 and 1000 times. I must add together the sums for the two dice. I then need to create a histogram with the PDF and CDF. I used a kernel density estimation to smooth the curves. I want to know if my code can be created into a loop to make things simpler. Here is what I have for the rolling 1 dice:
% Simulate 10 rolls, 1 die
roll_10 = randi([1, 6], 10, 1); %using the 1 because only rolling 1 die
mean_10=mean(roll_10);
std_10=std(roll_10);
figure;
histogram(roll_10)
% Plot the smooth PDF using a kernel density estimation
figure;
subplot(2, 1, 1);
ksdensity(roll_10); % Smooth PDF using kernel density estimation. each data point replaced with a wieghing function to estimate the pdf
title(‘Smooth PDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Probability Density’);
xlim([0, 7]); % Limiting x-axis to dice face values
% Plot the smooth CDF using a kernel density estimation
subplot(2, 1, 2);
ksdensity(roll_10, ‘Cumulative’, true); % Smooth CDF
title(‘Smooth CDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Cumulative Probability’);
xlim([0, 7]); % Limiting x-axis to dice face values I need to simulate rolling one dice 10 and 1000 times, and two dice 10 and 1000 times. I must add together the sums for the two dice. I then need to create a histogram with the PDF and CDF. I used a kernel density estimation to smooth the curves. I want to know if my code can be created into a loop to make things simpler. Here is what I have for the rolling 1 dice:
% Simulate 10 rolls, 1 die
roll_10 = randi([1, 6], 10, 1); %using the 1 because only rolling 1 die
mean_10=mean(roll_10);
std_10=std(roll_10);
figure;
histogram(roll_10)
% Plot the smooth PDF using a kernel density estimation
figure;
subplot(2, 1, 1);
ksdensity(roll_10); % Smooth PDF using kernel density estimation. each data point replaced with a wieghing function to estimate the pdf
title(‘Smooth PDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Probability Density’);
xlim([0, 7]); % Limiting x-axis to dice face values
% Plot the smooth CDF using a kernel density estimation
subplot(2, 1, 2);
ksdensity(roll_10, ‘Cumulative’, true); % Smooth CDF
title(‘Smooth CDF of Dice Rolls’);
xlabel(‘Dice Face Value’);
ylabel(‘Cumulative Probability’);
xlim([0, 7]); % Limiting x-axis to dice face values random, mean, pdf MATLAB Answers — New Questions
Issues solving a system of 2, second order, differential equations with ode45
Hello everybody,
I am starting with Matlab to solve a system of 2 differential equations, second order.
My code is below. It works, but the output is totally wrong.
This code is something taken on matlab help center and adapted to my problem, to help me start.
I have written things in the code "#comment " where it’s not clear to me.
Your help would be very helpful to me.
Thanks a lot in advance.
clear all;
close all;
syms x(t) y(t)
%% Constants
Cd = 0,45 ;% drag coef aircraft [-]
Af = 2 ;% reference area aircraft [-]
m = 10 ;% total mass aircraft [kg]
g = 9.81 ;% acc° of gravity [m/s2]
Teta = 85 ;% launch angle [deg]
V0 = 83 ;% launch velocity [m/s]
rho_Air = 1,2 ;% air density [kg/m3]
t0 = 0; ;% time interval, initial t [s]
tf = 5400 ;% time interval, final t [s]
%% Initial Conditions
x_to = 0 ;% x(t=0)= 0 [m]
dx_t0 = V0*cosd(Teta) ;% x'(t=0)= V0*cosd(Teta) [m/s]
y_to = 0 ;% y'(t=0)= 0 [m]
dy_t0 = V0*sind(Teta) ;% x(t=0)= 0 [m/s]
y0 = [x_to dx_t0 y_to dy_t0 ] ;% vector initial conditions
%% System differential equations to be solved
eq1 = diff(x,2) == -( (Cd*Af*rho_Air)/(2*m) ) * diff(x,1) * (x^2 + y^2)^(1/2)
eq2 = diff(y,2) == – g – ( (Cd*Af*rho_Air)/(2*m) ) * diff(y,1) * ( (diff(x,1))^2 + (diff(y,1))^2 )^(1/2)
%% variables
vars = [x(t); y(t)]
V = odeToVectorField([eq1,eq2])
M = matlabFunction(V,’vars’, {‘t’,’Y’});
% #comment: why the variable x doesn’t appear here ? as I solve on x(t) and
% y(t) -> in V I call eq1 and eq2, then it’s x(t) and y(t)
interval = [t0 tf]; %time interval
ySol = ode45(M,interval,y0);
% #comment: vector y0 containts the boundary conditions for both x and y.
% As here I solve on y, why do we have boundary conditions in x as well ?
% is the function ode capable to make the difference in between boudady
% conditions for x and y ?
tValues = linspace(interval(1),interval(2),1000);
yValues = deval(ySol,tValues,1); %number 1 denotes first position likewise you can mention 2 to 6 for the next 5 positions
plot(tValues,yValues) %if you want to plot position vs time just swap here
% #comment: I need to solve on x as well
% thank you !Hello everybody,
I am starting with Matlab to solve a system of 2 differential equations, second order.
My code is below. It works, but the output is totally wrong.
This code is something taken on matlab help center and adapted to my problem, to help me start.
I have written things in the code "#comment " where it’s not clear to me.
Your help would be very helpful to me.
Thanks a lot in advance.
clear all;
close all;
syms x(t) y(t)
%% Constants
Cd = 0,45 ;% drag coef aircraft [-]
Af = 2 ;% reference area aircraft [-]
m = 10 ;% total mass aircraft [kg]
g = 9.81 ;% acc° of gravity [m/s2]
Teta = 85 ;% launch angle [deg]
V0 = 83 ;% launch velocity [m/s]
rho_Air = 1,2 ;% air density [kg/m3]
t0 = 0; ;% time interval, initial t [s]
tf = 5400 ;% time interval, final t [s]
%% Initial Conditions
x_to = 0 ;% x(t=0)= 0 [m]
dx_t0 = V0*cosd(Teta) ;% x'(t=0)= V0*cosd(Teta) [m/s]
y_to = 0 ;% y'(t=0)= 0 [m]
dy_t0 = V0*sind(Teta) ;% x(t=0)= 0 [m/s]
y0 = [x_to dx_t0 y_to dy_t0 ] ;% vector initial conditions
%% System differential equations to be solved
eq1 = diff(x,2) == -( (Cd*Af*rho_Air)/(2*m) ) * diff(x,1) * (x^2 + y^2)^(1/2)
eq2 = diff(y,2) == – g – ( (Cd*Af*rho_Air)/(2*m) ) * diff(y,1) * ( (diff(x,1))^2 + (diff(y,1))^2 )^(1/2)
%% variables
vars = [x(t); y(t)]
V = odeToVectorField([eq1,eq2])
M = matlabFunction(V,’vars’, {‘t’,’Y’});
% #comment: why the variable x doesn’t appear here ? as I solve on x(t) and
% y(t) -> in V I call eq1 and eq2, then it’s x(t) and y(t)
interval = [t0 tf]; %time interval
ySol = ode45(M,interval,y0);
% #comment: vector y0 containts the boundary conditions for both x and y.
% As here I solve on y, why do we have boundary conditions in x as well ?
% is the function ode capable to make the difference in between boudady
% conditions for x and y ?
tValues = linspace(interval(1),interval(2),1000);
yValues = deval(ySol,tValues,1); %number 1 denotes first position likewise you can mention 2 to 6 for the next 5 positions
plot(tValues,yValues) %if you want to plot position vs time just swap here
% #comment: I need to solve on x as well
% thank you ! Hello everybody,
I am starting with Matlab to solve a system of 2 differential equations, second order.
My code is below. It works, but the output is totally wrong.
This code is something taken on matlab help center and adapted to my problem, to help me start.
I have written things in the code "#comment " where it’s not clear to me.
Your help would be very helpful to me.
Thanks a lot in advance.
clear all;
close all;
syms x(t) y(t)
%% Constants
Cd = 0,45 ;% drag coef aircraft [-]
Af = 2 ;% reference area aircraft [-]
m = 10 ;% total mass aircraft [kg]
g = 9.81 ;% acc° of gravity [m/s2]
Teta = 85 ;% launch angle [deg]
V0 = 83 ;% launch velocity [m/s]
rho_Air = 1,2 ;% air density [kg/m3]
t0 = 0; ;% time interval, initial t [s]
tf = 5400 ;% time interval, final t [s]
%% Initial Conditions
x_to = 0 ;% x(t=0)= 0 [m]
dx_t0 = V0*cosd(Teta) ;% x'(t=0)= V0*cosd(Teta) [m/s]
y_to = 0 ;% y'(t=0)= 0 [m]
dy_t0 = V0*sind(Teta) ;% x(t=0)= 0 [m/s]
y0 = [x_to dx_t0 y_to dy_t0 ] ;% vector initial conditions
%% System differential equations to be solved
eq1 = diff(x,2) == -( (Cd*Af*rho_Air)/(2*m) ) * diff(x,1) * (x^2 + y^2)^(1/2)
eq2 = diff(y,2) == – g – ( (Cd*Af*rho_Air)/(2*m) ) * diff(y,1) * ( (diff(x,1))^2 + (diff(y,1))^2 )^(1/2)
%% variables
vars = [x(t); y(t)]
V = odeToVectorField([eq1,eq2])
M = matlabFunction(V,’vars’, {‘t’,’Y’});
% #comment: why the variable x doesn’t appear here ? as I solve on x(t) and
% y(t) -> in V I call eq1 and eq2, then it’s x(t) and y(t)
interval = [t0 tf]; %time interval
ySol = ode45(M,interval,y0);
% #comment: vector y0 containts the boundary conditions for both x and y.
% As here I solve on y, why do we have boundary conditions in x as well ?
% is the function ode capable to make the difference in between boudady
% conditions for x and y ?
tValues = linspace(interval(1),interval(2),1000);
yValues = deval(ySol,tValues,1); %number 1 denotes first position likewise you can mention 2 to 6 for the next 5 positions
plot(tValues,yValues) %if you want to plot position vs time just swap here
% #comment: I need to solve on x as well
% thank you ! solving ode, ode45, system 2 ode second order MATLAB Answers — New Questions
Plot lines with curves from csv file
Hi,
I have a csv/txt file that contains x,y,z and also the rotation center x and rotation center y data. The data are basically the coordinates of a path that a robot follows. The robot can make his path in a straight line and also in curves. How can I use the rotation center x and y coordinates in my data to plot the curves.
My current plot has only straight lines. But as you can see in the image attached, the actual path inlcudes curves around corners based on the rotation center x and y data. The following code is obviously not enough.
figure(1)
plot(Data.PosX,Data.PosY)Hi,
I have a csv/txt file that contains x,y,z and also the rotation center x and rotation center y data. The data are basically the coordinates of a path that a robot follows. The robot can make his path in a straight line and also in curves. How can I use the rotation center x and y coordinates in my data to plot the curves.
My current plot has only straight lines. But as you can see in the image attached, the actual path inlcudes curves around corners based on the rotation center x and y data. The following code is obviously not enough.
figure(1)
plot(Data.PosX,Data.PosY) Hi,
I have a csv/txt file that contains x,y,z and also the rotation center x and rotation center y data. The data are basically the coordinates of a path that a robot follows. The robot can make his path in a straight line and also in curves. How can I use the rotation center x and y coordinates in my data to plot the curves.
My current plot has only straight lines. But as you can see in the image attached, the actual path inlcudes curves around corners based on the rotation center x and y data. The following code is obviously not enough.
figure(1)
plot(Data.PosX,Data.PosY) plot, 2d, curves, line, scatter, rotation, center MATLAB Answers — New Questions
Writing tables within a for loop
Hi all,
I’m trying to make a for loop to process some EEG data. The final output is (1×96) for each participant which is finally working great, however, now I’m having issues writing the data/ looping through the participants. I’ve attached what the output looks like for one particpant as that is how far I can get. Below is what I’m trying to use unnsuccessfully. Any help is greatly appreciated!
SubjectNum = { ’01-02′ ’01-03′ };
resultsFileName = [fullfile(baseDir, ‘MATLAB_Output’, ‘DIVINE.75results.xlsx’)];
for k = 1:length(SubjectNum)
…. (whole bunch of steps)
RelativePowerResults = table(ID,channelsLabel,relativeDelta2,relativeTheta2,relativeAlpha2,relativeBeta2,relativeGamma2)
% unstack resulting in (1 row with 96 columns)
RelativePowerResults_Wide = unstack(RelativePowerResults,"relative"+["Alpha2","Delta2","Theta2","Beta2","Gamma2"],’channelsLabel’);
if k == 1
% First subject, with variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’, RANGE{k});
else
% For subsequent subjects, write without variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’,RANGE{k}, ‘WriteVariableNames’, false);
endHi all,
I’m trying to make a for loop to process some EEG data. The final output is (1×96) for each participant which is finally working great, however, now I’m having issues writing the data/ looping through the participants. I’ve attached what the output looks like for one particpant as that is how far I can get. Below is what I’m trying to use unnsuccessfully. Any help is greatly appreciated!
SubjectNum = { ’01-02′ ’01-03′ };
resultsFileName = [fullfile(baseDir, ‘MATLAB_Output’, ‘DIVINE.75results.xlsx’)];
for k = 1:length(SubjectNum)
…. (whole bunch of steps)
RelativePowerResults = table(ID,channelsLabel,relativeDelta2,relativeTheta2,relativeAlpha2,relativeBeta2,relativeGamma2)
% unstack resulting in (1 row with 96 columns)
RelativePowerResults_Wide = unstack(RelativePowerResults,"relative"+["Alpha2","Delta2","Theta2","Beta2","Gamma2"],’channelsLabel’);
if k == 1
% First subject, with variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’, RANGE{k});
else
% For subsequent subjects, write without variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’,RANGE{k}, ‘WriteVariableNames’, false);
end Hi all,
I’m trying to make a for loop to process some EEG data. The final output is (1×96) for each participant which is finally working great, however, now I’m having issues writing the data/ looping through the participants. I’ve attached what the output looks like for one particpant as that is how far I can get. Below is what I’m trying to use unnsuccessfully. Any help is greatly appreciated!
SubjectNum = { ’01-02′ ’01-03′ };
resultsFileName = [fullfile(baseDir, ‘MATLAB_Output’, ‘DIVINE.75results.xlsx’)];
for k = 1:length(SubjectNum)
…. (whole bunch of steps)
RelativePowerResults = table(ID,channelsLabel,relativeDelta2,relativeTheta2,relativeAlpha2,relativeBeta2,relativeGamma2)
% unstack resulting in (1 row with 96 columns)
RelativePowerResults_Wide = unstack(RelativePowerResults,"relative"+["Alpha2","Delta2","Theta2","Beta2","Gamma2"],’channelsLabel’);
if k == 1
% First subject, with variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’, RANGE{k});
else
% For subsequent subjects, write without variable names
writetable(RelativePowerResults_Wide, resultsFileName, ‘Sheet’, 1, ‘Range’,RANGE{k}, ‘WriteVariableNames’, false);
end for loop, eeg MATLAB Answers — New Questions
defining upper and lower limits of a matrix
Hello all I have a smaller question and a larger question.
Small question: In the attached ‘viscosity_test.mat’ file is there a way to set the minimum value to 1e19? Is the process similar if I decide I want to set a maximum value?
Larger question: I am running a finite difference numerical model on an uploaded .png file (shown below). I believe the shape boundary is causing artificially low and high values to be output. Is there a way to troubleshoot this that doesn’t involve going through and manipulating the minimum and maximum values after the model runs? I can provide more details if that is unclear.
Thank you for any help!Hello all I have a smaller question and a larger question.
Small question: In the attached ‘viscosity_test.mat’ file is there a way to set the minimum value to 1e19? Is the process similar if I decide I want to set a maximum value?
Larger question: I am running a finite difference numerical model on an uploaded .png file (shown below). I believe the shape boundary is causing artificially low and high values to be output. Is there a way to troubleshoot this that doesn’t involve going through and manipulating the minimum and maximum values after the model runs? I can provide more details if that is unclear.
Thank you for any help! Hello all I have a smaller question and a larger question.
Small question: In the attached ‘viscosity_test.mat’ file is there a way to set the minimum value to 1e19? Is the process similar if I decide I want to set a maximum value?
Larger question: I am running a finite difference numerical model on an uploaded .png file (shown below). I believe the shape boundary is causing artificially low and high values to be output. Is there a way to troubleshoot this that doesn’t involve going through and manipulating the minimum and maximum values after the model runs? I can provide more details if that is unclear.
Thank you for any help! matrix manipulation MATLAB Answers — New Questions
How can I make output for input with continuous number input on DTMF which is based on Goertzel algorithm?
Hello. I designed the DTMF decoder function based on goertzel algorithm. When I put input with 123-456-7890_40 and 404-894-2714_30, The function prints out with output with 123-456-7890 and 404-894-2714. However, when I put input with 123-555-4709_25, output is ,
Invalid number or insufficient digits
‘. I tried to fix the code, but I am not sure what should I do. Could you please let me know what should I add or edit? Thanks.Hello. I designed the DTMF decoder function based on goertzel algorithm. When I put input with 123-456-7890_40 and 404-894-2714_30, The function prints out with output with 123-456-7890 and 404-894-2714. However, when I put input with 123-555-4709_25, output is ,
Invalid number or insufficient digits
‘. I tried to fix the code, but I am not sure what should I do. Could you please let me know what should I add or edit? Thanks. Hello. I designed the DTMF decoder function based on goertzel algorithm. When I put input with 123-456-7890_40 and 404-894-2714_30, The function prints out with output with 123-456-7890 and 404-894-2714. However, when I put input with 123-555-4709_25, output is ,
Invalid number or insufficient digits
‘. I tried to fix the code, but I am not sure what should I do. Could you please let me know what should I add or edit? Thanks. dtmf, goertzel MATLAB Answers — New Questions
Unable to load initial operating point after modifying blockparameters.
Hi,
I need to run a large simulink model under varying operating conditions (resistances between nodes). I have been trying to save the operating state, changing block parameters (struct which has the resistance values), load the saved as initial state and continue. But I get the error:
‘Simulink cannot load the initial operating point because the model, ‘mymodel’, was changed after the operating point was saved. Run the simulation again and resave the operating point.’
I understood that unless datatype, dimensions or connections change, this should not happen, but that is not the case here. I also disabled the block parameter changes, and then the model runs fine.
If this is impossible how can this be achieved? (i.e. block parameters defined via strcuts in the workplace needs to change at a particular time).Hi,
I need to run a large simulink model under varying operating conditions (resistances between nodes). I have been trying to save the operating state, changing block parameters (struct which has the resistance values), load the saved as initial state and continue. But I get the error:
‘Simulink cannot load the initial operating point because the model, ‘mymodel’, was changed after the operating point was saved. Run the simulation again and resave the operating point.’
I understood that unless datatype, dimensions or connections change, this should not happen, but that is not the case here. I also disabled the block parameter changes, and then the model runs fine.
If this is impossible how can this be achieved? (i.e. block parameters defined via strcuts in the workplace needs to change at a particular time). Hi,
I need to run a large simulink model under varying operating conditions (resistances between nodes). I have been trying to save the operating state, changing block parameters (struct which has the resistance values), load the saved as initial state and continue. But I get the error:
‘Simulink cannot load the initial operating point because the model, ‘mymodel’, was changed after the operating point was saved. Run the simulation again and resave the operating point.’
I understood that unless datatype, dimensions or connections change, this should not happen, but that is not the case here. I also disabled the block parameter changes, and then the model runs fine.
If this is impossible how can this be achieved? (i.e. block parameters defined via strcuts in the workplace needs to change at a particular time). matlab, simscape, simstate MATLAB Answers — New Questions
Using 3 “y” axes for multiple plot
Hello,
I am working with multiple plots in MATLAB and I would like to use three different "y" axis for the different axes within a single figure. I have no problem using two "y" axes with yyaxis, I can’t include that function in my for loop (this loop reads the data from each column to be plotted from the Excel file). I read about a function called addaxis, but I don’t know how to use it.
Also, I would like the plots to have different colors for each "y" axis, since MATLAB defaults to red for Y1 and blue for Y2. Any ideas on how to achieve this?
Any suggestions would be greatly appreciated!
Best Regards!
Lucas.
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB’, ‘NumberTitle’,’off’, ‘Color’, ‘w’);
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 100
yyaxis right
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘r’);
end
if max(y_i) > 100
yyaxis left
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’;
axis tight;
ax.XAxis.SecondaryLabelFormatMode = ‘manual’;
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]);
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g;
This code is working but It can only plot 2 "y" axes; but if I try the addaxis in order to implement the third "y" axis, my code It´s not working:
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB DQA’, ‘NumberTitle’,’off’, ‘Color’, ‘w’); %Preguntar si NumberTitle on o off
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 20
addaxis(t, y_i, [0 20],’LineWidth’,1.3,’Color’,’b’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, ‘SeriesIndex’, 1, ‘Marker’, ‘.’, ‘MarkerSize’, 1, ‘Color’, ‘green’);
end
if 20 < max(y_i) && max(y_i) <= 100
addaxis(t, y_i, [0 100], ‘LineWidth’,1.3,’Color’,’r’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘red’); %[‘Y_’ num2str(i-1)]
end
if max(y_i) > 100
addaxis(t, y_i, [0 max(y_i)],’LineWidth’,1.3,’Color’,’g’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva DiagnóstiQA’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’; %QUITAR ESTA LINEA DE CODIGO SI PREFERIMOS FORMATO TEMPORAL mm:ss
axis tight; %INSTRUCCIONES: tight, tickaligned o padded %en vez de axis puedo usar xlim o ylim si solo quiero ajustar 1 de los ejes
ax.XAxis.SecondaryLabelFormatMode = ‘manual’; %ESTO SOLUCIONA EL 31 -1!
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]); %El segundo numero es el margen desde el borde inferior de la ventana y el cuarto número es la altura de los ejes
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g;Hello,
I am working with multiple plots in MATLAB and I would like to use three different "y" axis for the different axes within a single figure. I have no problem using two "y" axes with yyaxis, I can’t include that function in my for loop (this loop reads the data from each column to be plotted from the Excel file). I read about a function called addaxis, but I don’t know how to use it.
Also, I would like the plots to have different colors for each "y" axis, since MATLAB defaults to red for Y1 and blue for Y2. Any ideas on how to achieve this?
Any suggestions would be greatly appreciated!
Best Regards!
Lucas.
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB’, ‘NumberTitle’,’off’, ‘Color’, ‘w’);
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 100
yyaxis right
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘r’);
end
if max(y_i) > 100
yyaxis left
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’;
axis tight;
ax.XAxis.SecondaryLabelFormatMode = ‘manual’;
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]);
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g;
This code is working but It can only plot 2 "y" axes; but if I try the addaxis in order to implement the third "y" axis, my code It´s not working:
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB DQA’, ‘NumberTitle’,’off’, ‘Color’, ‘w’); %Preguntar si NumberTitle on o off
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 20
addaxis(t, y_i, [0 20],’LineWidth’,1.3,’Color’,’b’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, ‘SeriesIndex’, 1, ‘Marker’, ‘.’, ‘MarkerSize’, 1, ‘Color’, ‘green’);
end
if 20 < max(y_i) && max(y_i) <= 100
addaxis(t, y_i, [0 100], ‘LineWidth’,1.3,’Color’,’r’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘red’); %[‘Y_’ num2str(i-1)]
end
if max(y_i) > 100
addaxis(t, y_i, [0 max(y_i)],’LineWidth’,1.3,’Color’,’g’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva DiagnóstiQA’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’; %QUITAR ESTA LINEA DE CODIGO SI PREFERIMOS FORMATO TEMPORAL mm:ss
axis tight; %INSTRUCCIONES: tight, tickaligned o padded %en vez de axis puedo usar xlim o ylim si solo quiero ajustar 1 de los ejes
ax.XAxis.SecondaryLabelFormatMode = ‘manual’; %ESTO SOLUCIONA EL 31 -1!
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]); %El segundo numero es el margen desde el borde inferior de la ventana y el cuarto número es la altura de los ejes
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g; Hello,
I am working with multiple plots in MATLAB and I would like to use three different "y" axis for the different axes within a single figure. I have no problem using two "y" axes with yyaxis, I can’t include that function in my for loop (this loop reads the data from each column to be plotted from the Excel file). I read about a function called addaxis, but I don’t know how to use it.
Also, I would like the plots to have different colors for each "y" axis, since MATLAB defaults to red for Y1 and blue for Y2. Any ideas on how to achieve this?
Any suggestions would be greatly appreciated!
Best Regards!
Lucas.
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB’, ‘NumberTitle’,’off’, ‘Color’, ‘w’);
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 100
yyaxis right
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘r’);
end
if max(y_i) > 100
yyaxis left
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’;
axis tight;
ax.XAxis.SecondaryLabelFormatMode = ‘manual’;
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]);
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g;
This code is working but It can only plot 2 "y" axes; but if I try the addaxis in order to implement the third "y" axis, my code It´s not working:
clc;
clear;
nombre_excel = ‘Hoja_fuente.xlsx’;
datos = readtable (nombre_excel);
encabezados = datos.Properties.VariableNames(2:end);
encabezados = strrep(encabezados, ‘_’, ‘ ‘);
t = datetime(datos.Tiempo,’ConvertFrom’, ‘datenum’, ‘Format’, ‘HH:mm:ss’); %Si da probemas: sustituir ‘datenum’ por ‘excel’
numero_columnas=size(datos,2) – 1;
fig = figure(‘Name’,’Representación interactiva MATLAB DQA’, ‘NumberTitle’,’off’, ‘Color’, ‘w’); %Preguntar si NumberTitle on o off
hold on;
grid on;
for i=2:numero_columnas+1
y_i = datos(:,i);
y_i = table2array(y_i);
if max(y_i) <= 20
addaxis(t, y_i, [0 20],’LineWidth’,1.3,’Color’,’b’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, ‘SeriesIndex’, 1, ‘Marker’, ‘.’, ‘MarkerSize’, 1, ‘Color’, ‘green’);
end
if 20 < max(y_i) && max(y_i) <= 100
addaxis(t, y_i, [0 100], ‘LineWidth’,1.3,’Color’,’r’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘red’); %[‘Y_’ num2str(i-1)]
end
if max(y_i) > 100
addaxis(t, y_i, [0 max(y_i)],’LineWidth’,1.3,’Color’,’g’)
plot(t, y_i, ‘LineWidth’, 1.5, ‘DisplayName’, encabezados{i-1}, SeriesIndex = 1, marker=’.’, markersize = 1, color = ‘b’); %[‘Y_’ num2str(i-1)]
end
end
title(‘Gráfica Interactiva DiagnóstiQA’);
legend(‘show’);
xlabel(‘Tiempo( hh:mm:ss )’, ‘FontSize’, 12);
%ylabel(encabezados, ‘Rotation’, 0, ‘Color’, ‘b’);
ax=gca;
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = ‘HH:mm:ss’; %QUITAR ESTA LINEA DE CODIGO SI PREFERIMOS FORMATO TEMPORAL mm:ss
axis tight; %INSTRUCCIONES: tight, tickaligned o padded %en vez de axis puedo usar xlim o ylim si solo quiero ajustar 1 de los ejes
ax.XAxis.SecondaryLabelFormatMode = ‘manual’; %ESTO SOLUCIONA EL 31 -1!
set(gca, ‘Position’, [0.056770833333333,0.157667386609071,0.894270833333333,0.809935205183586]); %El segundo numero es el margen desde el borde inferior de la ventana y el cuarto número es la altura de los ejes
legend(‘Location’, ‘southoutside’, ‘NumColumns’, 6, ‘Orientation’, ‘horizontal’, ‘NumColumnsMode’,’manual’, ‘Interpreter’,’none’, ‘FontSize’, 8, ‘FontWeight’, ‘bold’, ‘FontName’, ‘Arial Narrow’, ‘box’, ‘on’);
set(legend, ‘IconColumnWidth’, 15, ‘Position’, [0.004678527128273,0.041036717062635,0.988802104021113,0.058815920456996]);
format long g; plot, label MATLAB Answers — New Questions
How can I prevent MATLAB from copying a SIMSCAPE model to the current folder?
Hi,
I have a simscape model that I call from different folders (that reflect different scenarios). I have a script where I add the locaiton of the master model in path and then run the model. However, each time I do this, I notice that a duplicate copy of the simscape model is created in the current folder. This is uninteded. Why does MATLAB do this? Is there a way to avoid this file duplication and keep just the original added via path?
Thanks!Hi,
I have a simscape model that I call from different folders (that reflect different scenarios). I have a script where I add the locaiton of the master model in path and then run the model. However, each time I do this, I notice that a duplicate copy of the simscape model is created in the current folder. This is uninteded. Why does MATLAB do this? Is there a way to avoid this file duplication and keep just the original added via path?
Thanks! Hi,
I have a simscape model that I call from different folders (that reflect different scenarios). I have a script where I add the locaiton of the master model in path and then run the model. However, each time I do this, I notice that a duplicate copy of the simscape model is created in the current folder. This is uninteded. Why does MATLAB do this? Is there a way to avoid this file duplication and keep just the original added via path?
Thanks! simscape, file management MATLAB Answers — New Questions
sprintf
I’m trying to get sprintf to print out a line that says:
‘for event —– stations pass the criteria test=’
where it will list the results for my stations vertically like:
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and so on. I can’t seem to get it to do this..it keeps combining my stations together something like UUU00452648BBBB….HHHHHZZZZZfffff. I’m looking at the help pages but there are few examples, any suggestions? This is what I’ve written so far:
u=char(files(keep==1));
str1=sprintf(‘for event %s stations passed criteria
test=%fn’,char(dirs(i)),char(u));
disp(str1)
where u=
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and dirs(i) corresponds to my directories. Any suggestions or help in what I’m doing wrong?
KayleI’m trying to get sprintf to print out a line that says:
‘for event —– stations pass the criteria test=’
where it will list the results for my stations vertically like:
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and so on. I can’t seem to get it to do this..it keeps combining my stations together something like UUU00452648BBBB….HHHHHZZZZZfffff. I’m looking at the help pages but there are few examples, any suggestions? This is what I’ve written so far:
u=char(files(keep==1));
str1=sprintf(‘for event %s stations passed criteria
test=%fn’,char(dirs(i)),char(u));
disp(str1)
where u=
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and dirs(i) corresponds to my directories. Any suggestions or help in what I’m doing wrong?
Kayle I’m trying to get sprintf to print out a line that says:
‘for event —– stations pass the criteria test=’
where it will list the results for my stations vertically like:
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and so on. I can’t seem to get it to do this..it keeps combining my stations together something like UUU00452648BBBB….HHHHHZZZZZfffff. I’m looking at the help pages but there are few examples, any suggestions? This is what I’ve written so far:
u=char(files(keep==1));
str1=sprintf(‘for event %s stations passed criteria
test=%fn’,char(dirs(i)),char(u));
disp(str1)
where u=
U02B.HHZf
U04B.HHZf
U05B.HHZf
U06B.HHZf
and dirs(i) corresponds to my directories. Any suggestions or help in what I’m doing wrong?
Kayle sprintf MATLAB Answers — New Questions
Grain boundary analysis of images
I have three TEM images taken at different tilt angles, each showing grain boundaries. However, some grain boundaries are missing in each image. I need a MATLAB code to overlay or merge these three images into a single image where the missing boundaries are filled in, creating a more complete representation of the grain structure.
Attached are the imagesI have three TEM images taken at different tilt angles, each showing grain boundaries. However, some grain boundaries are missing in each image. I need a MATLAB code to overlay or merge these three images into a single image where the missing boundaries are filled in, creating a more complete representation of the grain structure.
Attached are the images I have three TEM images taken at different tilt angles, each showing grain boundaries. However, some grain boundaries are missing in each image. I need a MATLAB code to overlay or merge these three images into a single image where the missing boundaries are filled in, creating a more complete representation of the grain structure.
Attached are the images grain boundary MATLAB Answers — New Questions
Why is trailing back space removed from my folder name?
I have a subfolder named .results (I give the whole name)
Allowing the user to change it I have name app.defOutLoc as default and the app.OutLoc once confirmed.
app.OutLoc = app.defOutLoc;
K>> defOutLoc
defOutLoc =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
K>> app.OutLoc
ans =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
So when I add the folder name to file name I end up saving resultsMyFileName.txt in the parent folder
Who asked you to trim my ? and what do I do now?
I’ve added at some points
% Don’t forget the ending
app.OutLoc = append(app.OutLoc,"");
but now need to chase down every time I do an assignment and add it back!
You would think it could at least be done right here where I build the name:
app.StartSessionTime = …
char(datetime(‘now’,’Format’,"_yyMMdd_HHmmss"));
baseFileName = append(app.MouseName.Value, …
app.StartSessionTime);
app.SessionFileName = append(app.OutLoc, …
"MC_",baseFileName,"_session.m");
app.SessionFile = fopen(app.SessionFileName,’at’); % allow appending
I suppose there is some special way to combine file parts instead of append where ML put it back that I missed.
OK I found fullfile() Now to get it to properly put all the pieces together. Like this?
app.SessionFileName = fullfile(app.OutLoc, append("MC_",baseFileName,"_session"),"m";I have a subfolder named .results (I give the whole name)
Allowing the user to change it I have name app.defOutLoc as default and the app.OutLoc once confirmed.
app.OutLoc = app.defOutLoc;
K>> defOutLoc
defOutLoc =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
K>> app.OutLoc
ans =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
So when I add the folder name to file name I end up saving resultsMyFileName.txt in the parent folder
Who asked you to trim my ? and what do I do now?
I’ve added at some points
% Don’t forget the ending
app.OutLoc = append(app.OutLoc,"");
but now need to chase down every time I do an assignment and add it back!
You would think it could at least be done right here where I build the name:
app.StartSessionTime = …
char(datetime(‘now’,’Format’,"_yyMMdd_HHmmss"));
baseFileName = append(app.MouseName.Value, …
app.StartSessionTime);
app.SessionFileName = append(app.OutLoc, …
"MC_",baseFileName,"_session.m");
app.SessionFile = fopen(app.SessionFileName,’at’); % allow appending
I suppose there is some special way to combine file parts instead of append where ML put it back that I missed.
OK I found fullfile() Now to get it to properly put all the pieces together. Like this?
app.SessionFileName = fullfile(app.OutLoc, append("MC_",baseFileName,"_session"),"m"; I have a subfolder named .results (I give the whole name)
Allowing the user to change it I have name app.defOutLoc as default and the app.OutLoc once confirmed.
app.OutLoc = app.defOutLoc;
K>> defOutLoc
defOutLoc =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
K>> app.OutLoc
ans =
"C:UsersCPSLabDocumentsOdorChoiceDevresults"
So when I add the folder name to file name I end up saving resultsMyFileName.txt in the parent folder
Who asked you to trim my ? and what do I do now?
I’ve added at some points
% Don’t forget the ending
app.OutLoc = append(app.OutLoc,"");
but now need to chase down every time I do an assignment and add it back!
You would think it could at least be done right here where I build the name:
app.StartSessionTime = …
char(datetime(‘now’,’Format’,"_yyMMdd_HHmmss"));
baseFileName = append(app.MouseName.Value, …
app.StartSessionTime);
app.SessionFileName = append(app.OutLoc, …
"MC_",baseFileName,"_session.m");
app.SessionFile = fopen(app.SessionFileName,’at’); % allow appending
I suppose there is some special way to combine file parts instead of append where ML put it back that I missed.
OK I found fullfile() Now to get it to properly put all the pieces together. Like this?
app.SessionFileName = fullfile(app.OutLoc, append("MC_",baseFileName,"_session"),"m"; folderfile name MATLAB Answers — New Questions
Error: Time object cannot be empty
Hi matlab community,
when i tried to generate code from simulink, there is an error:
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
Time object cannot be empty
I have tried the which codeInfo.mat -all methods, but it seems not helpful. When I restart the matlab again, it works once, but it always fails after the first run.
Best,
YutingHi matlab community,
when i tried to generate code from simulink, there is an error:
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
Time object cannot be empty
I have tried the which codeInfo.mat -all methods, but it seems not helpful. When I restart the matlab again, it works once, but it always fails after the first run.
Best,
Yuting Hi matlab community,
when i tried to generate code from simulink, there is an error:
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
Time object cannot be empty
I have tried the which codeInfo.mat -all methods, but it seems not helpful. When I restart the matlab again, it works once, but it always fails after the first run.
Best,
Yuting simulink, code generation MATLAB Answers — New Questions
MATLAB Permission Issue Across Multiple Users on Windows 10
Hello folks,
I am trying to install MATLAB as the administrator on a common use Windows 10 machine. This machine has multiple user accounts that will each be using MATLAB from their this source installation.
When MATLAB is opened from the main admin account, there is no issue. However, when MATLAB is opened from any of the other user accounts the following errors are given in the command window:
Previously accessible file "C:Program FilesMATLABR2022atoolboxlocalpathdef.m" is now inaccessible.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Undefined function ‘usejava’ for input arguments of type ‘char’.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Unrecognized function or variable ‘initdesktoputils’.
com.mathworks.mvm.exec.MvmExecutionException: internal.matlab.desktop.editor.breakpointsForAllFiles
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:413)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:263)
at com.mathworks.mlservices.MatlabDebugServices$3.run(MatlabDebugServices.java:978)
at com.mathworks.mvm.exec.NativeFutureResult.callRunnable(NativeFutureResult.java:146)
at com.mathworks.mvm.exec.NativeFutureResult.done(NativeFutureResult.java:138)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Unrecognized function or variable ‘internal.matlab.desktop.editor.breakpointsForAllFiles’.
Unrecognized function or variable ‘matlab.internal.docsearchserver.getDocCenterLanguage’.
Unrecognized function or variable ‘connector.internal.lifecycle.callConnectorStarted’.
Unrecognized function or variable ‘fullfile’.
Error occurred during background graphics initialization: Undefined function ‘fullfile’ for input arguments of type ‘char’.
Unrecognized function or variable ‘matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo’.
Unable to resolve the name ‘matlab.internal.doc.updateConnectorDocroot’.
Unable to resolve the name ‘matlab.internal.doc.updateCustomDocContent’.
Unable to resolve the name ‘matlab.internal.doc.search.configureSearchServer’.
Unrecognized function or variable ‘matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance’.
Unrecognized function or variable ‘pwd’.
Unrecognized function or variable ‘matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip’.
Unrecognized function or variable ‘matlab.internal.codingui.warmupProgrammingAids’.
I attempted to solve this issue by restoring the default pathing and saving it as pathdef.m in the C:Program FilesMATLABR2022atoolboxlocal folder:
restoredefaultpath; matlabrc
savepath C:Program FilesMATLABR2022atoolboxlocalpathdef.m
This would work for the current user I was logged in as, but when I switched to another user the same issue would occur. I can subvert this issue but forcing MATLAB to be run as Administrator upon startup, but this is not ideal for the security levels required on this machine.
I figure this issue has something to do with user permission levels, but I am unsure which files / directories and what persmission settings I should set up for my configuration. Any help would be greatly appreciated! Thank you.Hello folks,
I am trying to install MATLAB as the administrator on a common use Windows 10 machine. This machine has multiple user accounts that will each be using MATLAB from their this source installation.
When MATLAB is opened from the main admin account, there is no issue. However, when MATLAB is opened from any of the other user accounts the following errors are given in the command window:
Previously accessible file "C:Program FilesMATLABR2022atoolboxlocalpathdef.m" is now inaccessible.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Undefined function ‘usejava’ for input arguments of type ‘char’.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Unrecognized function or variable ‘initdesktoputils’.
com.mathworks.mvm.exec.MvmExecutionException: internal.matlab.desktop.editor.breakpointsForAllFiles
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:413)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:263)
at com.mathworks.mlservices.MatlabDebugServices$3.run(MatlabDebugServices.java:978)
at com.mathworks.mvm.exec.NativeFutureResult.callRunnable(NativeFutureResult.java:146)
at com.mathworks.mvm.exec.NativeFutureResult.done(NativeFutureResult.java:138)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Unrecognized function or variable ‘internal.matlab.desktop.editor.breakpointsForAllFiles’.
Unrecognized function or variable ‘matlab.internal.docsearchserver.getDocCenterLanguage’.
Unrecognized function or variable ‘connector.internal.lifecycle.callConnectorStarted’.
Unrecognized function or variable ‘fullfile’.
Error occurred during background graphics initialization: Undefined function ‘fullfile’ for input arguments of type ‘char’.
Unrecognized function or variable ‘matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo’.
Unable to resolve the name ‘matlab.internal.doc.updateConnectorDocroot’.
Unable to resolve the name ‘matlab.internal.doc.updateCustomDocContent’.
Unable to resolve the name ‘matlab.internal.doc.search.configureSearchServer’.
Unrecognized function or variable ‘matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance’.
Unrecognized function or variable ‘pwd’.
Unrecognized function or variable ‘matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip’.
Unrecognized function or variable ‘matlab.internal.codingui.warmupProgrammingAids’.
I attempted to solve this issue by restoring the default pathing and saving it as pathdef.m in the C:Program FilesMATLABR2022atoolboxlocal folder:
restoredefaultpath; matlabrc
savepath C:Program FilesMATLABR2022atoolboxlocalpathdef.m
This would work for the current user I was logged in as, but when I switched to another user the same issue would occur. I can subvert this issue but forcing MATLAB to be run as Administrator upon startup, but this is not ideal for the security levels required on this machine.
I figure this issue has something to do with user permission levels, but I am unsure which files / directories and what persmission settings I should set up for my configuration. Any help would be greatly appreciated! Thank you. Hello folks,
I am trying to install MATLAB as the administrator on a common use Windows 10 machine. This machine has multiple user accounts that will each be using MATLAB from their this source installation.
When MATLAB is opened from the main admin account, there is no issue. However, when MATLAB is opened from any of the other user accounts the following errors are given in the command window:
Previously accessible file "C:Program FilesMATLABR2022atoolboxlocalpathdef.m" is now inaccessible.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Undefined function ‘usejava’ for input arguments of type ‘char’.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this
warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Unrecognized function or variable ‘initdesktoputils’.
com.mathworks.mvm.exec.MvmExecutionException: internal.matlab.desktop.editor.breakpointsForAllFiles
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:413)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:263)
at com.mathworks.mlservices.MatlabDebugServices$3.run(MatlabDebugServices.java:978)
at com.mathworks.mvm.exec.NativeFutureResult.callRunnable(NativeFutureResult.java:146)
at com.mathworks.mvm.exec.NativeFutureResult.done(NativeFutureResult.java:138)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Unrecognized function or variable ‘internal.matlab.desktop.editor.breakpointsForAllFiles’.
Unrecognized function or variable ‘matlab.internal.docsearchserver.getDocCenterLanguage’.
Unrecognized function or variable ‘connector.internal.lifecycle.callConnectorStarted’.
Unrecognized function or variable ‘fullfile’.
Error occurred during background graphics initialization: Undefined function ‘fullfile’ for input arguments of type ‘char’.
Unrecognized function or variable ‘matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo’.
Unable to resolve the name ‘matlab.internal.doc.updateConnectorDocroot’.
Unable to resolve the name ‘matlab.internal.doc.updateCustomDocContent’.
Unable to resolve the name ‘matlab.internal.doc.search.configureSearchServer’.
Unrecognized function or variable ‘matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance’.
Unrecognized function or variable ‘pwd’.
Unrecognized function or variable ‘matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip’.
Unrecognized function or variable ‘matlab.internal.codingui.warmupProgrammingAids’.
I attempted to solve this issue by restoring the default pathing and saving it as pathdef.m in the C:Program FilesMATLABR2022atoolboxlocal folder:
restoredefaultpath; matlabrc
savepath C:Program FilesMATLABR2022atoolboxlocalpathdef.m
This would work for the current user I was logged in as, but when I switched to another user the same issue would occur. I can subvert this issue but forcing MATLAB to be run as Administrator upon startup, but this is not ideal for the security levels required on this machine.
I figure this issue has something to do with user permission levels, but I am unsure which files / directories and what persmission settings I should set up for my configuration. Any help would be greatly appreciated! Thank you. matlab, installation MATLAB Answers — New Questions
Do packages replace or supplement toolboxes from R2024b?
In the 2024b release notes: "A package is a collection of MATLAB® code, related files, and a package definition file." There’s a new set of tools to create and manage packages.
On the other hand, from the help center: "You can package MATLAB® files to create a toolbox to share with others. These files can include MATLAB code, data, apps, examples, and documentation. When you create a toolbox, MATLAB generates a single installation file (.mltbx) that enables you or others to install your toolbox." There’s a tool for packaging toolboxes.
These seem remarkably similar concepts, which makes me wonder why both things now exist. Do packages simply replace user-written toolboxes, or do toolboxes retain some useful features which are not shared by packages? Are there situations where I should choose one over the other, or is the newer mechanism superior in general?
It looks like packages can analyse dependencies and pull needed packages along with them, and maybe they integrate with repositories better than toolboxes, but I might have missed something else significant. As far as I can see, the package documentation ignores toolboxes.
It would be nice to understand what is happening here, and which mechanism I should adopt for distributing related code files.
(Note that MATLAB used the term package in a different way in the past, to mean what is now a namespace. I’m asking about the new package mechanism as of 2024b.)In the 2024b release notes: "A package is a collection of MATLAB® code, related files, and a package definition file." There’s a new set of tools to create and manage packages.
On the other hand, from the help center: "You can package MATLAB® files to create a toolbox to share with others. These files can include MATLAB code, data, apps, examples, and documentation. When you create a toolbox, MATLAB generates a single installation file (.mltbx) that enables you or others to install your toolbox." There’s a tool for packaging toolboxes.
These seem remarkably similar concepts, which makes me wonder why both things now exist. Do packages simply replace user-written toolboxes, or do toolboxes retain some useful features which are not shared by packages? Are there situations where I should choose one over the other, or is the newer mechanism superior in general?
It looks like packages can analyse dependencies and pull needed packages along with them, and maybe they integrate with repositories better than toolboxes, but I might have missed something else significant. As far as I can see, the package documentation ignores toolboxes.
It would be nice to understand what is happening here, and which mechanism I should adopt for distributing related code files.
(Note that MATLAB used the term package in a different way in the past, to mean what is now a namespace. I’m asking about the new package mechanism as of 2024b.) In the 2024b release notes: "A package is a collection of MATLAB® code, related files, and a package definition file." There’s a new set of tools to create and manage packages.
On the other hand, from the help center: "You can package MATLAB® files to create a toolbox to share with others. These files can include MATLAB code, data, apps, examples, and documentation. When you create a toolbox, MATLAB generates a single installation file (.mltbx) that enables you or others to install your toolbox." There’s a tool for packaging toolboxes.
These seem remarkably similar concepts, which makes me wonder why both things now exist. Do packages simply replace user-written toolboxes, or do toolboxes retain some useful features which are not shared by packages? Are there situations where I should choose one over the other, or is the newer mechanism superior in general?
It looks like packages can analyse dependencies and pull needed packages along with them, and maybe they integrate with repositories better than toolboxes, but I might have missed something else significant. As far as I can see, the package documentation ignores toolboxes.
It would be nice to understand what is happening here, and which mechanism I should adopt for distributing related code files.
(Note that MATLAB used the term package in a different way in the past, to mean what is now a namespace. I’m asking about the new package mechanism as of 2024b.) package, toolbox MATLAB Answers — New Questions
The value of AI: How Microsoft’s customers and partners are creating differentiated AI solutions to reinvent how they do business today
Organizational leaders in every industry around the world are evaluating ways AI can unlock opportunities, drive pragmatic innovation and yield value across their business. At Microsoft, we are dedicated to helping our customers accelerate AI Transformation by empowering human ambition with Copilots and agents, developing differentiated AI solutions and building scalable cybersecurity foundations. At Microsoft Ignite we made over 100 announcements that bring the latest innovation directly to our customers and partners, and shared how Microsoft is the only technology leader to offer three distinct AI platforms for them to build AI solutions:
- Copilot is your UI for AI, with Copilot Studio enabling low-code creation of agents and extensibility to your data.
- Azure AI Foundry is the only AI app server for building real-world, world-class, AI-native applications.
- Microsoft Fabric is the AI data platform that provides one common way to reason over your data —no matter where it lives.
All three of these platforms are open and work synchronously to enable the development of modern AI solutions; and each is surrounded by our world-class security offerings so leaders can move their AI-first strategies forward with confidence.
As we look ahead to what we can achieve together, I remain inspired by the work we are doing today. Below are a handful of the many stories from the past quarter highlighting the differentiated AI solutions our customers and partners are driving to move business forward across industries and realize pragmatic value. Their success clearly illustrates that real results can be harnessed from AI today, and it is changing the way organizations do business.
To power its industrial IoT and AI platform, ABB Group leveraged Microsoft Azure OpenAI Service to create Genix Copilot: a generative AI-powered analytics suite aimed at solving some of the most complex industrial problems. The solution helps customers analyze key functions in their operations —such as asset and process performance, energy optimization and emission monitoring — with real-time operational insights. As a result, customers are seeing up to 35% savings in operations and maintenance, and up to 20% improvement in energy and emission optimization. ABB also saw an 80% decrease in service calls with the self-service capabilities of Genix Copilot.
Serving government healthcare agencies across the US, Acentra Health turned to Microsoft to help introduce the latest AI capabilities that maximize talent and cut costs in a secure, HIPAA-compliant manner. Using Azure OpenAI Service, the company developed MedScribe — an AI-powered tool reducing the time specially trained nursing staff spend on appeal determination letters. This innovation saved 11,000 nursing hours and nearly $800,000, reducing time spent on each appeal determination letter by about 50%. MedScribe also significantly enhanced operational efficiency, enabling nurses to process 20 to 30 letters daily with a 99% approval rate.
To ease challenges for small farmers, Romanian agribusiness group Agricover revolutionized access to credit by developing MyAgricover. Built with help from partner Avaelgo, the scalable digital platform utilizes Microsoft Azure, Azure API Management and Microsoft Fabric to automate the loan process and enable faster approvals and disbursements. This has empowered small farmers to grow their businesses and receive faster access to financing by reducing loan approval time by 90 percent — from 10 working days to a maximum of 24 hours.
Building on its status as a world-class airline with a strong Indian identity, Air India sought ways to enhance customer support while managing costs. By developing AI.g, one of the industry’s first generative AI virtual assistants built on Azure OpenAI Service, the airline upgraded the customer experience. Today, 97% of customer queries are handled with full automation, resulting in millions of dollars of support costs saved and improved customer satisfaction — further positioning the airline for continued growth.
BMW Group aimed to enhance data delivery efficiency and improve vehicle development and prototyping cycles by implementing a Mobile Data Recorder (MDR) solution with Azure App Service, Azure AI and Azure Kubernetes Service (AKS). The solution achieved 10 times more efficient data delivery, significantly improved data accessibility and elevated overall development quality. The MDR monitors and records more than 10,000 signals twice per second in every vehicle of BMW’s fleet of 3,500 development cars and transmits data within seconds to a centralized cloud back end. Using Azure AI Foundry and Azure OpenAI Service, BMW Group created an MDR copilot fueled by GPT-4o. Engineers can now chat with the interface using natural language, and the MDR copilot converts the conversations into KQL queries, simplifying access to technical insights. Moving from on-premises tools to a cloud-based system with faster data management also helps engineers troubleshoot in real time. The vehicle data covered by the system has doubled, and data delivery and analysis happen 10 times faster.
Coles Group modernized its logistics and administrative applications using Microsoft Azure Stack HCI to scale its edge AI capabilities and improve efficiency and customer experience across its 1,800 stores. By expanding its Azure Stack HCI footprint from two stores to over 500, Coles achieved a six-fold increase in the pace of application deployment, significantly enhancing operational efficiency and enabling rapid innovation without disrupting workloads. The retailer is also using Azure Machine Learning to train and develop edge AI models, speeding up data annotation time for training models by 50%.
Multinational advertising and media company Dentsu wanted to speed time to insights for its team of data scientists and media analysts to support its media planning and budget optimization. Using Microsoft Azure AI Foundry and Azure OpenAI Service, Dentsu developers built a predictive analytics copilot that uses conversational chat and draws on deep expertise in media forecasting, budgeting and optimization. This AI-driven tool has reduced time to media insights for employees and clients by 90% and cut analysis costs.
To overcome the limitations of its current systems, scale operations and automate processes across millions of workflows, Docusign created the Intelligent Agreement Management (IAM) platform on Azure. Using Azure AI, Azure Cosmos DB, Azure Logic Apps and AKS, the platform transforms agreement data into actionable insights to enhance productivity and accelerate contract review cycles. IAM also ensures better collaboration and unification across business systems to provide secure solutions tailored to diverse customer needs. For example, its customer KPC Private funds reported a 70% reduction in time and resources dedicated to agreement processes.
Emirates Global Aluminium (EGA) transformed its manufacturing operations by leveraging a hybrid environment with Azure Arc, Azure Stack HCI and Azure Kubernetes Service. This digital manufacturing platform resulted in 86% cost savings for AI image and video analytics and a 13-fold improvement in AI response times. The seamless hybrid cloud architecture has enhanced EGA’s operational efficiency and agility, supporting its Industry 4.0 transformation strategy.
EY collaborated with Microsoft to enhance the inclusivity of AI development using Azure AI Studio. By involving neurodivergent technologists from EY’s Neuro-Diverse Centers of Excellence, they improved the accessibility and productivity of AI tools, resulting in more inclusive AI solutions, fostering innovation and ensuring that AI tools unlock the potential of all users. With an estimated 20% of the global workforce identifying as neurodivergent, inclusive AI solutions are crucial for maximizing creativity and productivity. Neurodivergent EY technologists also collaborated with Microsoft developers to make Azure AI Foundry more inclusive and help all users work productively to create innovative AI solutions.
Colombian household appliance manufacturer Haceb integrated AI to optimize processes, reduce costs and improve service quality. Using Microsoft Copilot Studio and Azure OpenAI Service, the company created a virtual technical support assistant, saving its 245 technicians 5 minutes per visit — a total of 5,000 minutes saved daily. This AI solution has enhanced efficiency and boosted customer satisfaction by allowing for faster issue resolution. Haceb’s AI adoption has also empowered employees, boosted productivity and positioned the company as a leader in AI innovation in Colombia.
To better serve its global patients, Operation Smile — in collaboration with partner Squadra — leveraged Azure AI, Machine Learning and Microsoft Fabric to develop an AI-powered solution to predict surgical outcomes and optimize resource allocation. This innovation resulted in a 30% increase in surgical efficiency, a 90% reduction in translation errors and improved patient outcomes. Additionally, report generation is now up to 95% quicker, and repeated medical events have decreased by 15%, enabling Operation Smile to provide better care to more children worldwide.
Ontada — a McKesson business dedicated to oncology data and evidence, clinical education and point-of-care technologies — needed a way to generate key insights across 150 million unstructured oncology documents. Using Microsoft Azure AI and Azure OpenAI Service, Ontada developed a data platform solution called ON.Genuity to provide AI-driven insights into the patient journey, enhance patient trial matching and identify care gaps. The company also implemented large language models to target nearly 100 critical oncology data elements across 39 cancer types, enabling the company to analyze an estimated 70% of previously inaccessible data, reduce processing time by 75% and accelerate product time-to-market from months to just one week.
As the UK’s largest pet care company, Pets at Home sought a way to combat fraud across its retail operations — particularly as its online business continued to grow. Working closely with its fraud team, it adopted Copilot Studio to develop an AI agent that quickly identifies suspicious transactions. The agent autonomously gathers relevant information, performs analysis and shares it with a fraud agent to enable a manual, data-intensive investigative process while ensuring a human remains in the loop. With this low-code agent extending and seamlessly integrating into existing systems, the company’s fraud department can act more quickly; what used to take 20 to 30 minutes is now handled by the AI agent within seconds. The company is identifying fraud 10 times faster and is processing 20 times more cases a day. Now, the company can operate at scale with speed, efficiency and accuracy — with savings expected to be in the seven figures as it continues to build more agents.
Revenue Grid, a technology company specializing in sales engagement and revenue optimization solutions, partnered with Cloud Services to modernize its data infrastructure and develop a unified data warehouse capable of handling unstructured, semi-structured and structured data. By migrating to Microsoft Fabric, Revenue Grid can now deliver data-powered revenue intelligence, driven by a unified platform, elastic scalability, enhanced analytics capabilities and streamlined operations. Revenue Grid has reduced infrastructure costs by 60% while enhancing its analytical capabilities to improve real-time data processing, empowering sales teams with accurate and diverse data.
To better manage and integrate employee data across diverse regions and systems, UST built a comprehensive Employee Data platform on Microsoft Fabric. In under a year, UST migrated 20 years of employee data with all security measures to enhance data accessibility and employee productivity. The Meta Data Driven Integration (MDDI) framework in Fabric also helped the company cut data ingestion time by 50% so employees can focus more on analysis than preparation. As a result of this implementation, the company has seen an increase in collaboration and innovation from employees, helping put its values into action.
The Microsoft Commercial Marketplace offers millions of customers worldwide a convenient place to find, try and buy software and services across 140 countries. As a Marketplace partner, WeTransact is helping independent software vendors (ISVs) list and transact their software solutions — and find opportunities for co-selling and extending their reach to enterprise customers through development of the WeTransact platform. Powered by Azure OpenAI Service, the platform is changing the way partnerships are being built by using AI pairing to facilitate a “plug and play” reseller network. More than 300 ISVs worldwide have joined the Microsoft Commercial Marketplace using the WeTransact platform, cutting their time to publish by 75%.
The opportunity for AI to create value is no longer an ambition for the future — it is happening now, and organizational leaders across industries are investing in AI-first strategies to change the way they do business. We believe AI should empower human achievement and enrich the lives of employees; and we are uniquely differentiated to help you accelerate your AI Transformation responsibly and securely. Choosing the right technology provider comes down to trust, and I look forward to what we will achieve together as we partner with you on your AI journey.
The post The value of AI: How Microsoft’s customers and partners are creating differentiated AI solutions to reinvent how they do business today appeared first on The Official Microsoft Blog.
Organizational leaders in every industry around the world are evaluating ways AI can unlock opportunities, drive pragmatic innovation and yield value across their business. At Microsoft, we are dedicated to helping our customers accelerate AI Transformation by empowering human ambition with Copilots and agents, developing differentiated AI solutions and building scalable cybersecurity foundations. At Microsoft…
The post The value of AI: How Microsoft’s customers and partners are creating differentiated AI solutions to reinvent how they do business today appeared first on The Official Microsoft Blog.Read More
Convert .mat file to .dcm or .cdfx file
Is there a way to convert data stored in a .mat file to a .cdfx file?
The .mat file contains parameter data, including some parameters that are 3D matrices.
I use Silver to load a DLL, and Silver supports calibrating the DLL using the following five formats:
I am looking for a tool or a script that can do the conversion from .mat to any of the above mentioned formats without losing any information.Is there a way to convert data stored in a .mat file to a .cdfx file?
The .mat file contains parameter data, including some parameters that are 3D matrices.
I use Silver to load a DLL, and Silver supports calibrating the DLL using the following five formats:
I am looking for a tool or a script that can do the conversion from .mat to any of the above mentioned formats without losing any information. Is there a way to convert data stored in a .mat file to a .cdfx file?
The .mat file contains parameter data, including some parameters that are 3D matrices.
I use Silver to load a DLL, and Silver supports calibrating the DLL using the following five formats:
I am looking for a tool or a script that can do the conversion from .mat to any of the above mentioned formats without losing any information. calibration, cdfx, dcm, mat file MATLAB Answers — New Questions