Science topic

MATLAB - Science topic

MATLAB (matrix laboratory) is a numerical computing environment and fourth-generation programming language. Developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, Java, and Fortran.
Questions related to MATLAB
  • asked a question related to MATLAB
Question
2 answers
THERMODYNAMIC ANALYSIS OF TRIPLE EFFECT ABSORPTION CHiLLERS
Energy and Exergy analysis .
Relevant answer
Answer
interested
  • asked a question related to MATLAB
Question
15 answers
What statistical software do you prefer for your research works? 💻 (Excel, SPSS, Matlab,...)
Thanks for your answer 😉
Relevant answer
Answer
It depends on what kind of analysis you want. In my opinion R is better, but if you need to generate figures and plots excel has better resources. Usually I use R and then export the data to excel to generate better figures.
  • asked a question related to MATLAB
Question
11 answers
Dear colleagues! Share information on the implementation of the ZF beamforming method for MU-MIMO in MATLAB?
  • asked a question related to MATLAB
Question
1 answer
Quantile cointegration test
Relevant answer
Answer
  • asked a question related to MATLAB
Question
1 answer
Please share source material and expertise contact for discussion.
Also welcome for collaborative work
Relevant answer
Answer
The best resource for this would be the MATLAB community (under Mathworks). For example, the following link covers the subject you are interested in. Good luck.
  • asked a question related to MATLAB
Question
5 answers
I want to determine the temperature dependancy of order to disorder phase transition of cubic perovskite? And I haven’t enough computational resource for that..So, Python or Matlab can be a good option in this case
Relevant answer
Answer
All of the software described in the book is free. I attached a zip file containing the examples plus I have more if you don't find what you're looking for.
  • asked a question related to MATLAB
Question
2 answers
Dear all, I am working on climate change impact;
and I couldn't get Matlab code to convert the NC file of CMIP6 to excel
is there anyone to help me?
Relevant answer
Answer
Thank you Jay I will see it!
  • asked a question related to MATLAB
Question
3 answers
How to filter input signal through lognormal shadowing model or kappa mu shadowing model by using a code which generates PDF in Matlab?
Relevant answer
Answer
you can use following code to pass through the log-normal shadowing model:
s= randn(1,20); %Randomly generated signal to pass through the channel.
M=4; order of modulation (I am considering that you are using 4-QAM modulation)
s_mod= qammod(s, M); % Modulate the signal
mean= 0; %Consider mean of Log-Normal model as 0
var=1; % Consider variance of Log-Normal model as 1
h_t= lognrnd(mean, var); % Generate Log-normal model
%Befor passing through channel, add cyclic-Prefix to the modulated signal
Ncp= 5; %cyclic prefix length
s_cp= [s_mod(end-Ncp+1:end) s_mod];
% Now pass throgh Log-Normal model
r1= conv(h_t,s_cp);
%The received signal will be noisy signal, so add the noise
r= awgn(r1,10,'measured'); % Noise at SNR=5
%Now remove cyclic prefix,
y=r(Ncp+1:N+Ncp);
  • asked a question related to MATLAB
Question
5 answers
Hello,
I have 2x2 Mixed Design ANOVA I did assumptions before Anova. I fixed 1 or 2 person (outlier) for data and I went for analysis. After executed outliers, I got still significant and large effect size (partial eta) therefore, I prefered to report without outliers. I have also between group differences, I will report them too. But I have problem in group interaction and some within-subject results. Group intereaction; I have nLOW=10, nHigh=11 group. The result showed me that F(1,19)=4.18, p= .056, Partial eta =0.17! and another F(1,19)=3.72, p= .69, partial eta=0.16! Within-Subject: F(1,19)=4.18, p= .055, partialeta=0.18 ! and I have 4 more like these for within result. My Question: i) I wanted to report nonsigficant data, because I read that "p" is probability but effect size also shows us "how much variances affect/interaction for each other". I also read about "effect size choosing for sample size. They said that " if you have small size (maybe like me for 2x2 design (nLOW=10, nHigh=11, nTOTAL:21)) you must use omega squared" and If I use omega for my results, all large effect sizes have gone. They decreased to medium (around 0,50)
After I read Dr. Lakens's review (10.3389/fpsyg.2013.00863), I thought that can be " generalized eta", because I realized after computed Omega squared and General Eta , they look similar (general eta:0.047, omega square :0.037). But If I have these effects, I thought there is no need to report for nonsignificant data as I mentioned above. Because I also lost effect sizes, right? It is same for some within-subject results. If I compute effect size as a omega squared and generalized eta, almost all large partial eta decreases to medium or low. What should I do about it? Should I report both (partial eta and generalized eta which they are very different for my data: when Partial eta shows:0,241; GeneralEta shows:0.047; omega squared shows: 0.037) ? Thank you in advanced for your time.
Berkant Erman
Relevant answer
Answer
Well you have a pretty good interaction here. This is what drives your analysis for a factorial design. Ignore all the stuff about eta squared and effect size for the time being. That comes at the very end of the analysis. The attached search is for a simple form of your design and gives a complete analysis of one. Take a look at this and see if it doesn't guide you through the analysis. At that point come back with the effect size questions and we can help with that too. If you have questions in the meantime please ask. Best wishes David Booth
  • asked a question related to MATLAB
