Answered
Why can't I enter any number that is not a one digit number on my UITable?
If your uitable contained numeric entries, then the 1 and the 15 in h would be right aligned, like 1 15 but they are left ...

3 years ago | 0

| accepted

Answered
error when calling .dll function
That code requires that you have a subdirectory of the current directory, with the subdirectory named Mooring and inside that di...

3 years ago | 0

| accepted

Answered
How can I do a graphic using plot and changing the values of x axis from 1 to 500 at intervals of one?
for K=1:length(H) longitudonda(K)=longitudonda(H(K),T); end When K is 1, the right hand side is longitudonda(H(1),10) whi...

3 years ago | 1

Answered
How can I use this code for stabilogram diffusion analysis (SDA)?
Files=char('6r1cop.csv'); That is a 1 x 10 character vector. for i = 1:length(Files) length(VARIABLE) is defined as: tak...

3 years ago | 0

Answered
Why does my matrix looks empty when it's not?
When you global a variable after assigning a local value to the variable in the same workspace, then the local value is removed ...

3 years ago | 0

| accepted

Answered
fft2 doesnot work correct.
fft() produces output that is positive frequencies followed by negative frequencies. It is common to want to plot negative frequ...

3 years ago | 1

| accepted

Answered
how to use fitnlm with constraints
No, fitnlm does not provide any way to put in constraitns. You might consider lsqcurvefit from the Optimization Toolbox. Or you...

3 years ago | 0

| accepted

Answered
Error (( Not enough arguments))
You tried to run the code by pressing the green Run button. When you press the Run button, the function is run without any input...

3 years ago | 0

Answered
I'm having a problem averaging multiple curves using interp1
h = scatter(IVC_mean{2,z},IVC_mean{1,z}); So {1} is used as y values and {2} is used as x values. IVC_mean{6,z} = min(...

3 years ago | 0

Answered
Problems with gbasis function, I do not understand why gbasis does not work with this system of equations.
If your k are variables then you do not have polynomials. Polynomials involve constants times single variables to powers but you...

3 years ago | 0

Answered
how to solve font error
TH = text(x,y,Name,'color','b','Fontsize',16,'Fontmane','Times'); Notice that you coded Fontmane instead of Fontname

3 years ago | 0

Answered
Vectorization of For loops including If condition
When you use if or while the condition is considered to be true only if all of the values being tested are non-zero (testing nan...

3 years ago | 0

Answered
WOit gives me error says un recognized variable GWO
https://www.mathworks.com/matlabcentral/fileexchange/44974-grey-wolf-optimizer-gwo needs to be installed. You can use the Add-on...

3 years ago | 0

Answered
Error using gscatter. There must be one value of G for each row of X.
tStats=grpstats(Data,'Coarseaer_Bin',{'mean','std',fnstdMn}); tStats.Properties.VariableNames=strrep(tStats.Properties.Variab...

3 years ago | 0

Answered
Why does MATLAB refuse to work with files included with <angled> includes?
In C and C++, when you use #include "Filename.h" then the search path includes the current directory. When you use ...

3 years ago | 0

Answered
Graphing specific function over time
da = @(t)0.5+0.425*sin((2*pi*60)*t); fplot(da, [0 10])

3 years ago | 2

Answered
using variables from workspace
Please see http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F for information ...

3 years ago | 0

Answered
Can I have multiple tiled layouts
tiledlayout tiledlayout(parent,___) creates the layout in the specified parent container rather than in the current figure. Spe...

3 years ago | 0

Answered
Functions from .mlx don't work in .mlapp
Methods of your class must accept an app as parameters, unless they are declared as static methods. static methods can have any...

3 years ago | 1

| accepted

Answered
What does "undefined eq" means on fixed.Interval command
switch true case ~contains(fixed.Interval(0,60), unitVc) but are you sure it is wise to use the Fixed Point Designer facil...

3 years ago | 0

Answered
How to switch the info on a table (app designer) to a column vector?
Your fila is not global anywhere else, so when you use global fila the fila you receive is going to be empty. If in the conte...

3 years ago | 0

Answered
my code doesnt work
syms alpha; syms s; s = sqrt(EF^2 + EG^2 - 2*EF*EG*cosd(alpha) + GH^2 - 2*GH*EG*sind(alpha)); s_dot = diff(s,alpha); alpha i...

3 years ago | 0

Answered
User defined function within ode45
You have some line in which you have VARIABLE(SymbolicVariable). For example you might have A = rand(1,5); syms N sym...

3 years ago | 0

Answered
Matlab will not start after installing update 5 for Matlab 2022b
identifying the missing parts and finding a source for the exact needed version for them often takes longer than reinstalling.

3 years ago | 0

Answered
taylor series for loops
coefficient(1) = vpa( subs( f, x, a) ) Notice subs not sub But this assumes that f is a symbolic expression, or a symbolic fu...

3 years ago | 0

Answered
i need some help about Netcdf files
Use ncdisp . For example, ncdisp('example.nc') This is an example in which the available variables are /avagadros_number /te...

3 years ago | 0

| accepted

Answered
Function that takes four ages and calculates the total and average ages.
https://www.mathworks.com/help/matlab/ref/function.html shows how to start it. I recommend that you take the free two hour "M...

3 years ago | 0

Answered
Array indices must be positive integers or logical values.
You have a symbolic variable named rref so rref(X) is a request to index the rref variable.

3 years ago | 0

| accepted

Answered
How do you run a DC motor from an Arduino from the app designer app? I have looked through countless tutorials and none of them work.
When you clear all, you clear app itself, and nothing after that can work. The *only* place you should ever use "clear all" i...

3 years ago | 0

Answered
I have my record code button but I keep getting "Too many Output arguments" error from MATLAB.
if app.BSharpButtonPushed.Value app.BSharpButtonPushed(); end is app.BSharpButtonPushed a control of some k...

3 years ago | 0

Load more