Answered
Conversion of Date time from string from a table
We are working from a screenshot, so this many not be 100% accurate, but I'd combine the two strings, and then used datetime to ...

5 years ago | 0

Answered
How to save data in txt format without scientific notation.
Pehaps try using fprintf and specify a formatspec that does not use exponents. For example fid = fopen('TogotoDacMIMO1.txt','w'...

5 years ago | 1

| accepted

Answered
How do I pad with zeros?
To pad with 100 rows of zeros, do the following % to add to the top X_proj_corrected = padarray(X_proj_corrected,100,'pre'); ...

5 years ago | 0

| accepted

Answered
integration by parts toolbox
The documentation page will tell you. Look in the left navigation pane. Starting from the top, the second line states it is part...

5 years ago | 0

| accepted

Answered
how can I take monthly data from a 20 year dataset
If you convert your dates to datetimes, you can use groupsummary. There, you can specify how you want to group the data. With da...

5 years ago | 0

Answered
Turn number to datetime
Not the prettiest, but once we look at the actual data, the approach shared earlier need to be customized. Your PacketCounter c...

5 years ago | 0

| accepted

Answered
How to use the function quiver in app designer?
See this page: Graphics Support in App Designer. The general adaptation to get it to work in app designer is to explicitly tell...

5 years ago | 2

Answered
touchstone file could not be processed in matlab
It took some digging, but the error is likely because you do not have the RF Toolbox installed. From the documentation page for ...

5 years ago | 0

| accepted

Answered
While loop does not repeat
Be careful. You are heading down the path of creating an infinite loop. Your loop is not running multiple times right now due t...

5 years ago | 0

Answered
Turn number to datetime
d=101416517; D=datetime(num2str(d),'InputFormat','HHmmssSSS',"Format","HH:mm:ss.SSS")

5 years ago | 0

Answered
Import data from txt-file with writematrix
You are not going to be able to use importdata, readmatrix, etc. because the formatting of your file is inconsistant. You are mo...

5 years ago | 0

Answered
what is the error here? It is showing "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
You have split your equation over two lines without telling MATLAB. You must add an ellipsis at the end of the first line to ind...

5 years ago | 1

Answered
Import and plot stl file in AppDesigner
If you are using stlread to load the stl file, I suggest using one of the corresponding plot functions (trimesh, triplot, or tri...

5 years ago | 0

| accepted

Answered
Plotting leaving empty space before line begins
Yes, by default MATLAB will attempt to set the ticks at round numbers. If you prefer to have the limits exactly match your data,...

5 years ago | 1

| accepted

Answered
I'm new to solving ode's in Matlab, i followed tutorial, and i do not understand the error
The dimension error is due to this line, with the problematic part indicated: [... Bf*(Sa/N)*I - Be*Sa*D - Alpha*Ip -y*Ip + kk...

5 years ago | 1

| accepted

Answered
I need help writing code
You'll find all the help you need in MATLAB Onramp. Ch 4 covers creating arrays Ch 6 covers array calculations Ch 9 covers pl...

5 years ago | 0

Answered
App Designer Error using matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (line 111) 'Value' must be a double scalar.
In that line of code, you are converting the value of Gm to a string and then assigning the string to the Value property of your...

5 years ago | 1

| accepted

Answered
How to store an initial value in an array. x should start at 0 and y should start at 1. The step size is 0.25. I do not know how to store my initial x and y values in the array.
I suggest Chs 4, 5 and 13 of MATLAB Onramp (vectors and arrays, indexing and modifying arrays, and for loops)

5 years ago | 0

Answered
How to solve duration/double Error in yearfrac when forecasting prices?
My suggestion is to turn your PriceDates into datetimes. The yearfrac function can work with those. Do you know what year the ...

5 years ago | 1

| accepted

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. ERROR in plotting graph
Your plot syntax is wrong. You cannot define a variable (f) inside your plot command. Use the documentation to identify a valid ...

5 years ago | 1

| accepted

Answered
Matlab: differential equation: starting conditions are wrong?
I'm no expert, but isn't the integral equal to That way, the algebra works out to match the result MATLAB is giving you sym...

5 years ago | 1

| accepted

Answered
How to cut off 1/4 of half sphere
Set the corresponding quadrant values equal to nan. There are several ways to do this. Here is one. [x y z]=sphere; x(11:end,1...

5 years ago | 1

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 1).error in SVM
The error appears to be with how you are indexing DF. The error message is telling you the index in position 1 (rows) exceeds th...

5 years ago | 0

Answered
Plotting a function with difference between 2 vectors?
The shape is caused by where you can divide by 0. The difference is that, in the first case, this occurs along the diagonal line...

5 years ago | 0

| accepted

Answered
Illegal use of reserved keyword "end".
The problem is you forgot the closing bracket when creating dy1. [T,Y] = ode45(@Bqfun1,[0 2],[1 1 -0.01]); plot (T,Y(:,1),'b',...

5 years ago | 3

| accepted

Answered
How to group by in matlab?
Perhaps with groupsummary? A=[1 3 1;1 3 2;1 3 3;1 3 4;3 1 2;3 1 3]; [B,BG]=groupsummary(A(:,3),{A(:,1),A(:,2)},'sum'); C = [c...

5 years ago | 0

Answered
Como hacer que una función trigonométrica haga una gráfica en curva y no líneas rectas
Las funciones trigonometricas no creen graficas. Te dan valores que corresponden a los puntos indicados. Plot connecta estos pun...

5 years ago | 0

Answered
Not enough input arguments. Error in chp12ex7_b (line 3) X=y(1); T=y(2); HELP how do I fix this error?
Your code runs (see the outputs in your original post now). Do you still see the error? If so, consider clearing your workspace ...

5 years ago | 0

Answered
help me with some exercises?
MATLAB Onramp El capitulo 6 le ayudara con A, y el capitulo 13 le ayudara con C.

5 years ago | 0

Answered
Functions in app designer
This page shows how to add a custom function to an app. Note that the first input is the app structure.

5 years ago | 0

Load more