Category: Matlab
Category Archives: Matlab
why is the data different after denormalization
I used ARESLAB on matlab and obtained an R2 for train and test greater than 99.0% with a MAE and MSE less than 10-3. Initially, I had normalized the database with Zcore, so after getting these results, I wanted to plot them so I wanted to denormalize the data. But the results obtained sometimes gave predictive variables different from those measured, even though the R2 was good and the errors were relatively good.I used ARESLAB on matlab and obtained an R2 for train and test greater than 99.0% with a MAE and MSE less than 10-3. Initially, I had normalized the database with Zcore, so after getting these results, I wanted to plot them so I wanted to denormalize the data. But the results obtained sometimes gave predictive variables different from those measured, even though the R2 was good and the errors were relatively good. I used ARESLAB on matlab and obtained an R2 for train and test greater than 99.0% with a MAE and MSE less than 10-3. Initially, I had normalized the database with Zcore, so after getting these results, I wanted to plot them so I wanted to denormalize the data. But the results obtained sometimes gave predictive variables different from those measured, even though the R2 was good and the errors were relatively good. ai mars areslab MATLAB Answers — New Questions
How should I plot a square wave signal by utilising fourier series?
How should I code this square wave by utlising fourier series signal? I do not have any idea how to do so.
The amplitude and period of the graph is both 1.How should I code this square wave by utlising fourier series signal? I do not have any idea how to do so.
The amplitude and period of the graph is both 1. How should I code this square wave by utlising fourier series signal? I do not have any idea how to do so.
The amplitude and period of the graph is both 1. student, homework, square wave, fourier series MATLAB Answers — New Questions
I can’t see the settling time in the bilevel measurements. How do I fix this?
Post Content Post Content bilevel measurements, settling time MATLAB Answers — New Questions
Can’t bring up matlab
Can’t bring up matlab. Every time I open the app I have to activate it. Now that it is activated, nothing more happens.Can’t bring up matlab. Every time I open the app I have to activate it. Now that it is activated, nothing more happens. Can’t bring up matlab. Every time I open the app I have to activate it. Now that it is activated, nothing more happens. cant open MATLAB Answers — New Questions
Improving personal Fourier Interpolation Model
Hi i’m trying to interpolate a cyclical set of data through a fourier transform model. I can’t just use intrpft because i need the coefficients (amplitude, frequency and phase) to project the wave equation into future. I attach the program.
Basically i use the FFT to find n cycles amplitude and frequency. Then i sync each equation with the data. At the end i superimpose all the n cycles to find the wave equation.
I reached an R2 of 0.71.
The model interpolates very well frequencies and phases but there is some problems with amplitudes i guess.
I wonder if somebody can improve precision further.
ThanksHi i’m trying to interpolate a cyclical set of data through a fourier transform model. I can’t just use intrpft because i need the coefficients (amplitude, frequency and phase) to project the wave equation into future. I attach the program.
Basically i use the FFT to find n cycles amplitude and frequency. Then i sync each equation with the data. At the end i superimpose all the n cycles to find the wave equation.
I reached an R2 of 0.71.
The model interpolates very well frequencies and phases but there is some problems with amplitudes i guess.
I wonder if somebody can improve precision further.
Thanks Hi i’m trying to interpolate a cyclical set of data through a fourier transform model. I can’t just use intrpft because i need the coefficients (amplitude, frequency and phase) to project the wave equation into future. I attach the program.
Basically i use the FFT to find n cycles amplitude and frequency. Then i sync each equation with the data. At the end i superimpose all the n cycles to find the wave equation.
I reached an R2 of 0.71.
The model interpolates very well frequencies and phases but there is some problems with amplitudes i guess.
I wonder if somebody can improve precision further.
Thanks fourier, interpolation MATLAB Answers — New Questions
Ordering the elements of cells uniquely
I have n cells. Each cell contains a couple of numbers. I need to uniquely order the numbers and save it in a matrix. How is that possible?I have n cells. Each cell contains a couple of numbers. I need to uniquely order the numbers and save it in a matrix. How is that possible? I have n cells. Each cell contains a couple of numbers. I need to uniquely order the numbers and save it in a matrix. How is that possible? cell arrays MATLAB Answers — New Questions
vcredist_x86.exe cannot be found
I’m receiving the following error that prevents MATLAB R2010a (x64) from starting:
=========
*Windows cannot find ‘C:Program FilesMATLABR2010abinwin32vcredist_x86.exe’. Make sure you typed the name correctly, and then try again.*
=========
I have noticed that it happens when Windows Update detects that there are updates available for Windows. I doesn’t install them, just detects that they exists.
The running instances of matlab continue running without any error but I cannot start further instances. Even if I quit from all the running Matlab instances and try to start a new instance the error persist. The only way around this I found is to restart the computer. However, I am fed up of that. WTF is going on here?
I’m using Windows 7 Pro x64I’m receiving the following error that prevents MATLAB R2010a (x64) from starting:
=========
*Windows cannot find ‘C:Program FilesMATLABR2010abinwin32vcredist_x86.exe’. Make sure you typed the name correctly, and then try again.*
=========
I have noticed that it happens when Windows Update detects that there are updates available for Windows. I doesn’t install them, just detects that they exists.
The running instances of matlab continue running without any error but I cannot start further instances. Even if I quit from all the running Matlab instances and try to start a new instance the error persist. The only way around this I found is to restart the computer. However, I am fed up of that. WTF is going on here?
I’m using Windows 7 Pro x64 I’m receiving the following error that prevents MATLAB R2010a (x64) from starting:
=========
*Windows cannot find ‘C:Program FilesMATLABR2010abinwin32vcredist_x86.exe’. Make sure you typed the name correctly, and then try again.*
=========
I have noticed that it happens when Windows Update detects that there are updates available for Windows. I doesn’t install them, just detects that they exists.
The running instances of matlab continue running without any error but I cannot start further instances. Even if I quit from all the running Matlab instances and try to start a new instance the error persist. The only way around this I found is to restart the computer. However, I am fed up of that. WTF is going on here?
I’m using Windows 7 Pro x64 MATLAB Answers — New Questions
How to use for loop for iterations.
for i=1:3
a=rand(3,1);
b=5.*(a.^2);
c=[a b]
end
At the end i get a value of c that is of the order of 3×2, that is the final value that comes after3rd iteration. So value of c gets changed in each iteration.
How I can get all value of c of the loop.
In other words i want to get c of the order 9×2 (3 iterations and three values for each iteration).for i=1:3
a=rand(3,1);
b=5.*(a.^2);
c=[a b]
end
At the end i get a value of c that is of the order of 3×2, that is the final value that comes after3rd iteration. So value of c gets changed in each iteration.
How I can get all value of c of the loop.
In other words i want to get c of the order 9×2 (3 iterations and three values for each iteration). for i=1:3
a=rand(3,1);
b=5.*(a.^2);
c=[a b]
end
At the end i get a value of c that is of the order of 3×2, that is the final value that comes after3rd iteration. So value of c gets changed in each iteration.
How I can get all value of c of the loop.
In other words i want to get c of the order 9×2 (3 iterations and three values for each iteration). for loop, iteration MATLAB Answers — New Questions
linsolve behaviour for SYM true and POSDEF false
Does linsolve use an LDL factoring if the options are SYM true and POSDEF false?Does linsolve use an LDL factoring if the options are SYM true and POSDEF false? Does linsolve use an LDL factoring if the options are SYM true and POSDEF false? linsolve behaviour MATLAB Answers — New Questions
Hello can anyone give me the codes for text to speech conversion and also speech recognition thank you
Need matlab code for text to speech conversion and speech recognitionNeed matlab code for text to speech conversion and speech recognition Need matlab code for text to speech conversion and speech recognition text to speech, speech recognition MATLAB Answers — New Questions
How can I fix the error that says “Unable to create a valid geometry. More than two triangles of the input triangulation share the same edge.”?
Appears when importing 3D models using the PDE toolboxAppears when importing 3D models using the PDE toolbox Appears when importing 3D models using the PDE toolbox model import MATLAB Answers — New Questions
Error:Invalid workspace variable specified as workspace input in ‘HW02_2024_SimulinkModel/From Workspace’. Time values must be non-decreasing.
Error:Invalid workspace variable specified as workspace input in ‘HW02_2024_SimulinkModel/From Workspace’. Time values must be non-decreasing. I am importing a array having values of vel and time the matriz i am importing is of [6001×2] double type.Error:Invalid workspace variable specified as workspace input in ‘HW02_2024_SimulinkModel/From Workspace’. Time values must be non-decreasing. I am importing a array having values of vel and time the matriz i am importing is of [6001×2] double type. Error:Invalid workspace variable specified as workspace input in ‘HW02_2024_SimulinkModel/From Workspace’. Time values must be non-decreasing. I am importing a array having values of vel and time the matriz i am importing is of [6001×2] double type. array, model, matlab, simulink MATLAB Answers — New Questions
LSTM model predicts wrong values?
Hello, Im trying machine learning with LSTM and unsupervised learning.
Here is trained LSTM network, and I checked this model works.
numHiddenUnits = 100;
Layers = [ …
sequenceInputLayer(1, Normalization="zscore")
lstmLayer(numHiddenUnits,’OutputMode’,’sequence’)
swishLayer
fullyConnectedLayer(1)
myRegressionLayer(‘mae’)
];
options = trainingOptions(‘adam’, …
‘MaxEpochs’,40,…
‘MiniBatchSize’,32,…
‘GradientThreshold’,1,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’, ‘none’);
%XTrain is (n*t sequence data)
%YTrain is (n*t sequence data)
[net, ~] = trainNetwork(XTrain, YTrain, Layers, options);
However, if the model predicts values with inputs in other environment,
%XTrain2 is (n*t sequence data in different environment from XTrain and YTrain environment for unsupervised learning)
dist = predict(net, XTrain2);
only head of sequence of output is lower than others as shown below.
Here is input data, and it doesn’t seem that there are differents of value between head of sequence and other parts.
In comparison with true data, this head of sequence of output is wrong value, and other sequence parts are comparatively correct values.
I’m sorry for my poor English. Can anyone help me what to do? Thank you.Hello, Im trying machine learning with LSTM and unsupervised learning.
Here is trained LSTM network, and I checked this model works.
numHiddenUnits = 100;
Layers = [ …
sequenceInputLayer(1, Normalization="zscore")
lstmLayer(numHiddenUnits,’OutputMode’,’sequence’)
swishLayer
fullyConnectedLayer(1)
myRegressionLayer(‘mae’)
];
options = trainingOptions(‘adam’, …
‘MaxEpochs’,40,…
‘MiniBatchSize’,32,…
‘GradientThreshold’,1,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’, ‘none’);
%XTrain is (n*t sequence data)
%YTrain is (n*t sequence data)
[net, ~] = trainNetwork(XTrain, YTrain, Layers, options);
However, if the model predicts values with inputs in other environment,
%XTrain2 is (n*t sequence data in different environment from XTrain and YTrain environment for unsupervised learning)
dist = predict(net, XTrain2);
only head of sequence of output is lower than others as shown below.
Here is input data, and it doesn’t seem that there are differents of value between head of sequence and other parts.
In comparison with true data, this head of sequence of output is wrong value, and other sequence parts are comparatively correct values.
I’m sorry for my poor English. Can anyone help me what to do? Thank you. Hello, Im trying machine learning with LSTM and unsupervised learning.
Here is trained LSTM network, and I checked this model works.
numHiddenUnits = 100;
Layers = [ …
sequenceInputLayer(1, Normalization="zscore")
lstmLayer(numHiddenUnits,’OutputMode’,’sequence’)
swishLayer
fullyConnectedLayer(1)
myRegressionLayer(‘mae’)
];
options = trainingOptions(‘adam’, …
‘MaxEpochs’,40,…
‘MiniBatchSize’,32,…
‘GradientThreshold’,1,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’, ‘none’);
%XTrain is (n*t sequence data)
%YTrain is (n*t sequence data)
[net, ~] = trainNetwork(XTrain, YTrain, Layers, options);
However, if the model predicts values with inputs in other environment,
%XTrain2 is (n*t sequence data in different environment from XTrain and YTrain environment for unsupervised learning)
dist = predict(net, XTrain2);
only head of sequence of output is lower than others as shown below.
Here is input data, and it doesn’t seem that there are differents of value between head of sequence and other parts.
In comparison with true data, this head of sequence of output is wrong value, and other sequence parts are comparatively correct values.
I’m sorry for my poor English. Can anyone help me what to do? Thank you. lstm, machine learning MATLAB Answers — New Questions
Can somebody solve this question. I’ve been trying for 2 hours straight. Didn’t get it yet
Find the volume of the solid generated by revolving about the x-axis the region bounded by the curve y = sqrt(x) , the x-axis, and the line y= x-2.Find the volume of the solid generated by revolving about the x-axis the region bounded by the curve y = sqrt(x) , the x-axis, and the line y= x-2. Find the volume of the solid generated by revolving about the x-axis the region bounded by the curve y = sqrt(x) , the x-axis, and the line y= x-2. volume of solid of revolution, area between curves, axis of revolution MATLAB Answers — New Questions
How can we couple MATLAB and Aspen Exchanger Design and Rating?
Dear MATLAB users,
it would be of great interest to couple MATLAB and Aspen EDR, so that at different conditions, different heat exchangers could be designed. Does anybody have experience with that? Thank you all in advance!Dear MATLAB users,
it would be of great interest to couple MATLAB and Aspen EDR, so that at different conditions, different heat exchangers could be designed. Does anybody have experience with that? Thank you all in advance! Dear MATLAB users,
it would be of great interest to couple MATLAB and Aspen EDR, so that at different conditions, different heat exchangers could be designed. Does anybody have experience with that? Thank you all in advance! aspen edr, heat exchanger design MATLAB Answers — New Questions
I can’t get engine instance when I run my java program by window service
My software system is developed using Java. One function of the program is to send variables to the MATLAB window. When I run my Java program in the development environment or command-line window, it works well and sends variables correctly to the MATLAB window. But when I start my system with a window operating system service or scheduled task, variables cannot be sent to the MATLAB window. I carefully checked and found that when running my software program using the window service, I cannot retrieve the engine instance currently running in the MATLAB window.My software system is developed using Java. One function of the program is to send variables to the MATLAB window. When I run my Java program in the development environment or command-line window, it works well and sends variables correctly to the MATLAB window. But when I start my system with a window operating system service or scheduled task, variables cannot be sent to the MATLAB window. I carefully checked and found that when running my software program using the window service, I cannot retrieve the engine instance currently running in the MATLAB window. My software system is developed using Java. One function of the program is to send variables to the MATLAB window. When I run my Java program in the development environment or command-line window, it works well and sends variables correctly to the MATLAB window. But when I start my system with a window operating system service or scheduled task, variables cannot be sent to the MATLAB window. I carefully checked and found that when running my software program using the window service, I cannot retrieve the engine instance currently running in the MATLAB window. engine, window service MATLAB Answers — New Questions
How to get a and b using fit(x,y,power1)
I have XY data and fit it with y=ax^b. I use f = fit(x,y,power1) but don’t know how to get "a" and "b" to continue working with them. f(1) gives a, [a,b] = fit(x,y,power1) doesn’t help also.I have XY data and fit it with y=ax^b. I use f = fit(x,y,power1) but don’t know how to get "a" and "b" to continue working with them. f(1) gives a, [a,b] = fit(x,y,power1) doesn’t help also. I have XY data and fit it with y=ax^b. I use f = fit(x,y,power1) but don’t know how to get "a" and "b" to continue working with them. f(1) gives a, [a,b] = fit(x,y,power1) doesn’t help also. curve fitting toolbox MATLAB Answers — New Questions
When I run Matlab on Ubuntu 20.04.1 and load Matlab project, Matlab crashes
WHen I launch Matlab with terminal command, it shows some failure. I don’t know if they are relevant to the issue?
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driverWHen I launch Matlab with terminal command, it shows some failure. I don’t know if they are relevant to the issue?
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver WHen I launch Matlab with terminal command, it shows some failure. I don’t know if they are relevant to the issue?
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver #matlab, #ubuntu MATLAB Answers — New Questions
Dot indexing is not supported for variables of this type.
I get this error while running the code.
Dot indexing is not supported for variables of this type.
Error in Fun_Objective (line 23)
Conv = Aspen.Tree.FindNode("DataResults SummaryRun-StatusOutputPER_ERROR").Value; %Convergence
I am getting an error suddenly after certain interations ( sometimes 1/5/20 iterations) that dot indexing not supported in the statement above. When I go and check the aspen file it just shows required input complete, but does not run. At the start I have reinit the code and I do run the engine, but it still shows required input complete, and the simulation does not run. Does anyone face a similar problem like this?I get this error while running the code.
Dot indexing is not supported for variables of this type.
Error in Fun_Objective (line 23)
Conv = Aspen.Tree.FindNode("DataResults SummaryRun-StatusOutputPER_ERROR").Value; %Convergence
I am getting an error suddenly after certain interations ( sometimes 1/5/20 iterations) that dot indexing not supported in the statement above. When I go and check the aspen file it just shows required input complete, but does not run. At the start I have reinit the code and I do run the engine, but it still shows required input complete, and the simulation does not run. Does anyone face a similar problem like this? I get this error while running the code.
Dot indexing is not supported for variables of this type.
Error in Fun_Objective (line 23)
Conv = Aspen.Tree.FindNode("DataResults SummaryRun-StatusOutputPER_ERROR").Value; %Convergence
I am getting an error suddenly after certain interations ( sometimes 1/5/20 iterations) that dot indexing not supported in the statement above. When I go and check the aspen file it just shows required input complete, but does not run. At the start I have reinit the code and I do run the engine, but it still shows required input complete, and the simulation does not run. Does anyone face a similar problem like this? matlab, aspen, tac, ga MATLAB Answers — New Questions
need data about tach signal?
greetings !!
I want to know about tach signal(like signal from tachometer) in MATLAB and its generation in matlab like attached image(Might be aperiodic).. And i want to add some Gaussian noise to that signal to find frequency b/w peeks.
I tried using "pulse train" but not getting as i like..greetings !!
I want to know about tach signal(like signal from tachometer) in MATLAB and its generation in matlab like attached image(Might be aperiodic).. And i want to add some Gaussian noise to that signal to find frequency b/w peeks.
I tried using "pulse train" but not getting as i like.. greetings !!
I want to know about tach signal(like signal from tachometer) in MATLAB and its generation in matlab like attached image(Might be aperiodic).. And i want to add some Gaussian noise to that signal to find frequency b/w peeks.
I tried using "pulse train" but not getting as i like.. signal generation, pulse generation, tach signal MATLAB Answers — New Questions