Respondida
How to produce line plot yline for matlab R2018a
Funny thing , i did a file exchange a while ago for passing time, not the efficient one but gets the job done ;) https://www.ma...

más de 3 años hace | 0

Respondida
plotting multiple values of a parameter on same figure
Amplitude = rand(5, 1); hold on for k = 1 : numel(Amplitude) % this is an example of having different amplitudes, follow thi...

más de 3 años hace | 1

| aceptada

Respondida
how to continuously loop until a condition is met?
value = % calculate mode; while 1 if ((value <= 4e2) && (value <= 1e3)) break else % value = calcul...

más de 3 años hace | 0

Respondida
Warning: Matrix is singular to working precision.
% Black Scholes Vanna % Steven Semeraro sigma = ones(100, 100) * 0.2; stock = ones(100, 100) * 50; x = 1:100; y = ...

más de 3 años hace | 0

Respondida
Error while vectorizing my code
terms = 1 ./ (n( : ) .^ x) % < 2016b 1 ./ bsxfun(@power, n( : ), x)

más de 3 años hace | 1

Respondida
'summary' function for a cell
help cell2table

más de 3 años hace | 0

| aceptada

Respondida
Matlab, automatically delete the index variable after the execution of a loop, Part 2
That is the simpler way.

más de 3 años hace | 1

| aceptada

Respondida
How do I create a matrix from from the answers of each iteration of a for loop?
N = 4; yn = cos(pi * ( 0 : N ) / N); yp = cos(pi * ( 0 : N ) / N); yp = reshape(yp, 1, 1, []); bottom = squeeze(1 ./ (yn - y...

más de 3 años hace | 0

| aceptada

Respondida
Output of previous command into input
If those variables are in the workspace, it should run without any problems. Ca1 = ...; Ca2 = ...; Ca3 = ...; Ca4 = ...; Cb...

más de 3 años hace | 0

| aceptada

Respondida
creating new variable using for loop and if-else condition
age = 1 : 40; % you were almost close, note: it could be done without loops [new_age_group1, new_age_group2] = deal(cell(40, 1)...

más de 3 años hace | 0

| aceptada

Respondida
Can one substitute string values in a matrix?
dum = strings(height(T), 1); % you could also use repmat or repelem to do it in one line dum(:) = "January";

más de 3 años hace | 0

| aceptada

Respondida
What is this block called and where can I find it?
https://www.mathworks.com/help/simulink/slref/integrator.html

más de 3 años hace | 0

| aceptada

Respondida
How do i save values in a loop to vectors?
V = cell(2, 1); % an example on how to store for l = 1 : 2 V{l} = rand(2, 1); end celldisp(V)

más de 3 años hace | 0

| aceptada

Respondida
Question here Matlab basics,
c * (c + d) % MATLAB doesn’t have implicit multiplication

más de 3 años hace | 0

| aceptada

Respondida
Matlab program to plot y(t) graph
doc plot doc fplot

más de 3 años hace | 0

Respondida
if statement find criteria not doing what I want it to do
neqchek = @(k) subsasgn(k, substruct('()', {k(1) == 1}), 10); out = neqchek([1 : 2, 1])

más de 3 años hace | 0

Respondida
Change data type of entire cell array?
cellfun(@(x) sscanf(x, '%d').', Cell_array, 'un', 0)

más de 3 años hace | 0

Respondida
How do I make a function with 2 parameters?
Man muss einfach versuchen. doc function

más de 3 años hace | 0

Respondida
Delete specific numbers from cell array
p2 = [1, 2; 0, 1] p3 = num2cell(p2, 1); Wanted = cellfun(@nonzeros, p3, 'un', 0)

más de 3 años hace | 1

Respondida
Matrix multiplication error using '.*'
t = linspace(0, 1, 66);

más de 3 años hace | 0

Respondida
Assign Values into a matrix (DG)
matrix(:, 1) = linspace(matrix(1, 1), 0, size(matrix, 1)); matrix(:, end) = linspace(matrix(1, end), 0, size(matrix, 1))

más de 3 años hace | 0

Respondida
how do i print only the last answer in a for loop
c(k,j) = (c(k+1, j-1) - c(k,j-1))/(x(k+j-1)-x(k)); %<- semicolon

más de 3 años hace | 0

Respondida
Need help starting this code!!! Arrays
https://www.mathworks.com/matlabcentral/answers/213823-forward-backward-and-central-differences

más de 3 años hace | 0

Respondida
Plot Function With Continuosly
doc piecewise

más de 3 años hace | 0

| aceptada

Respondida
std function won't execute
You have a file named std.m , rename it or remove it from the path.

más de 3 años hace | 0

Respondida
How do I write this function
y=(cosd(35)-secd(35)^2)/tand(70)

más de 3 años hace | 1

| aceptada

Respondida
Output Jacobian function is not matrix
What you have is a SYMBOLIC matrix.

más de 3 años hace | 0

Respondida
How to count the number of letter case changes in a string array
c = 'hfeHDdheD'; nnz(diff(ismember(c, 'A':'Z')))

más de 3 años hace | 1

Respondida
Filter rows based on presence of string
Wanted = ismember(vector, 'male')

más de 3 años hace | 0

Respondida
creating multiple values of the same x,y,z
doc repmat

más de 3 años hace | 0

Cargar más