Answered
Using a loop and counter for parametric equations
Hi Here is the solution of your task: function E = realED(H, T, h) % % % rho=1030; g=9.81; % % L = zeros(numel(H), n...

6 years ago | 0

| accepted

Answered
system equation solve error
Hi, Your code's problem is that you are using this code inside your function file. Here is the corrected code: function Solu...

6 years ago | 0

Answered
I have: Error using bsxfun Non-singleton dimensions of the two input arrays must match each other.
Hi, Here is the corrected ver. of your code: function A=test_anode(t,D,c_0,Gamma,I_app) %Compute the mu_n N=20; mu_n=zero...

6 years ago | 0

Answered
Math with Arrays help
Hi, Use colon operator : for A Use exp() for B Good luck.

6 years ago | 0

Answered
read an image in matlab2014a
Hi, This is the command: A = imread('IMAGE.jpg'); % Read the image in MATLAB imshow(A) % Display the imported image G...

6 years ago | 0

| accepted

Answered
conversion of image to the form of ones and zeros.
Hi, These two commands will do most of the work: A = imread('MY_image.jpg'); B = im2bw(A); Good luck

6 years ago | 0

Answered
Finding Complex root for the nonlinear equation with single variable
Hi Ammar, Since your exercise is a nonlinear equation and thus, it is more appropriate to employ Newton-Raphson method for th...

7 years ago | 0

Answered
Plotting Sum of series
Hi, In your exercise, it is more appropriate to use numerical solution approach instead of symbolic math. Here is one of th...

7 years ago | 1

| accepted

Answered
Legend function does not work in R2019b
Hi, Your code is running ok in Win 10 and MATLAB 2019b. You should close all figure windows, run clear all command or/and if ...

7 years ago | 0

Answered
Export data based on latitude and longitude from 3 dimension array
Hi Bekzad, here is the answer: load time TT =datetime(t, 'convertfrom', 'excel'); Now TT are dates. Good luck.

7 years ago | 0

| accepted

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

7 years ago

Solved


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

7 years ago

Solved


03 - Matrix Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3a.png>> A 9x9 matrix full of 2's (Hint: use *ones* o...

7 years ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

7 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

7 years ago

Answered
How do I load the desired columns and rows I want from a csv file?
Hi, The good solution of your exercise is to use xlsread(), e.g. DATA = xlsread('MY_data.xls', 1, 'B1:B999'); Note that the...

7 years ago | 0

Answered
How to convert 3d array to raster (tiff)
Hi, You can get much of help from this source. Good luck.

7 years ago | 1

Answered
Performing a Double Integration
Hi, Here is the corrected code of yours: Beta = 0.2; fun3 = @(x,y) (sqrt( (((1 + 6*Beta)*cos(x) - 6*Beta*sin(x) + 3*Beta*co...

7 years ago | 0

| accepted

Answered
How can I implementation Array factor in matlab?
Hi, In your exercise, you can use [for .. end] or [while ... end] loops with two nested iteration loops. Good luck.

7 years ago | 0

| accepted

Answered
How can I compare variables in two different scripts and two different data sets?
Hi, In general, there are several steps you'd need to perform to compare the data from different data files. Read/import dat...

7 years ago | 0

Answered
Error using Taylor with order n as variable
Hi, Here is the complete answer to your exercise: syms x f(x) = atan(x); syms ii positive integer; for ii=1:10 P(ii) = t...

7 years ago | 0

| accepted

Answered
who can i solev this question?
The answer is there: A = [1 -2 3 0; -1 1 0 2; 0 2 0 3; 3 4 0 -2]; det(A)

7 years ago | 0

Answered
How do you apply amplitude modulation to a wav file?
Hi, 1st you would need to read the wav file with: [YY, fs] = audioread('MY_wav.wav'); then perform the AM operations with yx...

7 years ago | 0

| accepted

Answered
why 'colormap' did not change the color of my plots?
Hi, in order to get the colormap effect, the plot has to be 3D (like mesh, surf, etc), e.g.: H=figure, [x, y] = meshgrid(l...

7 years ago | 1

Answered
How can I assign plotting properties to a subplot within a loop
Hi, You have done well in all steps except for one small point after else condition: for k = 1:3 figure(1) subplo...

7 years ago | 0

| accepted

Answered
How can I identify the x-values at which the first difference peaks?
Hi, Those 8 peak values of the variable bla can be obtained with: Peaks_bla = bla(idx); Good luck.

7 years ago | 0

| accepted

Solved


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

7 years ago

Solved


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

7 years ago

Solved


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

7 years ago

Load more