Respondida
Unrecognized function or variable 'extractDescrAppearance'. error
Neither extractDescrAppearance nor extractDescrGradient is a known Matlab command. Searching in the net does not find a match. S...

más de 3 años hace | 0

Respondida
Non linear Newton iteration method
Similar to your other question, [F1,F2,F3] is not a function handle, but a vector. Here you call F1, F2 and F3 without inputs. ...

más de 3 años hace | 0

Respondida
Can i pass an array of n strings to a function that takes n strings as input?
nameArray=[1,n] This creates an [1 x 2] vector. The 1st element is 1, the second is n. Inside the loop you do not work with s...

más de 3 años hace | 0

Respondida
Error using patch not enough input arguments
Omit all parts of the command, which are not mandatory: patch([x fliplr(x)], [yMean-ySEM fliplr(yMean+ySEM)]) Now compare this...

más de 3 años hace | 0

Respondida
Array indices must be positive integers or logical values
I guess boldly, that this line is failing: X = X0 - J(X0)\F(X0); J and F are defined as vectors, not as functions. I've remo...

más de 3 años hace | 2

| aceptada

Respondida
how to modify a file. txt
C = readlines('YourFile.txt'); idx = find(contains(C, 'TheWordYouAreSearching'), 1); writelines(C(1:idx), 'Output.txt'); % [E...

más de 3 años hace | 0

| aceptada

Respondida
Why has the locale changed in R2022a?
I find this in the release notes of R2022a: External Language Interfaces MEX Functions: UTF-8 system encoding on Windows platf...

más de 3 años hace | 2

| aceptada

Respondida
How do i check if elements from my rows of vector are within range of one another
With some bold guessing of what you want to achieve: X = [ 0.2734, 0.1734; ... -0.1671, -0.2671; ... 0.0753, 0.0...

más de 3 años hace | 0

| aceptada

Respondida
How to concatenate columns of varying lengths, generated by a for loop, into a matrix?
Maybe all you need is: Node_CONC = nan(200000,num_sim); THETA_ObsNode = nan(200000,num_sim); FLUX_ObsNode = nan(200000,n...

más de 3 años hace | 0

| aceptada

Respondida
How can I down-sample the large matrix size in constant period of times?
The distance between 1 and 30 is 29, while it is 30 from 30 to 60. I you want the elements 1, 31, 61, ... use: Y = X(1:30:end)

más de 3 años hace | 0

| aceptada

Respondida
Name a variable using an already existing variable
Creating names of variables dynamically is one of the question, asked most frequently by beginners in this forum. The experts gi...

más de 3 años hace | 1

| aceptada

Respondida
UIPUTFILE Documentation Innaccurate/Change Warning Dialog?
I agree, that the text of the documentation is misleading. "Select a file to append or choose a new file" does not match the pu...

más de 3 años hace | 0

Respondida
Struct information string extraction
[] concatenates the CHAR vectors to one big CHAR vector and the result is expected. If you want a cell string, use curly braces:...

más de 3 años hace | 0

| aceptada

Respondida
Freqz Command Resulting in Position 1 Invalid Index
The problem is mentioned in the error message already: "'freqz' appears to be both a function and a variable. If this is unint...

más de 3 años hace | 0

Respondida
Need help creating a matrix with unknown amount of rows.
The error message is clear: The variable "c" is not defined. Maybe "hyp" is the wanted variable? Please post code as text, beca...

más de 3 años hace | 0

| aceptada

Respondida
Find automatically data of interest
Some methods are "ugly": load 'conv_ageing_atm5_m60p80_01to2048s_bif_74165.txt' Loading data directly into the workspace creat...

más de 3 años hace | 0

Respondida
Questions about infinity in matlab
Welcome to the world of the IEEE754 floating point format. This is not used only in Matlab, but in many other programming langua...

más de 3 años hace | 1

| aceptada

Respondida
Max-min of a matrix column over rows where other columns have given values
In addition to my comment: max(x)-min(x) expressed as range(x): Nrows = size(A, 1); Npars = 9; Nouts = 11; effect = zeros...

más de 3 años hace | 1

| aceptada

Respondida
Profile Total time vs timeit
The profiler disables (at least parts of) the JIT, the just in time optimization. This happens, because the JIT can reorder comm...

más de 3 años hace | 0

Respondida
While loop does not give me back the value
for h = 1:length(framesToRead) i=1; while i<length(h) The while loop is not entered. h is a scalar, so length...

más de 3 años hace | 0

Respondida
fprintf modifying txt file in the wrong way
You can replace: f_fil=fopen('material.inp'); s=fscanf(f_fil,'%c'); fclose(f_fil); by s = fileread('material.inp'); readli...

más de 3 años hace | 0

Respondida
how to use eval function in order to get the value of variable with fieldname ?
Why do you want to do this by the evil eval? See: TUTORIAL: how and why to avoid Eval . Beginners tend to try to solve problems ...

más de 3 años hace | 1

| aceptada

Respondida
Calculate the orbit of the earth and moon around the sun using ODE45
Append an initial location and velocity for the moon also to yzero. The forces acting on the moon are the sum of the force from...

más de 3 años hace | 0

Respondida
Where can I find my MATLAB executeable files if I installed it to /home/Documents?
This seems to match your problem: https://www.mathworks.com/help/matlab/matlab_env/start-matlab-on-linux-platforms.html If yo...

más de 3 años hace | 0

Respondida
Can somebody show me how to fix these errors I am getting in my script?
You define the function as a CHAR vector. In the function root_myroot() you try to evaluate this vector as a function. But becau...

más de 3 años hace | 0

Respondida
How to call one of the outputs of the function?
[phi_ave_x, phi_ave_y, phi_ave_z] = crk4_aee321_Lorentz(xi,yi,zi,dt); disp(phi_ave_y) This uses the 2nd output phi_ave_y as in...

más de 3 años hace | 0

Respondida
I want to get an input number (N) and create as man as input number (N) empty different named matrixs. How to do such a thing?
N = input(); m = cell(1, N); Now use m{1} instead of m1. This is easier and faster. Creating variables dynamically is the que...

más de 3 años hace | 1

| aceptada

Respondida
Delete rows from cell array in a for loop
C = num2cell(magic(4)); n = height(C) for k = 1:n C2 = C; C2(k, :) = []; ... your calculations come here end ...

más de 3 años hace | 0

| aceptada

Respondida
Click button uifigure callback function
This looks strange. I do not see the reason for the error. Is this really the complete error message? Use the debugger to check...

más de 3 años hace | 0

| aceptada

Respondida
GUI app callback functions problem
I'm not sure if I understand, where in the code the problem occurs. Waiting for a figure to be closed is done by the waitfor fun...

más de 3 años hace | 1

| aceptada

Cargar más