Evaluation of Integration without Loops
help trapz

alrededor de 1 año ago | 0

How to produce line plot yline for matlab R2018a
Start = 0; % sorry I completely misinterpreted the question xD End = 1; Point = 260; plot(linspace(Start, End, 1e2), repelem(...

alrededor de 1 año ago | 0

| accepted

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...

alrededor de 1 año ago | 0

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...

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 0

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 = ...

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 1

'summary' function for a cell
help cell2table

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 1

| accepted

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...

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 0

| accepted

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)...

alrededor de 1 año ago | 0

| accepted

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";

alrededor de 1 año ago | 0

| accepted

What is this block called and where can I find it?

alrededor de 1 año ago | 0

| accepted

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)

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 0

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])

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 1

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

alrededor de 1 año ago | 0

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))

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 0

Need help starting this code!!! Arrays

alrededor de 1 año ago | 0

Plot Function With Continuosly
doc piecewise

alrededor de 1 año ago | 0

| accepted

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

alrededor de 1 año ago | 0

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

alrededor de 1 año ago | 1

| accepted