Gelöst


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

fast 5 Jahre vor

Gelöst


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

fast 5 Jahre vor

Gelöst


Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

fast 5 Jahre vor

Gelöst


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

fast 5 Jahre vor

Gelöst


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

fast 5 Jahre vor

Gelöst


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

fast 5 Jahre vor

Gelöst


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

fast 5 Jahre vor

Gelöst


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

fast 5 Jahre vor

Gelöst


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

fast 5 Jahre vor

Beantwortet
I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?
try Second = zeros(53715,1); Year = Year+2000; t = datetime(Year,Month,Day,Hour,Minute,Second,'Format','dd-MMM-yyyy hh:mm'); ...

fast 5 Jahre vor | 0

Gelöst


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

fast 5 Jahre vor

Gelöst


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

fast 5 Jahre vor

Gelöst


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.&#8519;^(-&lambda;t)*cos(2πft)| where |A|, |&lambda;|, and |f| ...

fast 5 Jahre vor

Gelöst


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

fast 5 Jahre vor

Gelöst


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

fast 5 Jahre vor

Gelöst


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

fast 5 Jahre vor

Gelöst


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

fast 5 Jahre vor

Gelöst


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

fast 5 Jahre vor

Beantwortet
detect Circles and squares on the image using regionprops
try this I = imread('test.png'); imshow(I); I = rgb2gray(I); I = im2bw(I,0.01); [L ,num] = bwlabel(I); stats1 = regionprop...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
Loop to write data in excel from 1 st iteration to n th iteration
for t = 0:1:10 a = cos(t).*[2 3;4 5] b = cos(t).*[6 5;4 6] c = a+b d = eig(c) r = 2*3*d w(:,t+1) = r end csvwrite(...

fast 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can i plot this graph?
clear clc clf x = -0.5:0.001:1.8; f2=mod(x,1); f1=mod(-0.5*cos(2*pi*-x),1); plot(x,f1,'.'); hold on plot(x,f2,'.'); hol...

fast 5 Jahre vor | 1

Beantwortet
How to print data from cell array to a text file ?
try fprintf(fid ,'%d %f \r\n', FINALSHEET{1,1}{row,:},FINALSHEET{1,2}{row,:});

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
What is the meaning of any_image(:,w:-1:1) in MATLAB
w:-1:1 start with w step -1 till 1 6:-1:1 -> 6 5 4 3 2 1

etwa 5 Jahre vor | 0

| akzeptiert

Beantwortet
Adding 2 values of old vector into new vector of half size
b = a(1:2:end) + a(2:2:end) (this is not working for uneven amount of inputs)

etwa 5 Jahre vor | 0

| akzeptiert

Gelöst


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

etwa 5 Jahre vor

Gelöst


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

etwa 5 Jahre vor

Beantwortet
Largest number in Matlab
65535 127

etwa 5 Jahre vor | 0

Beantwortet
Could anyone please solve this MATLAB operation x=7/84
7/8\4 = (7/8)\4 = 4/(7/8)

etwa 5 Jahre vor | 0

Beantwortet
Largest number in Matlab
max uint16 = 2^16-1 max int8 = 2^7-1

etwa 5 Jahre vor | 0

Mehr laden