Community Profile

photo

Ronny Landsverk


University of Agder

Last seen: 2 months ago Active since 2015

Followers: 0   Following: 0

Message

Statistics

All
  • Solver
  • Thankful Level 1

View badges

Feeds

View by

Question


Does different MATLAB versions handle array arithmetic differently ?
In a previous project I did something like x = randn(N,3); % N > 1 x = x - [x,y,z]; % remove "bias", x,y,z are scal...

6 years ago | 1 answer | 0

1

answer

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

6 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

6 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

6 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

6 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

6 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

6 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

6 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

6 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

6 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago

Solved


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

6 years ago

Question


Can we list all possible values for a property of a MATLAB object without going via help/doc ?
To be clear, I will be specific, but the question is for the general case (the more general, the better) Consider that yo...

7 years ago | 1 answer | 1

1

answer

Question


Anybody know a work-around for plotting multiple-input anonomous functions with fplot ?
Hi. Sometimes I like to have anonymous functions that can take multiple inputs but not necessarily be multivariable. For a triv...

7 years ago | 1 answer | 0

1

answer

Question


Why is the returning frequency range and scale range inconsistent using CWTFT?
I have a signal with a sampling period dt. The scale-vs-frequency relation for wavelets is approximately sc = fc/(f*dt), where ...

7 years ago | 1 answer | 2

1

answer

Question


Trouble using ezplot and matlabFunction on a symbolic function defined using symengine "piecewise"
syms x t; MP_syntax1 = 'piecewise([x <= 10, x/10], [10 < x <= 30, (30 - x)/20])'; MP_syntax2 = 'ilaplace(2/s^3,s,t)'; f(x...

9 years ago | 1 answer | 0

1

answer

Answered
Using symbolic Matlab-output from functions 'abs' and 'angle' as input for the 'solve'-function
I found a solution. clear; clc; J = 152e-6; % moment of inertia W = 200*pi; % desired crossover freq K = 0.1; % tor...

9 years ago | 0

Question


Using symbolic Matlab-output from functions 'abs' and 'angle' as input for the 'solve'-function
clear; clc; J = 152e-6; % moment of inertia W = 200*pi; % desired crossover freq K = 0.1; % torque constant syms Ki ...

9 years ago | 1 answer | 0

1

answer