Answered
How to code for Barchart and mean in matlab
cd ~/home/mluser/siddharthsatish/'Downloads' % Watch where apostrophe signs ' ' are placed

5 years ago | 0

Answered
How to calculate the mean of a subset of the full dataset?
Use mean(), e.g: mean(A, 1) % Columnwise mean(A, 2) % Rowwise

5 years ago | 0

| accepted

Answered
Include value requirement in array multiplication
... N = size(cA, 1); for ii=1:N if cA>1e-4 & cB>1e-4 dS(ii,:)=k1*cA(ii,:).*cB(ii,:)*dt; else dS(ii,:) = 0; end end %%...

5 years ago | 0

Answered
How to code for Barchart and mean in matlab
Ok. Well Mac has a different syntax for directory specs. In that case, you can change the directory and then load the data file...

5 years ago | 0

Answered
Include value requirement in array multiplication
for ii=1:N if cA>1e-4 & cB>1e-4 dS=k1*cA(i+1,:).*cB(i+1,:)*dt; else dS = 0; end end

5 years ago | 0

Answered
How to repeat previous steps from the output
Here is a simple optimization problem from MATLAB help documentation taken as an example to solve within a loop iteration. x = ...

5 years ago | 0

| accepted

Answered
How do I select multiple excel files and horizontally concatenate columns A:B from each and write to a master.xlsx?
It is better use this syntax that is quite straightforward since you are using xlsread, e.g: DALL = []; for ii = 1:numel(files...

5 years ago | 0

Answered
How to code for Barchart and mean in matlab
load('C:\Users\siddharthsatish\Downloads\LabelTable.mat') % Fix directory: C:\ or D:\

5 years ago | 0

Answered
How to code for Barchart and mean in matlab
Error in your command syntax: load('/Users/ameliachang/Downloads/LabelTable.mat') % one ) has to be removed.

5 years ago | 0

Answered
to run simulink model from script and save data to workspace after each simulation and then repeat for 256 times.
In this exercise, you had better employ sim() to run your Simulink model from MATLAB environment. To achieve your goal of collec...

5 years ago | 0

Answered
Plotting Wind Vectors at Various Atmospheric Pressure Levels...
You habe the size related issues in your code: X = linspace(-180,180, 360); % Size problem fixed Y = linspace(-90,90, 180)...

5 years ago | 0

Answered
How do I make a bubble(s) with different size matrices
Solution is bubblechart3() x = 1:360; y =linspace(1,180,360); % Size of y has to macth with the one of x z = randi(...

5 years ago | 0

Answered
How to code for Barchart and mean in matlab
Simply to use bar(): DD = readtable('Data extracted- Lab.xls'); DD = readtable('Data extracted- Lab.xls'); Mean_A =DD.AudioSt...

5 years ago | 0

| accepted

Answered
Variable time series data
(1) Import the data into matlab using textscan() or fscanf() or best readtable() %% Set up the Import Options and import the da...

5 years ago | 0

| accepted

Answered
second order differential systems of a non linear ODE
Small typo err in your code: xmesh = linspace(0,1,10); sol = bvpinit(xmesh, @iguess); sol = bvp5c(@odefcn,@bcfcn,sol,bvpset('...

5 years ago | 0

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

5 years ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

5 years ago

Solved


(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...

5 years ago

Solved


How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

5 years ago

Solved


Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

5 years ago

Solved


Back to basics 19 - character types
Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

5 years ago

Solved


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

5 years ago

Solved


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

5 years ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

5 years ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

5 years ago

Solved


04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

5 years ago

Solved


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

5 years ago

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

5 years ago

Answered
How to extract obstacles from an occupancy grid map
Apply imdilate() fcn to your image map: https://www.mathworks.com/help/images/ref/imdilate.html Distance calcs: https://www.m...

5 years ago | 0

Load more