Tag Archives: matlab
Simmetrical Constraints in Multivariate Regression
Hi everyone!
This is my problem:
My data are related in this way: F = H*V + B*A where F is a 2xn matrix, V and A are 2xn matrices while H and B are 2×2 matrices.
H and B must be simmetrical.
I’ve already got F, V and A and I want to calculate H and B with a multivariate regression. How can I do it?
Thank you in advance!Hi everyone!
This is my problem:
My data are related in this way: F = H*V + B*A where F is a 2xn matrix, V and A are 2xn matrices while H and B are 2×2 matrices.
H and B must be simmetrical.
I’ve already got F, V and A and I want to calculate H and B with a multivariate regression. How can I do it?
Thank you in advance! Hi everyone!
This is my problem:
My data are related in this way: F = H*V + B*A where F is a 2xn matrix, V and A are 2xn matrices while H and B are 2×2 matrices.
H and B must be simmetrical.
I’ve already got F, V and A and I want to calculate H and B with a multivariate regression. How can I do it?
Thank you in advance! regression, matrices MATLAB Answers — New Questions
Finding the percentile of a time series
Dear all,
I hope this finds you well.
I had a question concerning quantiles/percentiles. I want to know the 90th percentile of my time series, because I want to use that value as a threshold later on.
Is it enough to use the quantile() or the prctile() commands on my data set, or do I have to go with a different approach that involves sorting my data, finding the standard deviation, etc. or Find the distribution of my data then look at the tails?
Also my time series has NaNs in them. Not sure if that affects the commands.
This is a dropbox link to my data:
https://www.dropbox.com/s/k838d1ww0wj5s38/Help-Data.mat?dl=0
Thank You!!Dear all,
I hope this finds you well.
I had a question concerning quantiles/percentiles. I want to know the 90th percentile of my time series, because I want to use that value as a threshold later on.
Is it enough to use the quantile() or the prctile() commands on my data set, or do I have to go with a different approach that involves sorting my data, finding the standard deviation, etc. or Find the distribution of my data then look at the tails?
Also my time series has NaNs in them. Not sure if that affects the commands.
This is a dropbox link to my data:
https://www.dropbox.com/s/k838d1ww0wj5s38/Help-Data.mat?dl=0
Thank You!! Dear all,
I hope this finds you well.
I had a question concerning quantiles/percentiles. I want to know the 90th percentile of my time series, because I want to use that value as a threshold later on.
Is it enough to use the quantile() or the prctile() commands on my data set, or do I have to go with a different approach that involves sorting my data, finding the standard deviation, etc. or Find the distribution of my data then look at the tails?
Also my time series has NaNs in them. Not sure if that affects the commands.
This is a dropbox link to my data:
https://www.dropbox.com/s/k838d1ww0wj5s38/Help-Data.mat?dl=0
Thank You!! percentile, time series, noob, quantile MATLAB Answers — New Questions
How i can get the best option plot for density and also other graph ?
i saw a lot design of graph which color are change and make a plot very better and really i am looking for such option but i can’t manage the option and i don’t know which option is good can any one help me for get the best design of plotting?
% Define the grid
[x, y] = meshgrid(linspace(-10, 10, 400), linspace(-10, 10, 400));
% Define the function
Z = real(0.3e1 ./ 0.2e1 * (0.9375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.50625e1 .* exp(0.15e1 * x – 0.2e1 * y)) ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) – 0.3e1 ./ 0.2e1 .* (0.375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.3375e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2 ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2);
% Create density plot
figure;
contourf(x, y, Z, 50, ‘LineStyle’, ‘none’);
colormap(prism);
xlabel(‘x’);
ylabel(‘y’);
title(‘Density Plot of Given Function’);i saw a lot design of graph which color are change and make a plot very better and really i am looking for such option but i can’t manage the option and i don’t know which option is good can any one help me for get the best design of plotting?
% Define the grid
[x, y] = meshgrid(linspace(-10, 10, 400), linspace(-10, 10, 400));
% Define the function
Z = real(0.3e1 ./ 0.2e1 * (0.9375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.50625e1 .* exp(0.15e1 * x – 0.2e1 * y)) ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) – 0.3e1 ./ 0.2e1 .* (0.375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.3375e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2 ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2);
% Create density plot
figure;
contourf(x, y, Z, 50, ‘LineStyle’, ‘none’);
colormap(prism);
xlabel(‘x’);
ylabel(‘y’);
title(‘Density Plot of Given Function’); i saw a lot design of graph which color are change and make a plot very better and really i am looking for such option but i can’t manage the option and i don’t know which option is good can any one help me for get the best design of plotting?
% Define the grid
[x, y] = meshgrid(linspace(-10, 10, 400), linspace(-10, 10, 400));
% Define the function
Z = real(0.3e1 ./ 0.2e1 * (0.9375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.50625e1 .* exp(0.15e1 * x – 0.2e1 * y)) ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) – 0.3e1 ./ 0.2e1 .* (0.375e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.3375e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2 ./ (0.1e1 + 0.15e1 .* exp(0.25e1 * x – 0.4761904763e0 * y) + 0.225e1 .* exp(0.15e1 * x – 0.2e1 * y)) .^ 2);
% Create density plot
figure;
contourf(x, y, Z, 50, ‘LineStyle’, ‘none’);
colormap(prism);
xlabel(‘x’);
ylabel(‘y’);
title(‘Density Plot of Given Function’); plotting MATLAB Answers — New Questions
Distributed and spmd not running faster
I think I’m missing something fundamental about using distributed arrays with spmd. If I run the following the distributed version takes ~0.04s while the non-distributed version completes in ~0.2s (with a process pool matching the cores on my machine).
x = ones(10000, 10000);
tic
x = x * 2.3;
toc
x
x = distributed(ones(10000, 10000));
tic
spmd
x = x * 2.3;
end
toc
gather(x)
What am I missing?
Edit: I moved the tic and toc to after the array initialization and before displaying x to not include that as I realized calling distributed is taking longer while it distributes the array across the processes and gather is taking time.I think I’m missing something fundamental about using distributed arrays with spmd. If I run the following the distributed version takes ~0.04s while the non-distributed version completes in ~0.2s (with a process pool matching the cores on my machine).
x = ones(10000, 10000);
tic
x = x * 2.3;
toc
x
x = distributed(ones(10000, 10000));
tic
spmd
x = x * 2.3;
end
toc
gather(x)
What am I missing?
Edit: I moved the tic and toc to after the array initialization and before displaying x to not include that as I realized calling distributed is taking longer while it distributes the array across the processes and gather is taking time. I think I’m missing something fundamental about using distributed arrays with spmd. If I run the following the distributed version takes ~0.04s while the non-distributed version completes in ~0.2s (with a process pool matching the cores on my machine).
x = ones(10000, 10000);
tic
x = x * 2.3;
toc
x
x = distributed(ones(10000, 10000));
tic
spmd
x = x * 2.3;
end
toc
gather(x)
What am I missing?
Edit: I moved the tic and toc to after the array initialization and before displaying x to not include that as I realized calling distributed is taking longer while it distributes the array across the processes and gather is taking time. distributed, parallel computing, spmd, parallel computing toolbox MATLAB Answers — New Questions
Matlab for auto logging into websites, populating web fields etc or go with Python
Hello all
I know that Matlab is suited for many engineering uses however i wanted the opinion of the community of using Matlab to run automated reports by extracting data from web sites as well as autologging into websites and populating data fields.
An idea i have is to use a Matlab GUI for a user to enter data, this data then opens a browser and populates various web fields.
I have been told that i should abandon the idea of using Matlab and go with Python.
Just wondering what the thoughts of the commuinty was?
Thank you.Hello all
I know that Matlab is suited for many engineering uses however i wanted the opinion of the community of using Matlab to run automated reports by extracting data from web sites as well as autologging into websites and populating data fields.
An idea i have is to use a Matlab GUI for a user to enter data, this data then opens a browser and populates various web fields.
I have been told that i should abandon the idea of using Matlab and go with Python.
Just wondering what the thoughts of the commuinty was?
Thank you. Hello all
I know that Matlab is suited for many engineering uses however i wanted the opinion of the community of using Matlab to run automated reports by extracting data from web sites as well as autologging into websites and populating data fields.
An idea i have is to use a Matlab GUI for a user to enter data, this data then opens a browser and populates various web fields.
I have been told that i should abandon the idea of using Matlab and go with Python.
Just wondering what the thoughts of the commuinty was?
Thank you. web, auto log in, matlab 2019 MATLAB Answers — New Questions
CPM Modulator Implementation Methods
In the comm.CPMModulator help, in the "More About > CPM Method", it says the output comes from a relation mentioned there.
But, the only way to get to the same output is by using FM Modulator method (using g(t) instead of q(t)).
I wonder if there is a way to get to the same output just by using that relation (using q(t)).
Thanks!In the comm.CPMModulator help, in the "More About > CPM Method", it says the output comes from a relation mentioned there.
But, the only way to get to the same output is by using FM Modulator method (using g(t) instead of q(t)).
I wonder if there is a way to get to the same output just by using that relation (using q(t)).
Thanks! In the comm.CPMModulator help, in the "More About > CPM Method", it says the output comes from a relation mentioned there.
But, the only way to get to the same output is by using FM Modulator method (using g(t) instead of q(t)).
I wonder if there is a way to get to the same output just by using that relation (using q(t)).
Thanks! cpm modulator, digital modulations, communications toolbox, wireless communications MATLAB Answers — New Questions
How do I multiplex 3 phase power system signals onto a single signal or generate a varying frequency voltage source
So I am trying to test a HVDC model’s response to a frequency deviation. I designed a quick model to output a balanced three phase voltage whose frequency profile I could control (see image attached). The trouble is that I get the voltage as three separate signals, but I need them as a single line. I’ve tried both generic muxes and physical signal converters, but they don’t connect (wrong signal type). Essentially what I want to do is the reverse of a phase splitter block but I can’t find a block that will do this.
Please reply if you have a solution to this problem or if you know of a different way to vary the frequency of a three phase voltage source.So I am trying to test a HVDC model’s response to a frequency deviation. I designed a quick model to output a balanced three phase voltage whose frequency profile I could control (see image attached). The trouble is that I get the voltage as three separate signals, but I need them as a single line. I’ve tried both generic muxes and physical signal converters, but they don’t connect (wrong signal type). Essentially what I want to do is the reverse of a phase splitter block but I can’t find a block that will do this.
Please reply if you have a solution to this problem or if you know of a different way to vary the frequency of a three phase voltage source. So I am trying to test a HVDC model’s response to a frequency deviation. I designed a quick model to output a balanced three phase voltage whose frequency profile I could control (see image attached). The trouble is that I get the voltage as three separate signals, but I need them as a single line. I’ve tried both generic muxes and physical signal converters, but they don’t connect (wrong signal type). Essentially what I want to do is the reverse of a phase splitter block but I can’t find a block that will do this.
Please reply if you have a solution to this problem or if you know of a different way to vary the frequency of a three phase voltage source. three phase, frequency, varying, mux, simpowersystems, power system, power_electronics_control, power_conversion_control MATLAB Answers — New Questions
website is not receiving data from ,y node mcu
I’m using a NodeMCU for my AQI project. Initially, everything was working fine, but now when I try to update, my ThingSpeak website isn’t showing any new data. It only shows my last entry from three months ago.
The serial monitor indicates ‘Data sent to ThingSpeak,’ but my channel is not displaying any updated data. Instead, it’s showing ‘Field value unavailable.I’m using a NodeMCU for my AQI project. Initially, everything was working fine, but now when I try to update, my ThingSpeak website isn’t showing any new data. It only shows my last entry from three months ago.
The serial monitor indicates ‘Data sent to ThingSpeak,’ but my channel is not displaying any updated data. Instead, it’s showing ‘Field value unavailable. I’m using a NodeMCU for my AQI project. Initially, everything was working fine, but now when I try to update, my ThingSpeak website isn’t showing any new data. It only shows my last entry from three months ago.
The serial monitor indicates ‘Data sent to ThingSpeak,’ but my channel is not displaying any updated data. Instead, it’s showing ‘Field value unavailable. data not received MATLAB Answers — New Questions
How to connect broken lines, but no enlarge line width?
I need to fill rectangle(run fill holes), but the broken lines in rectangle stop me to do this. due to the high density rectangles in figure, so I want to connect broken lines, but no enlarge line width. Could you help me?
I have tryed to do dilate/erode/open/close mask operations, but they all can’t meet my request.I need to fill rectangle(run fill holes), but the broken lines in rectangle stop me to do this. due to the high density rectangles in figure, so I want to connect broken lines, but no enlarge line width. Could you help me?
I have tryed to do dilate/erode/open/close mask operations, but they all can’t meet my request. I need to fill rectangle(run fill holes), but the broken lines in rectangle stop me to do this. due to the high density rectangles in figure, so I want to connect broken lines, but no enlarge line width. Could you help me?
I have tryed to do dilate/erode/open/close mask operations, but they all can’t meet my request. image processing, image segmentation MATLAB Answers — New Questions
Problem with converting uitable to table (array2table) with strange number of column names
Hello, I have a UITable that on startup has 4 columns.
I want to create some dummy data (3 columns) and play with the different save options (writecell, writematrix and writetable) to see which one handles NaNs the best and can save the column names.
I am hence steering towards writetable.
However, when I clear the table and re-enter my dummy data via:
uit=app.UITable;
uit.Data=[];
r = randi([0,10],10,3)
uit.Data = [r];
I notice that the number of column names is still 4 and not 3, yet the data size in columns is 3!
T=app.UITable;
vn=T.ColumnName
vn = %UITable Column Names
4×1 cell array
{‘Column 1’}
{‘Column 2’}
{‘Column 3’}
{‘Column 4’}
ans = % UITable Data size
10 3
hence the following fails
T = array2table(data, ‘VariableNames’,vn’)
Error using array2table
The VariableNames property must contain one name for each variable in the table.
Any suggestions please?
(and a 2nd question, most of the time my data is doubles, however occasionally its a cell array – when I want e.g. some text. I assume the only chnage I would need is when creating the table I would use cell2table instead of array2table?)Hello, I have a UITable that on startup has 4 columns.
I want to create some dummy data (3 columns) and play with the different save options (writecell, writematrix and writetable) to see which one handles NaNs the best and can save the column names.
I am hence steering towards writetable.
However, when I clear the table and re-enter my dummy data via:
uit=app.UITable;
uit.Data=[];
r = randi([0,10],10,3)
uit.Data = [r];
I notice that the number of column names is still 4 and not 3, yet the data size in columns is 3!
T=app.UITable;
vn=T.ColumnName
vn = %UITable Column Names
4×1 cell array
{‘Column 1’}
{‘Column 2’}
{‘Column 3’}
{‘Column 4’}
ans = % UITable Data size
10 3
hence the following fails
T = array2table(data, ‘VariableNames’,vn’)
Error using array2table
The VariableNames property must contain one name for each variable in the table.
Any suggestions please?
(and a 2nd question, most of the time my data is doubles, however occasionally its a cell array – when I want e.g. some text. I assume the only chnage I would need is when creating the table I would use cell2table instead of array2table?) Hello, I have a UITable that on startup has 4 columns.
I want to create some dummy data (3 columns) and play with the different save options (writecell, writematrix and writetable) to see which one handles NaNs the best and can save the column names.
I am hence steering towards writetable.
However, when I clear the table and re-enter my dummy data via:
uit=app.UITable;
uit.Data=[];
r = randi([0,10],10,3)
uit.Data = [r];
I notice that the number of column names is still 4 and not 3, yet the data size in columns is 3!
T=app.UITable;
vn=T.ColumnName
vn = %UITable Column Names
4×1 cell array
{‘Column 1’}
{‘Column 2’}
{‘Column 3’}
{‘Column 4’}
ans = % UITable Data size
10 3
hence the following fails
T = array2table(data, ‘VariableNames’,vn’)
Error using array2table
The VariableNames property must contain one name for each variable in the table.
Any suggestions please?
(and a 2nd question, most of the time my data is doubles, however occasionally its a cell array – when I want e.g. some text. I assume the only chnage I would need is when creating the table I would use cell2table instead of array2table?) uitable, array2table, writetable MATLAB Answers — New Questions
Who can give me a full answer of this question?
Write a program which repeatedly reads numbers until the user enters "done". Once "done" is
entered, print out the Max and Min. Use an array to store all the numbers. Example of execution:
Enter a number: 4
Enter a number: 5
Enter a number: 9
Enter a number: done
Max = 9, Min = 4Write a program which repeatedly reads numbers until the user enters "done". Once "done" is
entered, print out the Max and Min. Use an array to store all the numbers. Example of execution:
Enter a number: 4
Enter a number: 5
Enter a number: 9
Enter a number: done
Max = 9, Min = 4 Write a program which repeatedly reads numbers until the user enters "done". Once "done" is
entered, print out the Max and Min. Use an array to store all the numbers. Example of execution:
Enter a number: 4
Enter a number: 5
Enter a number: 9
Enter a number: done
Max = 9, Min = 4 homework MATLAB Answers — New Questions
Out of Memory during serialization of the subsystem data – reinforcement learning
Hi, during training (reinforcement learning), agents aren’t saved properly and this warning is given. What can be done to fix this? Training is done with parallel processing.Hi, during training (reinforcement learning), agents aren’t saved properly and this warning is given. What can be done to fix this? Training is done with parallel processing. Hi, during training (reinforcement learning), agents aren’t saved properly and this warning is given. What can be done to fix this? Training is done with parallel processing. reinforcement learning MATLAB Answers — New Questions
function pdepe coder generation
Hi all,
I am trying to generate a dynamic library file by using ‘coder’. When I trying to do it, there is an information said that the function ‘pdepe’ is not supported in code generation. I am wondering if there is any solution to it like a replacement of the ‘pdepe’ function or some other settings?
Thank you in advanceHi all,
I am trying to generate a dynamic library file by using ‘coder’. When I trying to do it, there is an information said that the function ‘pdepe’ is not supported in code generation. I am wondering if there is any solution to it like a replacement of the ‘pdepe’ function or some other settings?
Thank you in advance Hi all,
I am trying to generate a dynamic library file by using ‘coder’. When I trying to do it, there is an information said that the function ‘pdepe’ is not supported in code generation. I am wondering if there is any solution to it like a replacement of the ‘pdepe’ function or some other settings?
Thank you in advance code generation, pdepe, matlab, coder MATLAB Answers — New Questions
complex gaussian noise generation
how can i generate a complex gaussian noise with zero mean and some variance in matlab?how can i generate a complex gaussian noise with zero mean and some variance in matlab? how can i generate a complex gaussian noise with zero mean and some variance in matlab? a, f MATLAB Answers — New Questions
error with configuring android studio with matlab
So i have been trying to configure matlab to work with android studio for a project and i came across Simulink Support Package for Android Devices ,but when i try to configure it i get this error message. Does anyone know how to fix this
Build App
A problem occurred configuring root project ‘TestApp’. > Could not open cp_proj generic class cache for build file ‘C:UsersUserAppDataLocalTemptpee9cd55b_8ffa_4e98_82dc_4f945f5ab51cTestAppbuild.gradle’ (C:UsersUser.gradlecaches7.5scripts56lbh5pj36js9453y7f1h6iim). > BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 65 *So i have been trying to configure matlab to work with android studio for a project and i came across Simulink Support Package for Android Devices ,but when i try to configure it i get this error message. Does anyone know how to fix this
Build App
A problem occurred configuring root project ‘TestApp’. > Could not open cp_proj generic class cache for build file ‘C:UsersUserAppDataLocalTemptpee9cd55b_8ffa_4e98_82dc_4f945f5ab51cTestAppbuild.gradle’ (C:UsersUser.gradlecaches7.5scripts56lbh5pj36js9453y7f1h6iim). > BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 65 * So i have been trying to configure matlab to work with android studio for a project and i came across Simulink Support Package for Android Devices ,but when i try to configure it i get this error message. Does anyone know how to fix this
Build App
A problem occurred configuring root project ‘TestApp’. > Could not open cp_proj generic class cache for build file ‘C:UsersUserAppDataLocalTemptpee9cd55b_8ffa_4e98_82dc_4f945f5ab51cTestAppbuild.gradle’ (C:UsersUser.gradlecaches7.5scripts56lbh5pj36js9453y7f1h6iim). > BUG! exception in phase ‘semantic analysis’ in source unit ‘_BuildScript_’ Unsupported class file major version 65 * android studio MATLAB Answers — New Questions
how to set the browser of webread function?
Hi Matlab,
I plan to use webread to get the data from a website. I can open the website in Chrome, yet I get the message "The currently used browser has security risks". It seems the website prevents the default matlab browser to read the data. Is it possible to change the browser used by webread to Chrome?Hi Matlab,
I plan to use webread to get the data from a website. I can open the website in Chrome, yet I get the message "The currently used browser has security risks". It seems the website prevents the default matlab browser to read the data. Is it possible to change the browser used by webread to Chrome? Hi Matlab,
I plan to use webread to get the data from a website. I can open the website in Chrome, yet I get the message "The currently used browser has security risks". It seems the website prevents the default matlab browser to read the data. Is it possible to change the browser used by webread to Chrome? webread, browser MATLAB Answers — New Questions
Fixed final time and fixed final state optimal control problem
Hello, someboddy help me please with this optimal control problem of fixed end time and fixed end point using Pontryagin Minimum Principle
State equation
dx1(t)/dt = – (1/N)*d*x1(t)*x3(t) – u1*x1(t)
dx2(t)/dt = (1/N)*x1(t)*x3(t) – a*x2(t) – u2*x2(t)
dx3(t)/dt = a*x2(t) – b*x3(t) – u3*x3(t)
dx4(t)/dt = b*x3(t) – u4*x4(t)
with N=651
a=0.2
b=0.3
d=0.5
x1(0)=651 x1(T)=148
x2(0)=279 x2(T)=85
x3(0)=130 x3(T)=80
x4(0)=75 x4(T)=252
with T= 29
cost function minimize J = integral from 0 to 29 of 0.5*x1^2 + 0.5*x2^2 + 0.5*x3^2 + 0.5*x4^2 + 0.5*u1^2 + 0.5*u2^2 + 0.5*u3^2 + 0.5*u4^2
please help me with matlab coding
thank you very much
I appreciate for your helpHello, someboddy help me please with this optimal control problem of fixed end time and fixed end point using Pontryagin Minimum Principle
State equation
dx1(t)/dt = – (1/N)*d*x1(t)*x3(t) – u1*x1(t)
dx2(t)/dt = (1/N)*x1(t)*x3(t) – a*x2(t) – u2*x2(t)
dx3(t)/dt = a*x2(t) – b*x3(t) – u3*x3(t)
dx4(t)/dt = b*x3(t) – u4*x4(t)
with N=651
a=0.2
b=0.3
d=0.5
x1(0)=651 x1(T)=148
x2(0)=279 x2(T)=85
x3(0)=130 x3(T)=80
x4(0)=75 x4(T)=252
with T= 29
cost function minimize J = integral from 0 to 29 of 0.5*x1^2 + 0.5*x2^2 + 0.5*x3^2 + 0.5*x4^2 + 0.5*u1^2 + 0.5*u2^2 + 0.5*u3^2 + 0.5*u4^2
please help me with matlab coding
thank you very much
I appreciate for your help Hello, someboddy help me please with this optimal control problem of fixed end time and fixed end point using Pontryagin Minimum Principle
State equation
dx1(t)/dt = – (1/N)*d*x1(t)*x3(t) – u1*x1(t)
dx2(t)/dt = (1/N)*x1(t)*x3(t) – a*x2(t) – u2*x2(t)
dx3(t)/dt = a*x2(t) – b*x3(t) – u3*x3(t)
dx4(t)/dt = b*x3(t) – u4*x4(t)
with N=651
a=0.2
b=0.3
d=0.5
x1(0)=651 x1(T)=148
x2(0)=279 x2(T)=85
x3(0)=130 x3(T)=80
x4(0)=75 x4(T)=252
with T= 29
cost function minimize J = integral from 0 to 29 of 0.5*x1^2 + 0.5*x2^2 + 0.5*x3^2 + 0.5*x4^2 + 0.5*u1^2 + 0.5*u2^2 + 0.5*u3^2 + 0.5*u4^2
please help me with matlab coding
thank you very much
I appreciate for your help control, pontryagin MATLAB Answers — New Questions
Two dimensional instantenious velocity field of an axisimetric turbulent free jet is provided in the file Jet_0001.txt. The jet nozzel diameter is Djet = 0.01 m and the centerline of the jet is located at y0 = 0.25 m. The jet velocity at the nozzle i
Two dimensional instantenious velocity field of an axisimetric turbulent free jet is provided in the file Jet_0001.txt. The jet nozzel diameter is Djet = 0.01 m and the centerline of the jet is located at y0 = 0.25 m. The jet velocity at the nozzle is Ujet = 3 m/s. Velocity data is obtained using particle image velocimetry (PIV) technique in the central plane of the jet. The data file consists of four columns organized as follows x-coordinate (m) y-coordinate (m) u-velocity (uins, m/s) v-velocity (vins, m/s) Note: The size of the array is 127 × 127 = 16129 Using MATLAB or any other software available a) Plot the instantenious velocity vector field in x-y plane. Normalize x, and y axis with Djet. b) Plot the contours of the the streamwise velocity, uins /Ujet and show the colormap with appropriate labels. c) Where is the maximum uins located? Explain. d) Calculate the vorticity component z. For this purpose, develop a code to calculate z numerically. Use the finite diffenrece approximation to calculate velocity gradients. Submit your code and comment on the regions of high vorticity.Two dimensional instantenious velocity field of an axisimetric turbulent free jet is provided in the file Jet_0001.txt. The jet nozzel diameter is Djet = 0.01 m and the centerline of the jet is located at y0 = 0.25 m. The jet velocity at the nozzle is Ujet = 3 m/s. Velocity data is obtained using particle image velocimetry (PIV) technique in the central plane of the jet. The data file consists of four columns organized as follows x-coordinate (m) y-coordinate (m) u-velocity (uins, m/s) v-velocity (vins, m/s) Note: The size of the array is 127 × 127 = 16129 Using MATLAB or any other software available a) Plot the instantenious velocity vector field in x-y plane. Normalize x, and y axis with Djet. b) Plot the contours of the the streamwise velocity, uins /Ujet and show the colormap with appropriate labels. c) Where is the maximum uins located? Explain. d) Calculate the vorticity component z. For this purpose, develop a code to calculate z numerically. Use the finite diffenrece approximation to calculate velocity gradients. Submit your code and comment on the regions of high vorticity. Two dimensional instantenious velocity field of an axisimetric turbulent free jet is provided in the file Jet_0001.txt. The jet nozzel diameter is Djet = 0.01 m and the centerline of the jet is located at y0 = 0.25 m. The jet velocity at the nozzle is Ujet = 3 m/s. Velocity data is obtained using particle image velocimetry (PIV) technique in the central plane of the jet. The data file consists of four columns organized as follows x-coordinate (m) y-coordinate (m) u-velocity (uins, m/s) v-velocity (vins, m/s) Note: The size of the array is 127 × 127 = 16129 Using MATLAB or any other software available a) Plot the instantenious velocity vector field in x-y plane. Normalize x, and y axis with Djet. b) Plot the contours of the the streamwise velocity, uins /Ujet and show the colormap with appropriate labels. c) Where is the maximum uins located? Explain. d) Calculate the vorticity component z. For this purpose, develop a code to calculate z numerically. Use the finite diffenrece approximation to calculate velocity gradients. Submit your code and comment on the regions of high vorticity. fluid mechanics MATLAB Answers — New Questions
Can i simulate cloud environment using MATLAB?
I want to simulate cloud environment using MATLAB and implement some scheduling algorithms.I want to simulate cloud environment using MATLAB and implement some scheduling algorithms. I want to simulate cloud environment using MATLAB and implement some scheduling algorithms. cloud computing, scheduling algorithms MATLAB Answers — New Questions
i have a matlab code with 3 for loops, in last for loop , there is threshold based penalization. i want trace some variables in that code and compare with plot
respected professor.
i have code with 3 for loops. 1st for delta (which gives different plots in the same figure) 2nd for eps ( which is on x axis of figure) 3rd for Nt, giving different alpha .and in the 3rd loop pout1 and pout2 is also found which is used in threshold based penalization.
i am giving the threshold based penalization problem as screenshot as well as the figure .
i have the code for generating the figure. and i am attaching the code also.
i want to trace the value of delta, eps , Nt, alpha, pout1, pout2 and get the new alpha which is in the plot and compare these values from plot.
Thank you in advancerespected professor.
i have code with 3 for loops. 1st for delta (which gives different plots in the same figure) 2nd for eps ( which is on x axis of figure) 3rd for Nt, giving different alpha .and in the 3rd loop pout1 and pout2 is also found which is used in threshold based penalization.
i am giving the threshold based penalization problem as screenshot as well as the figure .
i have the code for generating the figure. and i am attaching the code also.
i want to trace the value of delta, eps , Nt, alpha, pout1, pout2 and get the new alpha which is in the plot and compare these values from plot.
Thank you in advance respected professor.
i have code with 3 for loops. 1st for delta (which gives different plots in the same figure) 2nd for eps ( which is on x axis of figure) 3rd for Nt, giving different alpha .and in the 3rd loop pout1 and pout2 is also found which is used in threshold based penalization.
i am giving the threshold based penalization problem as screenshot as well as the figure .
i have the code for generating the figure. and i am attaching the code also.
i want to trace the value of delta, eps , Nt, alpha, pout1, pout2 and get the new alpha which is in the plot and compare these values from plot.
Thank you in advance threshold based penalization, tracing code MATLAB Answers — New Questions