Beantwortet
double for loop is possible?
You don't need to use a double for loop here, as it goes through all possible combinations of elements of a and e_ (a(1) & e(1),...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
スクリプトの何行目に何が書かれているかを特定する方法はありますか?
See dbtype - %Using dbtype on the built-in max() function dbtype max.m

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
create cell from array with specified size
Note that the specified size must completely divide the number of rows in the column vector - mymatrix=[1:24].'; size(mymatri...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Convert date data in datetime
"The problem is date corresponding to 24hrs is not coverted in datetime." Yes, because in 24 hour format, the hours are counted...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to use function(s) in FEX?
Download the FEX submission, which will be downloaded as a zip file. Extract the contents in a folder. Move the folder to the c...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with fplot - doesnt plot anything but when plotting the data individually it works
You will have to define x as a real symbolic variable (or assume that the symbolic variable 'x' is a real number). magnet.lengt...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Create a variable string array with different number of sig figs based on GUI dropdown
Use asterick to provide a value for field width - p = 0.105; n = 25; %sigFigs = str2double(app.SigFigDropdown.Value); ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting the Gaussian probability distribution for a Brownian process over time
The term inside exp() was not correct, as the 2*i term should be fully in the denominator, for which it needed to be enclosed in...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Error using displayFormula First argument must be string, char, or cell array of character vectors.
displayFormula expects text inputs as the error states. Use disp instead.

mehr als 2 Jahre vor | 0

Beantwortet
I need to find how many 0's there are in matching places, between an array and a matrix.
FSM = [0 1 0 1 1 1 0 0 0 0 0 0; 0 1 0 1 0 0 1 1 0 0 0 0; 0 1 0 1 0 0 0 0 1 1 0 0; 1 0 0 0 0 0 0 0 0 0 0 0; 1 1 1 1 0 0 0 0 0 0 0...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
"Index exceeds the number of array elements. Index must not exceed 1."
g is a scalar, but you are trying to use m and cd (both values > 1) as indices to it, which is not allowed. I believe you are...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Removing first row from .txt files and convert them to .csv format in one folder
Here is a general way of reading data from multiple files and performing operations on it. I have changed the temperature value...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Error on Beta Theta Mach equation
You are missing a multiplication operator in between M1^2 and the bracket expression in denominator, see below - Note that if y...

mehr als 2 Jahre vor | 0

Beantwortet
How to replace a categorical label by another label if the label satisfies a condition?
Here's an approach, but it does not take into account if there's a starting group with number of elements less than a given posi...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How we can do the matrix and vector in vector form?
I've demonstrated 2 methods here using reshape and colon, : . Refer to the documentation pages linked for more info. Note that ...

mehr als 2 Jahre vor | 1

Beantwortet
統計値のまとめ方
Read the data using readmatrix, calculate the quantities using max, min, mean and std. Store the results in a table with an app...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to get my answer to Display but it wont let me
The function disp accepts only 1 input argument. If you want to display the roots and the text in the same line, you will have...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Changing the name of a variable changes the results?
When the variables to solve for are not provided in the call to solve(), MATLAB calls symvar on the equations, which outputs the...

mehr als 2 Jahre vor | 4

| akzeptiert

Beantwortet
My function of L-norm doesn't work
f1 and f2 need to be defined as function handles.Notice the updated syntax used in the integrand to integral() as well - f1 = ...

mehr als 2 Jahre vor | 0

Beantwortet
Pass the text of fprintf to the plot's text
You will need to use sprintf for storing the char array, then using it as inputs to text(). You can either use disp or fprintf ...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
how to plot time, force1,force2,voltage1,voltage2 on same graph. keeping force on y axis left hand side and voltage on yaxis right hand side and time on x axis.
Use yyaxis. See the link documentation for examples. For importing data, see - readtable and readmatrix

mehr als 2 Jahre vor | 0

Beantwortet
Combine Mathlab 2023b and 2021b licenses
You should contact TMW for this issue - Contact Sales

mehr als 2 Jahre vor | 1

Beantwortet
trying to use syms and i typed in syms('y') says error
If you are using syms, the syntax to define a variable is - syms y whos The sytanx you were using is for a different funct...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Starting with all symbols, ending with mixed symbols and number?
Use subs - syms a b x %Expression y = (a/b)*x; y = subs(y, [a b], [2 3]) If you want the expression in decimal repres...

mehr als 2 Jahre vor | 1

Beantwortet
An issue with matlabFunction
mu=@(x,par)par(1).*x; sigma=@(x,par)par(2); syms x0 x dt par = sym('par', [1, 2]); LL = -1 / 2 * (log(2 * pi * dt * sigma(x0...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to connect the plot point using a line in Matlab using For loop for the below mentioned code??
Best to allocate the data in an array first and then plot - v=89.2/60; l=0.313; t=0.05; strain=0.0003537; step = 0.001; ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Error using stem X must be same length as Y.
The variable n_values has 11 elements, compared 10 elements for x_values, y_values, and expression_result (which is the result o...

mehr als 2 Jahre vor | 0

Beantwortet
Why does exportgraphics change the figure when exporting an area plot to png?
From the documentation - "exportgraphics(obj,filename) saves the contents of the graphics object specified by obj to a file. The...

mehr als 2 Jahre vor | 1

Beantwortet
Help with iterations over large file.
If the format of the data is homogenous through the file, try this - in = readlines('ascii.txt') for k=2:5:size(in,1) in...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
how to plot x= 0:0.01:10
I'm not sure what are you plotting against, but you will have to specify xticks manually - x = 0:0.01:10; y = sin(x); %Def...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden