Answered
What is a comparison of m file and livescript file?
Livescript can insert text and equations as narration Livescript inserts plots "in-line" or to the right hand side, instead of ...

4 years ago | 0

| accepted

Answered
Is there a way to modify the path for ".." ( shortcut ) ?
You can change the startup folder; see https://www.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html The effect ...

4 years ago | 0

Answered
How add my folder '+op' to the path Matlab?
You can never add a + folder to the MATLAB path. Instead, you add the folder containing the + folder.

4 years ago | 0

| accepted

Answered
Spit an array when the value 0 occurs until the value 2
Your request is a bit ambiguous, so I will give two possibilities. loc0 = find(YourArray == 0, 'first'); %use this loc2F = ...

4 years ago | 1

Answered
How to save an app property to an .m file?
When you save() with -struct then the name that you give must be the name of a full variable. That is, copy app.dataPaths to a ...

4 years ago | 0

| accepted

Answered
run matlab help function_name from terminal
matlab -nodisplay -nodesktop -r "help function_name"

4 years ago | 0

Answered
How do i get multiple values all at once from cell array?
Your options: loop cellfun arrayfun (effectively the same as cellfun) cell2mat to form a 3d array, and then index; this is v...

4 years ago | 0

Answered
能不能把下面储存在元胞里面的t(i)换成具体的值,是不是有强制计算什么的
t=[1 2 3 4 5] for i=1:4 cmd = sprintf('@(a)%.16g.^a-%.16g.^a', t(i+1), t(i)); F{i} = str2func(cmd); end F

4 years ago | 0

| accepted

Answered
Why is 0.3 - 0.2 - 0.1 not equal to zero?
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

4 years ago | 3

Answered
why 350*0.001 - 0.350 and 351*0.001 - 0.351 are different from zero
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

4 years ago | 1

Answered
Undefined function 'adaptcluster_kmeans' for input arguments of type 'uint8
That function is not part of MATLAB. You need to install https://www.mathworks.com/matlabcentral/fileexchange/45057-adaptive-kme...

4 years ago | 0

Answered
How to reshape any matrix using while loop or any other method?
A = B(:, 1:6:end) ;

4 years ago | 0

Answered
How to free memory from C-code in simulink embedded matlab code block
StopFcn will not have access to the persistent variables. Use global and a datastore

4 years ago | 0

Answered
Can Matlab record an audio with a sampling frequency of 800 hz
audiorecorder cannot be used for this purpose. Although the frequency range supported is operating system and hardware specific,...

4 years ago | 0

Answered
Do you edit code on Github?
The code you upload to Github should be tested code (with the possible exception of Github collaboration mode)

4 years ago | 0

| accepted

Answered
Minimisation of a scaler function
The function is ST(fSL .* (exp(scale .* SC))) with varying values of "scale". You did not happen to show the definition of ST ...

4 years ago | 0

Answered
Good day, Please I tried searching for drive cycle on my Simulink but I didn't find it.
https://www.mathworks.com/help/autoblks/ug/install-drive-cycle-data.html You need Powertrain Blockset

4 years ago | 1

| accepted

Answered
How to do +,-,*,/ with one scalar and one matrix(IN GUI)?
str2double always returns a scalar when the input is a character vector or character array. It only returns a matrix if the inpu...

4 years ago | 1

Answered
How to make xtick where there is a tick label in bold?
xticklabels({'','','\bf 1980','','','','','\bf 1985',... '','','','','\bf 1990','','','','','\bf 1995','','','','','\bf 2...

4 years ago | 0

Answered
Divide an image vertically into two equally luminous parts, ..., calculate the luminance of each part.., PERSONAL NON-FUNDED RESEARCH,
"divide the picture vertically such that the two parts (left and right) have equal luminance" Consider a checkerboard pattern...

4 years ago | 0

Answered
a single line of code that will take complex variables x and y and define a variable z as the phase of the product of x and y.
https://www.mathworks.com/help/matlab/ref/angle.html but does the angle need to be in degrees or radians? And what range?

4 years ago | 0

Answered
How to remove scientific notation from axes labels on log-log plot, and add thousands separator?
Although you can set ax.xAxis.TickLabelFormat and ax.XAxis.Exponent none of the automatic formats support thousands separator. Y...

4 years ago | 0

| accepted

Answered
nonconformant arguments, Array substitution
You cannot. Breadth is a column vector of length x. [1;4;2;4;2;4;2;4;1] is a column vector of length 9. You cannot multiply thos...

4 years ago | 0

Answered
Convert Txt file to an array
data = readmatrix('C:\Users\Acer\Desktop\project hydro\Offset.txt');

4 years ago | 0

Answered
datasets related 2 questions
No, dataset() does not support storing string() objects. dataset() automatically converts string() objects to a cell array of ch...

4 years ago | 0

Answered
Ylim for bar subplot
subplot(3,1,3); By default ylim() applies to the current axes. You just called subplot() so the current axes is the third o...

4 years ago | 0

Answered
Error - I am new to Matlab and I just need help to graph this data I am getting a strange error.
for k = [2;20;200] An obscure fact is that "for" iterates along *columns* of the expression. Your right hand side is a colu...

4 years ago | 0

Answered
Matlab script generating corrupted workspace
I wonder if you are accidentally saving code to the mat file? In any case: do not save() a mat file directly to OneDrive espe...

4 years ago | 0

Answered
Using parfeval to call eval function not working - why?
Transparency violation. parfor and parfeval need to know the names of the functions at analysis time so that it can copy the cod...

4 years ago | 0

| accepted

Answered
Use two different color schemes in contour plot
You will need to use two different axes, as only one colormap can be active per axes. The two axes can be in the same position. ...

4 years ago | 0

Load more