Month: October 2024
How to pass parameter to a MATLAB program from Python ??
I would like to write a python program who pass parameters to a MATLAB program and run it, but don’t know how to do ??
Python program :
import matlab.engine;
eng = matlab.engine.start_matlab()
x = 0;
y = 1;
z = 2;
print(x);
print(y);
print(z);
eng.Python_testing(nargout=0)
==> HOW TO PASS x,y,z, to Python_testing.m ??
MATLAB Program Python_testing.m
x,y,z
<== HOW TO RECEIVE the parameter x,y,z in MATLAB from PYTHON program
a = 0.5*(x + y + z)
return a
<== Can a be returned back to Python program ? If so, how to do it ??I would like to write a python program who pass parameters to a MATLAB program and run it, but don’t know how to do ??
Python program :
import matlab.engine;
eng = matlab.engine.start_matlab()
x = 0;
y = 1;
z = 2;
print(x);
print(y);
print(z);
eng.Python_testing(nargout=0)
==> HOW TO PASS x,y,z, to Python_testing.m ??
MATLAB Program Python_testing.m
x,y,z
<== HOW TO RECEIVE the parameter x,y,z in MATLAB from PYTHON program
a = 0.5*(x + y + z)
return a
<== Can a be returned back to Python program ? If so, how to do it ?? I would like to write a python program who pass parameters to a MATLAB program and run it, but don’t know how to do ??
Python program :
import matlab.engine;
eng = matlab.engine.start_matlab()
x = 0;
y = 1;
z = 2;
print(x);
print(y);
print(z);
eng.Python_testing(nargout=0)
==> HOW TO PASS x,y,z, to Python_testing.m ??
MATLAB Program Python_testing.m
x,y,z
<== HOW TO RECEIVE the parameter x,y,z in MATLAB from PYTHON program
a = 0.5*(x + y + z)
return a
<== Can a be returned back to Python program ? If so, how to do it ?? python MATLAB Answers — New Questions
New Outlook – Fix the favorite bar
In the old Outlook it is possible to fix the favorite bar so it is fixed when you scroll in your inbox.
In the new Outlook it is not possible. More and more users I know wish this feature in the new outlook. Does somebody know if it should come?
In the old Outlook it is possible to fix the favorite bar so it is fixed when you scroll in your inbox.In the new Outlook it is not possible. More and more users I know wish this feature in the new outlook. Does somebody know if it should come? Read More
New Outlook – Move Mails by right click display parent folder
If you right-click on an e-mail in the new Outlook and want to move it, you can search for folders.
However, if you search for a folder, only the folder name itself is displayed, but not the parent folder.
We work very project-based and that’s how the folders in Outlook are structured. There is a folder for each project and several subfolders below it. The subfolders often have the same name. For example, there is the “Quotations” folder under several folders. If I now move an email and search for quotes, I don’t know which folder I should use, because there are very many of them.
It would therefore be good if the parent folder was also displayed when moving.
If you right-click on an e-mail in the new Outlook and want to move it, you can search for folders.However, if you search for a folder, only the folder name itself is displayed, but not the parent folder.We work very project-based and that’s how the folders in Outlook are structured. There is a folder for each project and several subfolders below it. The subfolders often have the same name. For example, there is the “Quotations” folder under several folders. If I now move an email and search for quotes, I don’t know which folder I should use, because there are very many of them.It would therefore be good if the parent folder was also displayed when moving. Read More
How i can combine two or three 3D plot ? how get the template of such graph?
how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t))how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t)) how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t)) 3d plots, graph MATLAB Answers — New Questions
How i can combine two or three 3D plot ? how get the template of such graph?
how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t))how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t)) how i can have template of such graph in below mention it and there is any other template of graph surface? and how i can combine two or more 3D graph in one graph and with one template ? if have a template please share it and plot this kind of graph
(((cosh(0.5e0 * x + 0.20e1 * t) + 0.1e1) / cosh(0.5e0 * x + 0.20e1 * t)) ^ (0.1e1 / 0.6e1)) * exp(i * (-0.2e1 * x – 0.4034722222e1 * t)) 3d plots, graph MATLAB Answers — New Questions
The Script Fails to Obtain Modified Date of the files in SPO library
Hello,
I used a script (see attachment) but failed to obtain the correct modified date of the files in the SPO library.
For example; The “Modified” column displays the date of the last file version, while the “$File.TimeLastModified” script retrieves the date of file activities, including non-version-changing actions like moving the file or discarding checkouts.
How can I retrieve the exact dates of the files shown in the SP library “Modified” column?
Regards,
Hello,I used a script (see attachment) but failed to obtain the correct modified date of the files in the SPO library. For example; The “Modified” column displays the date of the last file version, while the “$File.TimeLastModified” script retrieves the date of file activities, including non-version-changing actions like moving the file or discarding checkouts. How can I retrieve the exact dates of the files shown in the SP library “Modified” column? Regards, Read More
Controlling a prosthetic hand
I took an EMG signal of 17 hand gestures from 43 person separately and now I have the dataset of these signals. After doing segmentation, DFTI, Feature-Extraction and classification how can I identify the the movement to the servo ?I took an EMG signal of 17 hand gestures from 43 person separately and now I have the dataset of these signals. After doing segmentation, DFTI, Feature-Extraction and classification how can I identify the the movement to the servo ? I took an EMG signal of 17 hand gestures from 43 person separately and now I have the dataset of these signals. After doing segmentation, DFTI, Feature-Extraction and classification how can I identify the the movement to the servo ? machine learning, deep learning MATLAB Answers — New Questions
how i can find this in MATLAB in order to find (τ,ν): I want the code and i will fix it
(τ,ν)= argmax(τ,ν) xp^H A(τ,ν) (A(τ,ν)^H A(τ,ν))−1 A(τ,ν)H xp
how i can find this in matlab
note: all coefficients are vector
(τ,ν)= argmax(τ,ν) xp^H A(τ,ν) (A(τ,ν)^H A(τ,ν))−1 A(τ,ν)H xp
how i can find this in matlab
note: all coefficients are vector
(τ,ν)= argmax(τ,ν) xp^H A(τ,ν) (A(τ,ν)^H A(τ,ν))−1 A(τ,ν)H xp
how i can find this in matlab
note: all coefficients are vector
optimization MATLAB Answers — New Questions
Is there any way to perform an at least partially symbolic smulation (using ODE or discrete model) in simulink?
Does it exst any way to use symbolic variables for paraametrzng a simulink model and getting a symbolic or semi symbolic solution?Does it exst any way to use symbolic variables for paraametrzng a simulink model and getting a symbolic or semi symbolic solution? Does it exst any way to use symbolic variables for paraametrzng a simulink model and getting a symbolic or semi symbolic solution? symbolic, simulink MATLAB Answers — New Questions
how to convert block diagram (simulink )to m-file code ?
may i know how to convert the simulink blok diagram into m-file ? how can i get the code for each block?
the m-file coded will run on DSP kit tms320c6713 so the waterfall graph (pe vs ber) will come out.
here is the block diagram i need to convert..
<http://www.mediafire.com/?bw3vgn106115kd9>may i know how to convert the simulink blok diagram into m-file ? how can i get the code for each block?
the m-file coded will run on DSP kit tms320c6713 so the waterfall graph (pe vs ber) will come out.
here is the block diagram i need to convert..
<http://www.mediafire.com/?bw3vgn106115kd9> may i know how to convert the simulink blok diagram into m-file ? how can i get the code for each block?
the m-file coded will run on DSP kit tms320c6713 so the waterfall graph (pe vs ber) will come out.
here is the block diagram i need to convert..
<http://www.mediafire.com/?bw3vgn106115kd9> m-file, simulink, block diagram, coding code, simulation MATLAB Answers — New Questions
MATLAB problem with resting-state EEG data analysis.
Hi, I am doing the pre-processing of the resting-state EEG data. I have finished re-referecing, filter, and ICA. I now have two epochs per participants, each epoch has 50 seconds of continuous data. There are no triggers or even markers included in these epoche (i have exluded the first few seconds around the start and end triggers). I want to first converge them into one continuous data (100s) and then segment it into non-overlapping 2-second segments in order to do time-frequency analysis. However, I could not find any function to do this. When i tried to carry out the following steps, it seems to always require event code. Chould anyone tell me how to segment my data? Thank you so much for answering my question.Hi, I am doing the pre-processing of the resting-state EEG data. I have finished re-referecing, filter, and ICA. I now have two epochs per participants, each epoch has 50 seconds of continuous data. There are no triggers or even markers included in these epoche (i have exluded the first few seconds around the start and end triggers). I want to first converge them into one continuous data (100s) and then segment it into non-overlapping 2-second segments in order to do time-frequency analysis. However, I could not find any function to do this. When i tried to carry out the following steps, it seems to always require event code. Chould anyone tell me how to segment my data? Thank you so much for answering my question. Hi, I am doing the pre-processing of the resting-state EEG data. I have finished re-referecing, filter, and ICA. I now have two epochs per participants, each epoch has 50 seconds of continuous data. There are no triggers or even markers included in these epoche (i have exluded the first few seconds around the start and end triggers). I want to first converge them into one continuous data (100s) and then segment it into non-overlapping 2-second segments in order to do time-frequency analysis. However, I could not find any function to do this. When i tried to carry out the following steps, it seems to always require event code. Chould anyone tell me how to segment my data? Thank you so much for answering my question. matlab, eeg, eeglab MATLAB Answers — New Questions
Sharepoint Event web part
Hi Community, I’m working on a SharePoint web part page for my organization and have encountered a few challenges.
1. Is there a way to switch the Calendar view to a list format, similar to an Outlook calendar layout, on the default page?
2. I’m trying to add a dropdown menu to the default page but have been unsuccessful so far.
3. Lastly, I would like to replace the “See All” link with a custom URL but am having trouble doing so.
Any help would be greatly appreciated!
Please see images for reference.
Thank you
Hi Community, I’m working on a SharePoint web part page for my organization and have encountered a few challenges.1. Is there a way to switch the Calendar view to a list format, similar to an Outlook calendar layout, on the default page?2. I’m trying to add a dropdown menu to the default page but have been unsuccessful so far.3. Lastly, I would like to replace the “See All” link with a custom URL but am having trouble doing so.Any help would be greatly appreciated! Please see images for reference. Thank you Read More
‘Something went wrong’ Logging into Outlook
Hello
Please help!! I use my son’s email address a few times a month to send him pictures of his life growing up, I have done this since he was a baby. Randomly, about a month ago I can’t log into his email, states – ‘Something went wrong’. I have no idea why. I have tried to log on through an iPad safari browsers (usual way) and also tried an iPhone and Microsoft laptop, all are providing the same. I was hoping it was a temporary glitch but it is still the same a few weeks on.
Any ideas I how I can access this again?
Many thanks
Hello Please help!! I use my son’s email address a few times a month to send him pictures of his life growing up, I have done this since he was a baby. Randomly, about a month ago I can’t log into his email, states – ‘Something went wrong’. I have no idea why. I have tried to log on through an iPad safari browsers (usual way) and also tried an iPhone and Microsoft laptop, all are providing the same. I was hoping it was a temporary glitch but it is still the same a few weeks on. Any ideas I how I can access this again? Many thanks Read More
expressing the complex function
clear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not workingclear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not working clear i
syms x t
U=zeros(1,2,’sym’);
A=zeros(1,2,’sym’);
series(x,t)=sym(zeros(1,1));
U(1)=exp(i*x);
alpha=1;
for k=1:2
A(1)=0;
for r=1:k
for s=1:r
A=A+U(s)*U(r-s+1)*U(k-r+1);
end
end
U(k+1)=simplify(i*(gamma(alpha*(k-1)+1)/gamma((alpha*(k))+1))*(sym(1/2)*diff(U(k),x,2)))
end
for k=1:3
series(x,t)=simplify(series(x,t)+U(k)*power(t,k-1))
end
series i obatin is form of the complex function and want to separte the real and imigimary part of the complex number But the command Re(series) does work . I want to plot the graph of the real part and imaginary part separtely of the series . For that i use the command expand (series) but it is also not working complex function MATLAB Answers — New Questions
Create a figure with slider (before/after)
I want to create a figure or an app that can show before and after image draw by plot(), the slider can be pull to show the before/after (the picture below for example). How can I do that in Matlab?I want to create a figure or an app that can show before and after image draw by plot(), the slider can be pull to show the before/after (the picture below for example). How can I do that in Matlab? I want to create a figure or an app that can show before and after image draw by plot(), the slider can be pull to show the before/after (the picture below for example). How can I do that in Matlab? figure, axis, appdesigner MATLAB Answers — New Questions
With Thingspeakread, can you ignore empty datpoints in order to go back further in time?
I have a channel with 8 fields. Fields 1 and 2 get data sent to them every 15 seconds.
I have a timed app that takes an average of the last 5 minutes of data from 1 and 2 and then enters that average into fields 3 and 4.
I have other apps that take longer averages and enters them in the other fields (5,6 and 7,8).
Can I read the data points in fields 3 and 4, ignore empty data, and still return 8000 points of data? All of them with actual data.
I have been using apps to put the averaging data into whole new channels so that there are no blank data points but this seems klunky and wasteful.I have a channel with 8 fields. Fields 1 and 2 get data sent to them every 15 seconds.
I have a timed app that takes an average of the last 5 minutes of data from 1 and 2 and then enters that average into fields 3 and 4.
I have other apps that take longer averages and enters them in the other fields (5,6 and 7,8).
Can I read the data points in fields 3 and 4, ignore empty data, and still return 8000 points of data? All of them with actual data.
I have been using apps to put the averaging data into whole new channels so that there are no blank data points but this seems klunky and wasteful. I have a channel with 8 fields. Fields 1 and 2 get data sent to them every 15 seconds.
I have a timed app that takes an average of the last 5 minutes of data from 1 and 2 and then enters that average into fields 3 and 4.
I have other apps that take longer averages and enters them in the other fields (5,6 and 7,8).
Can I read the data points in fields 3 and 4, ignore empty data, and still return 8000 points of data? All of them with actual data.
I have been using apps to put the averaging data into whole new channels so that there are no blank data points but this seems klunky and wasteful. thingspeakread, data MATLAB Answers — New Questions
Using Microsoft Learn, Applied Skills for Academic Projects
@Dr_Gomathi, as you mentioned in the college students’ awareness program post, which is focused on applied skills, and certifications into academic projects. I would like to know…
How do students use Microsoft Learn resources in their academic projects, such as AI, Applied Skills, Power BI, etc?
I’d love to hear specific examples of how Microsoft technologies helped students complete or enhance their Graduation projects?
Best Regards,
Loganathan Kandhasamy
@Dr_Gomathi, as you mentioned in the college students’ awareness program post, which is focused on applied skills, and certifications into academic projects. I would like to know… How do students use Microsoft Learn resources in their academic projects, such as AI, Applied Skills, Power BI, etc? I’d love to hear specific examples of how Microsoft technologies helped students complete or enhance their Graduation projects? Best Regards,Loganathan Kandhasamy Read More
How do I convert a decimal number of months to a datetime format?
I have a vector of several decimal values that represent a number of months after Jan 01, 2020.
(e.g. [9.545563 22.212227])
I need to convert these to dates. I’m unsure of how to do this. The ultimate goal of this is to output the dates within an fprintf statement.
(e.g. "Summer 2021/2022 begins on the 3rd of Dec at 3:51:14 and concludes on the 24th of Feb at 22:03:52")I have a vector of several decimal values that represent a number of months after Jan 01, 2020.
(e.g. [9.545563 22.212227])
I need to convert these to dates. I’m unsure of how to do this. The ultimate goal of this is to output the dates within an fprintf statement.
(e.g. "Summer 2021/2022 begins on the 3rd of Dec at 3:51:14 and concludes on the 24th of Feb at 22:03:52") I have a vector of several decimal values that represent a number of months after Jan 01, 2020.
(e.g. [9.545563 22.212227])
I need to convert these to dates. I’m unsure of how to do this. The ultimate goal of this is to output the dates within an fprintf statement.
(e.g. "Summer 2021/2022 begins on the 3rd of Dec at 3:51:14 and concludes on the 24th of Feb at 22:03:52") time, datetime MATLAB Answers — New Questions
How to activate symbolic math toolbox
Symbolic math toolboxSymbolic math toolbox Symbolic math toolbox symbolic, symbolic math toolbox MATLAB Answers — New Questions
Consider the following MATLAB script. What will the ending value of the variable k be (circle your answer below)?
A = [4, 2, 9, -10, 6];
k = 1;
if sum(A) > max(A)
k = k + sum(A) – max(A);
end
k
a. k = -1
b. k = 1
c. k = 0
d. k = 2A = [4, 2, 9, -10, 6];
k = 1;
if sum(A) > max(A)
k = k + sum(A) – max(A);
end
k
a. k = -1
b. k = 1
c. k = 0
d. k = 2 A = [4, 2, 9, -10, 6];
k = 1;
if sum(A) > max(A)
k = k + sum(A) – max(A);
end
k
a. k = -1
b. k = 1
c. k = 0
d. k = 2 variable k MATLAB Answers — New Questions