Question
6 answers
I would like to know if Aspen Plus can be linked with MATLAB or Python?
Relevant answer
Answer
Thank you very much Richard Hagen
  • asked a question related to MATLAB
Question
2 answers
Hi
How do we calculate schottky barrier height and ideality factor and On-resistance for schottky structure by matlab ?
thanks
Relevant answer
Answer
thanks
  • asked a question related to MATLAB
Question
1 answer
am trying to add entropy generation for hybridnano fluid in my research article what should i note before and after . and suggest me some of the article to get clear idea and matlab program to plot graph for entropy
Relevant answer
Answer
The command below may be applied:
se = pentropy(xt)
se = pentropy(x,sampx)
se = pentropy(p,fp,tp)
se = pentropy(___,Name=Value)
[se,t] = pentropy(___)
pentropy(___)
--------------------
Plot the spectral entropy of a signal expressed as a timetable and as a time series.
Generate a random series with normal distribution (white noise).
xn = randn(1000,1);
Create time vector t and convert to duration vector tdur. Combine tdur and xn in a timetable.
fs = 10; ts = 1/fs; t = 0.1:ts:100; tdur = seconds(t); xt = timetable(tdur',xn);
Plot the spectral entropy of the timetable xt.
pentropy(xt) title('Spectral Entropy of White Noise Signal Timetable')
  • asked a question related to MATLAB
Question
3 answers
I have two datasets (.edf) of EEG recordings, one for healthy people, one for depressive people.
Each of the recording has 20 channels. So far I opened the data in matlab with edfread() as a timetable.
How can I add a white noise in that timetable?
Relevant answer
Answer
Artificial Intelligence
answer would work. But it might not generate what you need. Have you considered including noises that are true to the body, like bodily function, sounds and surrounding RF? Eleonora Adelina Dănilă
  • asked a question related to MATLAB
Question
3 answers
hello all,
I am currently working on studying the effect of integrating wind energy on the IEEE 9 BUS using Matlab Simulink, the curve of voltage and frequency in the buss gave satisfactory results without wind, but after integrating the wind turbine, the voltage and the frequency diverged from the default value.
so I wanted to as if there is someone here that simulated similar work and can help me to clarify some questions.
- Any recommendations for optimal integration of wind energy into the grid? ( with Simulink Matlab ) , references?
Thank you.
  • asked a question related to MATLAB
Question
2 answers
I have running GA optimization using "gamultiobj" in Matlab. The upper bound and lower bound of my design variables are like [10 30 175 1] and [30 60 225 3]. But after convergence, I see the design variables (like all of them) near 20,47,175 and 1. I am not getting a Pareto Front. What could be the possible reasons for that?
Relevant answer
Answer
Can you please elaborate on your objective functions?
  • asked a question related to MATLAB
Question
2 answers
Current, I am using Simscape toolbox.
It would be helpful if anyone can suggest some other toolbox that may be required in future work.
  • asked a question related to MATLAB
Question
3 answers
I have .rda file which contains EEM spectra. I have changed it in to .mat file by writing in R. But this .mt file does not contains the corresponding values of Ex, and Em in the .mat file rather only sample names, and values which are in a structure, so i am unable to plot this data in matlab as i want to do further analysis of this data.
Relevant answer
Answer
thanks guys for the help....!
  • asked a question related to MATLAB
Question
2 answers
What should be the method for big netcdf files? It will be good if anyone provide me the Python, R or MatLab code.
Relevant answer
Answer
Ákos Bede-Fazekas I want to obtain the data at every lat-long in spreadsheet form.
  • asked a question related to MATLAB
Question
2 answers
The DoS attack occurs throughout the simulation.
Relevant answer
Answer
followed
  • asked a question related to MATLAB
Question
2 answers
In his name is the judge
Hi
I made fuzzy logic system by ANFIS toolbox in matlab.
Is there any way to calling this fuzzy logic system in python.
note this:
In fact i want python automatically (not handly) read fuzzy logic system properties and build it then i can use it in python.
Any help is greatly appreciated.
Take refuge in the right.
Relevant answer
Answer
thank you for share me this but i think it dont help me for my purpose .
  • asked a question related to MATLAB
Question
2 answers
Hi,
I really need some help. I acknowledge all respected researchers here which have done raindrop size distribution studies using t-matrix code written and provided by Mishchenko.
It says the codes were all written using fortran77.
But, to be frank. I have never used Fortran and I am not a programmer. So, for my study, I'm using Matlab. To convert fortran77 to Matlab, I need to convert fortran77 to fortran90 first which I totally have no clue.
So, I would like to ask if any of my Researchgate friends here are willing to share the converted version (in Matlab code) or have any info about this code. All help are highly appreciated.
Relevant answer
Answer
I went to the NASA web site and downloaded the first file I came to (tmp.lp.f). While it is indeed F77, converting it to something you might use in a different development environment (MATLAB or Python or C) will be quite a challenge. There are several features used in this code which are peculiar to arcane FORTRAN compilers, operating systems, and processors (REAL*16 and COMPLEX*32 objects and quadruple precision constants, which were available on the IBM 360 mainframe and Alpha workstations that cost more than a Lamborghini). I have dealt with many such problems before and could coach you through the process but it would not be easy. I have attached a sample of the problems you will encounter if you try to compile this code on anything but an exotic Linux machine running Intel FORTRAN (which costs a fortune). I have been using REAL*16, *32, *64, *128, *256 since 1980, but I don't do it in FORTRAN. I use assembler that can be called from FORTRAN or C. I wrote a book on this subject, which happens to be free today https://www.amazon.com/dp/B09T3XR2W3 I don't know if this extended precision is essential for these calculations, but if it is, this will be a tall mountain to climb.
  • asked a question related to MATLAB
Question
6 answers
I am trying to programming fMRI (BOLD) data processing via SPM12 using MATLAB. I have four stimuli that each participant should note and respond according to each stimulus. When I want to set conditions for 1st-Level, in data some runs lack some stimuli (some of the stimuli have not been used). for example, there is no second-stimulus in run-2, but in others have been used.
Now, should I define an empty vector/zero value for "Onsets of the Condition" or in general I should not set a second-stimulus condition for run-2?
Relevant answer
Answer
Hello Amin,
just wonder if the empty array is still working for you?
With SPM 12 v. 7487 I get a message:
Item 'Onsets', field 'val': Size mismatch (required [Inf 1], present [0 0])
This suggests that at least in the somewhat recent SPM versions there is an internal check for the size of the onsets array.
  • asked a question related to MATLAB
Question
4 answers
I first study finite element method and dealing with matlab program, I can solving PDE by linear trianglution mesh but I can't by quadratic or higher degree for triangulation. My question is: How I can make a matlab code for solving a PDE by Quadratic finite element method ?
Relevant answer
Answer
Sorry!, I can’t give you detail information on this.
  • asked a question related to MATLAB
Question
1 answer
I have around 30 samples( both from system and actual known values). is MSE method is suitable?
Relevant answer
Answer
Yes MSE method is suitable for comparison and use of R-square is also the best one.
  • asked a question related to MATLAB
Question
1 answer
I am looking for help on modeling in Matlab:
1) A uniform bar with an unknown linear heat source
2) A point load over an axial bar with an unknown heat source
The temperature distribution can be over the entire bar. The bar can be tapered. All the unknown variables can be set on your own. Just looking to learn how to model such a problem and determine what heat source caused the temperature distribution. Thank you!
  • asked a question related to MATLAB
