Respondida
How can I print the mean and standard deviation in the histogram plot?
The other posters have interpreted "print" in the subject of your Answers post as displaying the numeric value. Another potentia...

más de 2 años hace | 1

Respondida
Concatenate multiple tables with different variable names vertically to a big table
Are you trying to combine rows of those tables based on the date and time information stored in the first variable? If so I woul...

más de 2 años hace | 0

Respondida
Undefined variable "handles" or class "handles.ik5".
Did you try to copy this code out of an app and run it in the Command Window? That's not going to work. Generally a handles stru...

más de 2 años hace | 0

Respondida
How can l store large numbers from input in App Designer?
They are serial numbers, and have 8 - 10 digits. l thought l can create a cell array larger than that and place them in the corr...

más de 2 años hace | 1

| aceptada

Respondida
Calculate median values of slices of array associated with histogram bins
I would use the groupsummary function with the grouping information from the idx variable. If all you want is the bin numbers, ...

más de 2 años hace | 0

Respondida
Too many input error when generating random number using exponential distribution
The exprnd function in D:\dynarc\5.4\matlab\missing\stats\exprnd.m is taking precedence over the exprnd function included in Sta...

más de 2 años hace | 2

| aceptada

Respondida
Shift array to left or right, keep length and feel zero empty area
If you're using release R2023b or later you could use paddata. A = [1 2 3 4 5 6 7 8 9]; B = paddata(A(1:end-2), numel(A), Sid...

más de 2 años hace | 0

Respondida
What is the exact use of diary in matlab?
From the diary documentation page, the short description is "Log Command Window text to file". When the diary is active, whateve...

más de 2 años hace | 0

Respondida
Loop inside a loop isn't working
If this isn't a homework assignment, I'd just use the sphere function. [X, Y, Z] = sphere; figure surf(X, Y, Z) title("Full ...

más de 2 años hace | 0

Respondida
how to make matrix output with text instead of numbers from for loop
If you must use a loop, use the strings function to create a string array the same size as the array over which you're iterating...

más de 2 años hace | 1

| aceptada

Respondida
Are the variables passing through ode45?
I recommend you not use global variables to share data between the ODE function and the function where you call ode45 with the O...

más de 2 años hace | 0

Respondida
Need Help With Function Creation and Integration
What do you know (and have fixed values for) and what are you trying to integrate over? Since nowhere in the code for the funct...

más de 2 años hace | 0

Respondida
Why does expm command work too slow?
Do you absolutely need the result as a (potentially very long) symbolic expression in t, or is computing this matrix exponential...

más de 2 años hace | 0

Respondida
Why does MatlabR2023b frequently crashes when generating figures
Searching the Bug Reports for release R2023b for "crash" in the MATLAB product I find seven hits, but none of them seem like the...

más de 2 años hace | 0

Respondida
How I would determine if a string contains multiple substrings?
myString = "This has some words in it."; s = split(myString) whichWordsAreIn = ismember(["some"; "in"], s) allWordsIn = all(w...

más de 2 años hace | 0

Respondida
Audio Toolbox transcribe not working even with toolbox and license
Looking at the documentation page for the speech2text function, I see a Note in the Decription section that looks relevant. "To...

más de 2 años hace | 1

| aceptada

Respondida
The code runs when if I do; newton_recur(@(x) x^2,@(x) 2*x,1,10) but wont work if I leave out the @(x). is there a way to do this so that the user doesn't need to add @(x)?
You mean you want the user to enter 'x^2' and '2*x' and automatically generate the anonymous functions? Take a look at the vecto...

más de 2 años hace | 0

Respondida
How to Convert data from HEX codes to Numeric
Do you mean you have the hex representation of a double precision number and want to convert it into the corresponding double? S...

más de 2 años hace | 0

Respondida
How to count the occurrence of numbers in certain value range (show 0 if no occurrence)
If your data is sorted you could use histcounts. In the case of your sample data, where all the values are integers, I'm going t...

más de 2 años hace | 1

Respondida
Matlab generate normal random sample with outliers
warning('off','all') Seeing this in the code smells bad. If you want to select a different element each iteration (and have en...

más de 2 años hace | 1

| aceptada

Respondida
Using repelem to vertially concatonate non-numeric variable
Note that the for loop approach from @Atsushi Ueno works if the "pieces" of the names are the same length all the way down the l...

más de 2 años hace | 0

Respondida
i want to find k for different values of w using determinants, after that i want to find y2 for the different values but y2 cannot be executed
w is a vector. w=1:3 y1(j) is a scalar. For purposes of this example I'll show a "dummy" y1 vector. y1 = [4 5 6]; j = 1; y1...

más de 2 años hace | 0

| aceptada

Respondida
How do i fix my newtons method code?
There is one obvious syntax error, one functionality error, and one change I strongly recommend. Recommended change On the lin...

más de 2 años hace | 2

Respondida
How to change a parameter of an objective function during optimization of simulated annealing ?
Now, my objective function has an extra parameter, in addition to the independent variables, which is a variable that I want to ...

más de 2 años hace | 0

Respondida
Error with fmincon Unable to resolve the name 'optim.coder.validate.checkProducts'.
What does this command show? which -all fmincon And do you have MATLAB Coder installed? I suspect the answers to those two que...

más de 2 años hace | 0

Respondida
How to center the bars of the histogram over the elements of the input array?
thanks a lot @Star Strider, but why do we get frequency = 5 for x = 4 ? Shouldn't it be frequency = 2 for x = 4? BinWidth and ...

más de 2 años hace | 2

| aceptada

Respondida
Inverse Matrix for 6x6 matrix with variables
The symvar function does not define symbolic variables. It identifies identifiers in an expression (other than those in a small ...

más de 2 años hace | 0

Respondida
Error Not same Vector length why not functioning
Just as a guess, did you expect this to create a 20 element vector whose first element is 0 and whose last is 2001? t1 = linspa...

más de 2 años hace | 0

| aceptada

Respondida
How to know exactly what row (or index number?) in a table based on user input?
If you had a timetable array, you could either use the == operator as others have suggested or create a timerange (if you need t...

más de 2 años hace | 0

Respondida
problem axis "x" in my graph
Those seem reasonable to me. They're showing the month and date along with the time of data for each of your X coordinates. I su...

más de 2 años hace | 0

Cargar más