Answered
Hello, I am working on a matlab code for school and it is using a while loop. The problem with this is I want the while loop to run until the variable doesn't equal itself.
while R ~= R That R ~= R will only be true if R is NaN. I want the while loop to run until the variable doesn't equal itself. ...

2 years ago | 0

Answered
I had problem using "readtable" on my matlab
which -all readtable will very likely show that you have a third-party readtable.m that is interfering with the Mathworks' func...

2 years ago | 0

Answered
Steepest descents methods algoritme for higher dimensional objective functions
fminsearch() uses simplex algorithm, not Steepest Descent. One implementation of Steepest Descent is https://www.mathworks.com/...

2 years ago | 0

Answered
Saving Money on Yearly Software Maintenance Service Subscription
You would not save any money. When you renew your SMS, you are required to pay any payments that you might have missed. Histor...

2 years ago | 0

Answered
fplot behavior at breakpoints
You can increase the likelyhood of the line being shown if you increase the MeshDensity . However, you should expect it to miss ...

2 years ago | 0

Answered
finding altitude using matlab atmosisa given pressure
You use the equation given in https://en.wikipedia.org/wiki/Pressure_altitude Make sure you convert pascal to millibars .

2 years ago | 0

Answered
I'm working with EEGlab and I need to create a bin structure for detecting codes in mu dataset. The probleme is that it doesn't recognize the following function "bin_info2EEG?
bin_info2EEG appears to be part of matlabmk http://kutaslab.ucsd.edu/matlabmk_fn_docs/matlabmk/index.html

2 years ago | 0

| accepted

Answered
finding variable of a given equation
Q = @(v) sym(v); AonAstar = Q(16); gamma = Q(1.22); syms b eqn = AonAstar == ((b)^(1/gamma)*(1-(b)^((gamma-1)/gamma))^(1/2))...

2 years ago | 0

| accepted

Answered
call callback function in my code
You will need to set the Access attribute of the method definition to permit your code to call the method. https://www.mathworks...

2 years ago | 0

| accepted

Answered
make the execution faster
Is it possible to reduce the execution time by vectorizing the for loop? for i=1:length(t)-1 k1=func(x(:, i)); k2=fu...

2 years ago | 0

Answered
I need help with my code for a degree in IT
function out = getPosition(obj) function setPosition(obj, p) function out = getTreat(obj) ...

2 years ago | 0

Answered
Warning: The next image file directory at byte position 944016033 is at or beyond the end of the file.
The file is corrupt. 200 images can be read from it. It also generates warnings, Warning: TIFF library warning - 'TIFFReadDi...

2 years ago | 0

Answered
How do I insert a toolbox in matlab online editor?
First off: MATLAB Online does not support all toolboxes, and has restrictions on some of the toolboxes. That said: if you login...

2 years ago | 0

Answered
How to Extract Text from Real-Time Generated Images?
You can pre-train against a set of representative images; see trainOCR However... I note that ocr tends to be on the slower si...

2 years ago | 0

Answered
How can I get inverse matrix at 50 x 50 sparse matrix?
If inv(A) is all inf then chances are that A is singular. You should check rank(A) before proceeding. You should probably not b...

2 years ago | 1

Answered
How to set up shared data for multi-user simultaneous save and load?
Simultaneous access is a true problem that you are right to be concerned about. One trick: If you fopen() with "append" mode, ...

2 years ago | 0

Answered
how can i use student version instead of trail version
Delete all of the current license files; see https://www.mathworks.com/matlabcentral/answers/99147-where-can-i-find-matlab-licen...

2 years ago | 0

| accepted

Answered
Use specific variable from index to plot answer of equation
plot(delta_rfO(Q(1,9)),delta_rfH(Q(1,9))) You are trying to use Q(1,9) as a subscript to delta_rf0 but Q(1,9) does not happen t...

2 years ago | 0

Answered
I need help to figure out why these variables aren't being found.
load("C:\Users\1537268928E\OneDrive - United States Air Force\Desktop\Pn.mat","pn"); load("C:\Users\1537268928E\OneDrive - Unit...

2 years ago | 0

| accepted

Answered
How can I improve my plots including a dashed line
semilogx(data_resi_inter.PGA1100,delta_ij_inter,'^r'); The x axis is being set to log. plot([0 0.6],[0 0],'k--','LineWidth',1....

2 years ago | 0

| accepted

Answered
How to avoid repeatly loading parallel pool when running .exe matlab file in cmd
The official way to reduce the initiation time is to use the MATLAB Production Server product; it keeps pools "warm" so there is...

2 years ago | 0

Answered
Can "Pause on Errors" be enabled by a script, or set as the default?
dbstop if error It is sometimes useful to use dbstop if caught error However, it turns out that caught errors are expected in...

2 years ago | 2

| accepted

Answered
How to process cwt in chunks?
since I have thousands of chunks, the data, once combined, does not look smooth and might have artifacts Consider: if you proce...

2 years ago | 0

Answered
How to go through each splits of a set?
dec2bin(0:2^N-1) is pretty short and is fairly efficient. N=10; X = dec2bin(0:2^N-1); partA = arrayfun(@(row) find(X(row,:)==...

2 years ago | 2

Answered
expanded matrix wont be bigger than 8 by 8
unique_elements = unique(element); nodemax = numel(unique_elements) nodemax is 8. K_global = zeros(nodemax, nodemax); You in...

2 years ago | 0

Answered
Problem with ploting involving function handle
sym ii That is equivalent to ans = sym('ii'); which creates the symbolic symbol ii but throws away the reference to the sym...

2 years ago | 0

Answered
Need help plotting these 'Time-Series Graphs' in the 'Chaotic attractor' for loop
Your first for j = 1:NT and your for mm = 1:Ntrans and your second for j = 1:NT are all building arrays iterativel...

2 years ago | 1

Answered
Make persistant changes in executable app by user
You have several possibilities: Use a search strategy to try to find configuration information. For example use the Windows USE...

2 years ago | 0

Answered
Error Message: Execution of script builtin as a function is not supported:
This suggests that you have somehow added a builtin.m to your MATLAB path. You will need to track it down and remove it. If you ...

2 years ago | 0

Answered
"Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters." My teacher typed 2ˆ6, and she got the answer, but I don't.
Your teacher probably typed 2^6 and you probably typed 2ˆ6 The valid entry is U+005E (unicode 5e) The invalid entry is U+02...

2 years ago | 0

Load more