Question
16 answers
Metaheuristics are a class of Artificial Intelligence algorithms. There exists several metaheuristics to solve a variety of optimization problems. The list is lengthy enough. Researches are in search of more efficient algorithms, and hence proposing newer metaheuristics. Sea Lion Optimization Algorithm is one such metaheuristics. The algorithm is claimed to outperform Particle Swarm Optimization (PSO), Whale Optimization Algorithm (WOA), Grey Wolf Optimization (GWO), Sine Cosine Algorithm (SCA) and Dragonfly Algorithm (DA). Can anyone please provide some sources for implementing the Sea Lion Optimization Algorithm in any programming language?
Relevant answer
Answer
  • asked a question related to MATLAB
Question
3 answers
My background is control engineering (I studied all ogata book) but It's my first time to read in optimal control and I want recommendations for optimal control books for a beginner. It will be nice to be with Matlab examples.
Relevant answer
Answer
"Optimal Control: An Introduction to the Theory and Its Applications" by Michael Athans, Peter L. Falb is a classic book to learn vividly on the subject.
Then there are others books, such as,
“An Introduction to Optimal Control Theory” by Donald E Kirk , etc.
  • asked a question related to MATLAB
Question
2 answers
Fs=?; %Sampling frequency ?KHz
Flp=?;
Fls=?0;
Wp=2*Flp/Fs;
Ws=2*Fls/Fs;
Rp=?; %(unit:dB)
Rs=?; %(unit:dB)
[N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
[b,a]=cheby1(N,Rp,Wn); %
[hw,w]=freqz(b,a);
subplot(2,1,1);
plot(w/pi,20*log10(abs(hw)));grid on;
xlabel('ω/π');ylabel('amplitude(dB)')
title('BM filter');
subplot(2,1,2);plot(w/pi,abs(hw));
grid on;
xlabel('ω/π');ylabel('amplitude(H)');
This is for matlab use.
Can you please give me some advice on this?
I knew that The basement membrane model consists of 108 or 54 second-order low-pass filters cascaded in decreasing order of cut-off frequency.
Just wanna a simple model of cochlear.
Relevant answer
Answer
Thank you very much for providing this article!
  • asked a question related to MATLAB
Question
1 answer
I am working on the fault detection and fault classification in power system using wavelet and ANN in matlab/simulink. I need to sense the fault current from the power system model drawn in simulink, and the waveform of the fault current displayed in the scope will be converted into data and has to be stored temporarily in the form of array in workspace (as a memory) and this data samples stored in the array shall be fed to wavelet code (along with 0.05 sec time step, so that window can be made) and the wavelet code can calculate the fault coefficients and these fault coefficients can be fed to the ANN controller to detect the correct type of fault. Once the data samples is fed to the wavelet code after 0.05 sec, that data samples stored in array will be cleared and new data samples will be stored in the form of array in workspace. Again this data samples is fed to wavelet code and wavelet code will calculate the fault coefficients and after next 0.05 sec the data samples stored in the array will be cleared and new data samples will be stored in the array in workspace. In this way at every 0.05 sec time step, the data samples will be stored in the array and will be given to wavelet code and the array will be cleared and new data samples will be stored in the array. This array is called "temporary array".
The question is that how to create this temporary array in MATLAB ? What is the matlab code syntax for creating this temporary array ? I just want only suggestion. I am not asking for an exact answer.
Relevant answer
Answer
You can create temporary array as follows
tmp_array = zeros(N_rows, M_columns);
See also:
  • asked a question related to MATLAB
Question
3 answers
Hello everyone, I would like to convert the code of Matlab to Python as soon as possible (the code for Matlab is attached here) please I need support
Relevant answer
Answer
I hope that this "Ask the Expert Video" may answer a question about how to call Python® libraries from MATLAB and vice versa.
  • asked a question related to MATLAB
Question
1 answer
ex:
10.1016/j.aej.2017.01.044
How can i find plot 6-D 6 Fractional-Order Chaotic System in MATLAB code or Mathematica ?
  • asked a question related to MATLAB
Question
3 answers
Does anyone tell me where I can find the MOPSO algorithm in Matlab ?
  • asked a question related to MATLAB
Question
2 answers
MATLAB has the app of SVM regression in which we can perform SVM. I want to export that model with all the details for generating the objective function for further use of that model. Can we do so? What is the procedure for that?
Relevant answer
Answer
Dear Sakshi Tak :
You can export your best model to the workspace after you create regression models interactively in the Regression Learner app. Then you can use that trained model to make predictions using new data.
Regards;
Ehtisham
  • asked a question related to MATLAB
Question
11 answers
Hey all. I have two signals as shown. the red one is how my output should look like (the ideal case) and the blue one is what I am actually getting. I am quite new to signal analysis so was asking what are good metrics I can use to find the similarity between my generated signal and the ideal signal? I have looked at cross correlation and SNR using MATLAB, but I wanted to know if there are more methods out there that can provide me with a clearer picture specially with regards to how shape similarity etc.
Thank you all again.
Relevant answer
Answer
Correlation and Normalised Cross correlation (NCC) coefficients
  • asked a question related to MATLAB
Question
1 answer
i need to design a model with some specifications
To Design a Fuzzy Control FLC that uses the indirect field-oriented control IFOC approach to regulate the velocity of an IM motor please i need an urgent help and solution
Relevant answer
Answer
yes
  • asked a question related to MATLAB
Question
6 answers
I export from Ansys Mass , Damping and stiffness sparse matrices.
Does anyone know how can I represent these matrices on MATLAB State space model?
  • asked a question related to MATLAB
Question
1 answer
I could not find how the "gamultiobj" (a NSGA-II algorithm) penalizes the fitness function for the population violating constraints? Any clues would be appreciated.
Thank you!
Relevant answer
Answer
Rajan Bhandari I can't view the source, but having implemented similar algorithms, solutions exceeding constraints would be set to -infinite fitness. Because the implementation follows an elitist selection schedule, invalid solutions would not survive.
An implementation can also opt for a more invasive approach of replacing invalid solutions when these are generated, but that has risks (you may get stuck in loops).
Sometimes omitting minor violations of constraints can help find better optima, so an alternative (but unlikely) approach is to add a continuous smooth fitness penalty term to solutions exceeding a constraint, that gives the selection algorithm the opportunity to 'rescue' the parts of the solution that are evolutionary beneficial, while avoiding outputting invalid solutions.
  • asked a question related to MATLAB
Question
5 answers
Hi,
please can somebody provide me any heurstic matlab code for extrating PV parameter
  • asked a question related to MATLAB
Question
1 answer
how get the C code generation form MATLAB level-2 S-function?
Relevant answer
Answer
Hi, it would be best to be more focused on a specific form of query. But ideally, you would start off by first understanding the function using MathWorks help links:
If you have a more specific query please do let us know. Thanks!
  • asked a question related to MATLAB
Question
3 answers
For example, to classify the data in Python or such programs, we use 0001; 0010; 0100; and 1000 digits for four classes. Can we simply use 1; 2; 3 and 4 in MATLAB? This will help me diagnose if I have multiple classes.
Relevant answer
Answer
For machine learning classifiers, I suggest you keep the "binary" encoding of output data (in fact, you seem to use the "one-hot" encoding, since the corresponding binary numbers would be 001, 010, 011, 100).
In the one-hot encoding all class outputs are equally far away from the "origin", i.e. they are equivalent from the network's point of view. Assigning decimal numbers to classes, you force the network to predict "larger" values for some classes and "smaller" values for others, while the output scale does not carry any information in reality. I think this could lead to worse performance or slower convergence.
If decimal encoding helps some other stage of your workflow, you can of course transform the network outputs to decimal afterwards.
  • asked a question related to MATLAB
  • asked a question related to MATLAB
Question
3 answers
Hello,
During the analysis of twin transfer or slip transfer of alloys, the criteria of displacement gradient accommodation (DGA) and stress-driven accommodation (SDA) were used.
I tried to figure out the correlation among them with the grain orientations, boundary conditions, slip/twin systems, and external loading. But I still did not get the fundamental cores.
I hope it can be written like m prime or Schmid factor with a clear explanation.
Hope someone good in this field can provide constructive guidance!
Best wishes,
Biaobiao
Relevant answer
Answer
Hello Yang,
This is still an open question, because SDA & DGA have different driving forces. In the first method the most stressed system is selected. In the second, the configuration which minimises the strain (or displacement) is selected.
We attempted to separate these effects for the related problem of stress/strain induced phase transformations:
From our experiment and calculations, it appears that there is no correlation between stress-driven & strain-driven changes.
One thumb-rule could be that when the strains are very large (eg. martensite in steels), the DGA-type approach is favoured, and at low strains (or displacements), the SDA-type approach is favoured.
In the actual problem of slip transfer, we've done some experimental work that seems to match the DGA-type approach more:
Hope this helps!
  • asked a question related to MATLAB
Question
11 answers
A set of differential equations are provided which represents the non linear system.How can we convert it into a plant model to develop a controller? There are five state variables.I've shown only two equations in the sample image
Relevant answer
Answer
Dear Suhaib Jaleel:
You can benefit from this Link about your issue:
Topics Solved:
--Solve Nonlinear System Without and Including Jacobian.
-- Large Sparse System of Nonlinear Equations with Jacobian.
--Large System of Nonlinear Equations with Jacobian Sparsity Pattern.
--Nonlinear Systems with Constraints.
--Solver-Based Optimization Problem Setup.
--Equation Solving Algorithms
Best wishes....
  • asked a question related to MATLAB
Question
2 answers
Hi, I am implementing path planning using PSO but I have no idea what would be the max and min values.
I have done some tests with arbitrary values but they only work for some cases.
Can you help me?
Relevant answer
Answer
Maybe I'm a little late but...
In PSO, min and max values usually will define the algorithm search space. I'm not that familiar with path planning, but , In your case it looks like the search space is the minimum and maximum values the path can assume. That is, if the path goes from point (0,0) to point (5,5), that would be the min and max values.
  • asked a question related to MATLAB
Question
5 answers
In his name is the judge
Hi
for using matlab facilities especially matlab controller like fuzzy have to sending and receiving data between matlab and opensees, in fact i want send two data as fuzzy controller form opensees to matlab after each time history step in opensees and then matlab send back one output to opensees.
to achieve this i have to connect matlab and opensees with openfresco it means i do hybrid simulation.
first is this possible to do this?
second is there any one do work like this, do hybrid simulation generally or specifically do hybrid simulation between matlab and opensees. if yes i am very thankful to share work with me or for some aim.
have to say i prefer not to use openseespy and i almost read all example and guide in openfresco site and even on each site but i cant do this right.
Any help is greatly appreciated.
Take refuge in the right.
Relevant answer
Answer
I almost read all Openfresco helps including this pdf, but unfortunately none of them didnt work.
  • asked a question related to MATLAB
Question
4 answers
The problems I am currently considering are strongly related to shape optimization, especially isogeometric shape optimization. I have implemented MATLAB code that supports multi-level shape optimization and I am wondering if there is a reference implementation using MATLAB or C++. During my search, I found that the topology optimization community does a great job on open-source implementations. By contrast, why is there so little open-source toolbox in the shape optimization community?
My questions are summarized as follows:
  1. Is there a recommended shape optimization implementation written by MATLAB or C++? (FEA-based shape optimization is OK, but isogeometric shape optimization is preferred)
  2. Why doesn't the shape optimization community share their implementations as the topology optimization community does? What's the historical reason or what?
Meanwhile, colleagues with similar research interests are very welcome to contact me.
Relevant answer
Answer
Dear Ye Li,
I recognize the attached picture as it comes from a paper of mine.
Indeed, we are sharing our iga code! There is a researchgate project dedicated to it: www.researchgate.net/project/YETI-YET-another-Iga-code
Hopefully, we are going to update the project page very soon.
You can find a git repository of the code here: https://lamcosplm.insa-lyon.fr/plugins/git/yeti/yeti
There you can find and run all the optimization examples presented in the aforementioned paper (doi: 10.1007/s11831-020-09458-6).
It is however a python code (and not matlab), but I suggest you to give it a try!
Best,
Thibaut H.
  • asked a question related to MATLAB
Question
6 answers
Could you please help me that how I can generate 10^6 random variables that have an alpha mu distribution.
Thank you in advance
Relevant answer
  • asked a question related to MATLAB
Question
4 answers
One way to display multi-attributes in seismology is to use 2D colormaps. Can anyone advise how to use 2D colormap in MATLAB in the imagesc command?
Relevant answer
Answer
Perhaps you may check MathWorks community, there are many similar Qs with helpful As. For example:
  • asked a question related to MATLAB
Question
1 answer
I have an eeg.edf recording of 20 channels that I opened in Matlab as a timetable. How can I calculate the mean amplitude value for each channel using a function?
Thank you.
Relevant answer
Answer
You can convert your edf file to mat file by these code in Matlab 2020:
clc;clear all;close all
tt = edfread('FileName.edf');
timeList = tt.(tt.Properties.DimensionNames{2});
Data=cell2mat(timeList);
save('FileName.mat','Data') %%% save your data in .mat file in current Folder
If you want to calculate the mean amplitude value for each channel you can use mean function in matlab :
example: Data has 20 channels and 1000 samples, so it is 20*1000.
for i=1:20
Mean_Amp(i)=mean( Data(i,:) )
end
Mean_Amp should have 20 values according to each Channels.
  • asked a question related to MATLAB
Question
1 answer
I opened the edf file in Matlab as a timetable. What would be the easy way to plot all of the channels (20) on the same figure?
Relevant answer
Answer
You can use EEGlab toolbox to see whole channels and do pre processing in Matlab.
Both you can load edf file in EEGlab or change the edf to .mat then load it to EEGlab and plot all the channel in the same figure by using this way:
plot tab , channel data (scroll).
  • asked a question related to MATLAB
Question
4 answers
I am trying to analyze track irregularities data with Fractal dimension on MATLAB using Ruler method, I am finding it difficult to develop the fractal dimension calculation algorithm.
Relevant answer
Alright, Thank you for coming through, I will ask them. Aparna Sathya Murthy
  • asked a question related to MATLAB
Question
4 answers
Hello
Dear researchers, can you explain how to convert MATLAB to Python?
I need your guidance on Grasshopper Optimization Algorithm (GOA) algorithm that was written in Matlab,
Thank you very much
Relevant answer
Answer
DEAR Muhammad Ali
Thanks a lot for sharing these links.
  • asked a question related to MATLAB
Question
3 answers
Dear Colleagues
I hope you are doing well. I want to calculate thermodynamic properties of ammonia and water mixture. A part of my simulation is shown below:
X=0.5294
Y=1-X
h = refpropm('h', 'T', 67.7+273.16, 'P', 116.92, 'water', 'ammonia', [Y X])
However, following error is shown:
Error using cell2mat (line 52)
CELL2MAT does not support cell arrays containing cell arrays or
objects.
Error in refpropm (line 318)
z_kg = cell2mat(varargin(nargin));
What should I do?
Relevant answer
Answer
You can create the mixture in the Refprop using the UI and then call the mixture in coolprop using the following line of code:
PropsSI('S', 'H', h, 'P', p, "REFPROP::y.mix").
Let me know if you need more details
  • asked a question related to MATLAB
Question
2 answers
I am working on chaotic dynamics of bldcm involving Caputo derivative, so I am seeking on Matlab code helpful for this problem.
Relevant answer
Answer
The required MATLAB code can be found on the link as shown below:
Best Regards
  • asked a question related to MATLAB
Question
1 answer
Hello, I'm currently working on fitting some data with an Anand model. Data is in the form of strain-stress graph from the process of a hot-working pure titanium.
I'm using a Matlab Curve fitting tool and I have to do some tweaking for my lower and upper parameteres bounds calculated with nonlinear least square method. One of the parameter, which I'm looking for is "s0" - initial deformation resistance. In many works s0 values are around ~50 MPa. How can I determine if the value found by Matlab is reasonable? Can I somehow take an educated guess based on my data to find if this value is correct?
Relevant answer
Answer
The initial value of deformation resistance, s0,
see the following document
  • asked a question related to MATLAB
Question
10 answers
Is there any online tool to convert python scripts to MATLAB ?
Relevant answer
Answer
I hope that this "Ask the Expert Video" may answer a question about how to call Python® libraries from MATLAB and vice versa.
  • asked a question related to MATLAB
Question
2 answers
Hello,
In my experimental work, I analyze spike and amplitude by taking ECoG recordings from rat cortex using bipolar electrodes. I can do these analyzes in Labchart program. In these EcoG recordings, I want to do different analyzes such as spectral power analysis, % power in alpha, beta and gamma waves, etc.
Can I do these analyzes in Labchart? I tried the Matlab program for this. But I could not analyze. Can you help me on how to do it?
Relevant answer
Answer
Hi Carlos Alberto Stefano Filho , Thank you very much for your reply. Since I had trouble loading data in Eeglab, I started to analyze in Python-MNE software. In fact, I managed to do a lot of analysis. I'm having trouble with an analysis right now. I want to show wavelengths in spectrogram. But for the dataset, software wants epoched data and events. I'm trying to do this analysis without them.
  • asked a question related to MATLAB
Question
1 answer
I'm using SPSS software to model my statistically variables. I'm used to model variables in MATLAB, R and Python, this is my first experience with SPSS software. I've create model on my observed dataset however the result of model revealing some calibration with oberserved dataset. How can I can calibrate SPSS timeseries model using programming language.
I actually want to run infinite time model on my dataset and want to set certain parameters e.g., RMSE between observed and predicted dataset fall under my descries limit I want to save that model parameters. Is there any way to do SPSS software with some programming ?
Time reply will be appreciated
Relevant answer
Answer
Please respond if any one has idea?
  • asked a question related to MATLAB
Question
3 answers
I have installed bellhop on gfortan compiler and I have a channel model but don't know how can I run the model in Bellhop matlab
Relevant answer
Answer
hi.,
kindly refer this link:
best wishes..
  • asked a question related to MATLAB
Question
4 answers
In his name is the judge
Hi everyone
In order to use controller for structure with absorber, have to connect matlab and opensees in real time :
it means in each loop in opensees data must send to matlab and then matlab do some prossess with controller like fuzzy then send back data to opensees
Relying on researching and consulting the only way is use hybrid simulation (like openfresco),
do you have any other idea or way to connect these two programs without using openfresco?
Translation results
star_border
Consult
Wish you best.
Take refuge in the right.
Relevant answer
Answer
dear Eknara Junda thank you
i have to do optimization and design controller and for both of them i use matlab toolbox and i learned them fully, becuase of this i prefer to link matlab and opensees in real time.
  • asked a question related to MATLAB
Question
3 answers
how to use matlab code for the risk assessment model using fuzzy random variables .
Can anyone suggest pl?
Relevant answer
Answer
Look the link, maybe useful.
Regards,
Shafagat
  • asked a question related to MATLAB
Question
3 answers
Actually, I wish to understand the process and coding to define new wavelet transform. So that I can understand and modify some wavelet transform to get better results. There is inbuilt wavelet transform in MATLAB and we just have to choose wavelets. I wish to define new wavelet transform.
Relevant answer
Answer
By converting the signal from 2 dimensional signal to 1 dimensional, the transformation could be processed on vectors.
  • asked a question related to MATLAB
Question
4 answers
Hello everyone. Hope you're doing well
I am working on different models for correlating solubility data
One of the models is LSSVM which is an artificial neural network.
I have some problems using the model in MATLAB.
Appreciate any help which can help me in this area
Best wishes
Hassan Nateghi
Relevant answer
Answer
Thank you so much for your help. I really appreciate it
About the classification learner app, should we create and run the model in that area? I mean there is no need to work with editor and command window?
Many thanks for your assistance
Hassan
  • asked a question related to MATLAB
Question
3 answers
I have solved fractional initial value problems using predictor-corrector algorithm, how do I solve fractional boundary value problem using the same algorithm or other algorithms in MATLAB, please help me to write code for it or please share the MATLAB or Mathematica code for it.
Thank you in advance.
Relevant answer
Answer
How do we solve the fractional-order initial boundary value problems in Mape?
Answer or code may be sent to abiodunowoyemi9@gmail.com, please
  • asked a question related to MATLAB
Question
3 answers
Hello,
How can I plot the Power Spectrum for all channels of my signal(EEG)?
I want to find the correlation matrix in MATLAB. I've really got baffled.
Thanks in advance for your answer,
Neda
  • asked a question related to MATLAB
Question
6 answers
Hi,
How to calculate j integral using the domain integral method in ANSYS code or MATLAB code?
Relevant answer
Answer
Thank you so much, Mr. Xutao Sun
It will help me a lot
Best regards
  • asked a question related to MATLAB
Question
2 answers
Hello Everyone. I have recently been trying to tackle the issue of a tilt rotor aircraft control and developing a set of PID controllers for that. I have attempted to use this simulink model but it didn't work for me.
I am specifically having a problem in controlling the transition of the aircraft a it stands. Do you know of any matlab simulink models that I can use as a reference for control architecture?
  • asked a question related to MATLAB
Question
7 answers
Hello my friends I need to import data for magnetization characteristic into lookup table In MATLAB but I don't know please I need vedio to explain that
Relevant answer
  • asked a question related to MATLAB
Question
4 answers
In his name is the judge
Hi
can you say wich set of data is best to train and test ANFIS in matlab.
i mean how generate data to get less error, like nuber of data or Dissipation of them
Wish you best.
Take refuge in the right.
Relevant answer
Answer
thank you so much i'm going to try these.
  • asked a question related to MATLAB
Question
3 answers
i can extract the time trace of astrocytic calcium signal ,and calculate detaF/F0 by defining the total mean of the trace as F0. and simply calculate the amplitude or area under curve in the excel using the "max" or "sum" functions.
but i want to get other parameters like rise time, decay time ,half width,frequency based on the threshold,
i know many useful tools to achieve this analysis in this website{neuroscience imaging analysis tools | 08 november 2021 | Biafra Ahanonu, PhD (bahanonu.com)}
but i'm inexperience about those algorithm, mathematical equations. Besides, i'm not good at those softwares like Matlab,python,R studio.
So is there any easy and straightforward turtorials to help me get these parameter?
if Matlab ,python,R studio were used, graphic tutorials are better.
Relevant answer
Answer
  • asked a question related to MATLAB
Question
4 answers
In his name is the judge
Hi
I want design cotroller in to control active force of damper.
On this purpose, i analyzed structure with damper, wich is tlcdg, and get data whic use for generate controller. data are accleration and velocity of damper as input and dampers force as output ( i mean force wich made by own damper under earthquake excitation, not active force).
here is anfis properties :
number of inputs are 2
number of outputs is 1
generate fis method is grid partition
number of membership function are 4 for each input
input membership function type is guass2mf
output membership function type is linear
opt method is "hybrid".
(have to say i tried different epochs membership function , .....)
Unfortunately anfis toolbox in matlab refuse to train and build Suitable fuzzy controller wich means error is too much in training, so this answer is not acceptable.
i have some idea for make it true but i'm not sure.
here is my ideas :
* first i think train controller with more or less data ( training data are about 2000 wich is under 100s earthquake excitation but when i reduce earthquake excitation to 10 or 15 seconds the error is acceptable however i think this solution is not good.)
* second maybe i must try one damper for training.
* the last idea is to assign force on the damper location and get acceleration and velacity for generate trianing data.
here is my data and shot frome my try.
Any help is greatly appreciated.
Take refuge in the right.
Relevant answer
Answer
Get your data into excel and see if there will be marked inputs that show wrong annotations, which will not allow computing interface to run. Just a comma in place of a dot can through you off the rail. If this pulls through, then follow with Dr Emmanuel Arinze"s suggestion. I'm sure by the time you walk through these steps, you will overcome your challenge.
Good luck
  • asked a question related to MATLAB
Question
4 answers
I have recorded two interferogram out of which one is recorded without any phase object and the other is recorded with phase object. Now I want to get information about the phase object using MATLAB. Can anyone help me
Relevant answer