Community Profile

photo

Ioannis Andreou


Last seen: ungefär 4 år ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 1
  • Thankful Level 1
  • First Answer

View badges

Feeds

View by

Answered
Replace cell array based on condition
Use cellfun: tfReplace = cellfun(@(c) any(any(c>5)), A, 'UniformOutput', true); A{tfReplace} = B;

ungefär 4 år ago | 1

| accepted

Answered
Why do I get the error “Index exceeds matrix dimensions.”?
you set hour = n; and then construct SOC_trajectory = optimconstr (n, 1); and then finally you iterate for i = 1:hour ...

ungefär 4 år ago | 0

Answered
How to represent ln in matlab?
The natural logarithm is simply log

ungefär 4 år ago | 0

Answered
how to generate overlapping series
Try this packages = nan(19, 2000); for i = 1:19 packages(i,:) = data((i-1)*1500+1: i*1500+500); end However there will b...

ungefär 4 år ago | 0

Answered
Variable Number of Input Arguments
If you want variable number of inputs use nargin here function too_young = under_age(age, limit) if nargin < 2 li...

ungefär 4 år ago | 0

| accepted

Answered
Calculate the cube sqrt?
nthroot(0.18, 3)

ungefär 4 år ago | 0

Answered
One ode, two differential equations
As far as I can tell from your code, the righthanded side of your differential equations is the same. Meaning you have the syste...

ungefär 4 år ago | 0

Question


sum of products skipping an index
Hello everyone, I have difficulties efficiently implementing the following equation: For Inputs: a,b,c 1xN doubles I want ...

ungefär 4 år ago | 1 answer | 0

1

answer