Answered
How to do type II double integration on matlab
Use symbolic integration syms x y f=x^2; int(int(f,x,0,acos(y)),y,0,1) double(ans)

3 years ago | 1

| accepted

Answered
if i have a function( [y]=ax+b, and i want to plot two lines that derive from the same function in the same graph. how to do so?
y=@(x)2*x+5; Y=@(x)x+7; x=-10:.1:10; plot(x,y(x),x,Y(x))

3 years ago | 0

| accepted

Answered
Find the rate of change of data over specific increments of time
data = readtable('TSLA_STOCK.csv'); idx=find(diff(month(data.Date))); monthlyClose=data.Close(idx); ROV=diff(monthlyClose)./m...

3 years ago | 1

| accepted

Answered
How do I make an entire row in a table NaN?
T(isOff,:) = {NaN};%does this work?

3 years ago | 1

| accepted

Answered
Need Help for the rest of this coding
function [ABrow, BAcol, FirstHalfA_LastHalfB] = vectorFun(A, B) ABrow = [A,B']; BAcol = flip(ABrow)'; FirstHalfA_LastHalfB = ...

3 years ago | 2

| accepted

Answered
Producing 100 prime number in a vector
p=(2:1:600); p(isprime(p)) primes(600)%better and faster

3 years ago | 3

| accepted

Answered
Select range of rows and store them
Use of cell array for storage incase the sizes are not equal. If the sizes will always be the same, you could store in 3D-matrix...

3 years ago | 2

| accepted

Answered
please guide me how to call a function in matlab codes
Function runs fine. File='sunrise.jpg'; ImageProcessing(File) function ImageProcessing(File) % Read the Image ...

3 years ago | 0

Answered
Change certain values in an array to a word
Not sure why you want a mixed array of numbers and strings (not a good idea). idx=~ismember(T,[-2 -10 -30 2 10 30])&PP~=0;%logi...

3 years ago | 0

| accepted

Answered
Count the number of double in the the rows of a table
loop through your table C=zeros(size(yourTable,1),1); for k=1:size(yourTable,1) c=0; for m=1:size(yourTable,2) ...

3 years ago | 0

| accepted

Solved


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

3 years ago

Solved


peta to nano (x-ray)
for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

3 years ago

Solved


Dice roll - lateral faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

3 years ago

Answered
how can I plot this function?
t = linspace(-5,5,1000); N = 1000;n=1:N; an = (100*n*pi.*(-1).^(n+1).*(1000-121*n.^2*pi^2))/(((1000-121*n.^2*pi^2).^2 + (1320...

3 years ago | 0

Solved


Easy Sequences 78: Trailing Zeros of Factorial Numbers at any Base
Given an integer and a number base , write a function that calculates the number of trailing zeros of the factorial of when wr...

3 years ago

Answered
nonlinear equations system with a changing parameter
A =@(x,T)3.8e-4./T./(0.4-2.*x).^3; B =@(x,T) 5e7.*(0.83-1.154.*x+1.7e-5.*T.*(log(A(x,T))+3.912))./(1-(0.2308-1.154.*x).*(0.6+1....

3 years ago | 0

| accepted

Answered
Generate all permutation or possibilities
x='locate'; p=[];order=3; n=nchoosek(1:length(x),order); for k=1:size(n,1) p=[p;perms(n(k,:))]; end x(p)

3 years ago | 0

| accepted

Answered
How to plot 2d graph with various variables?
I just generated example matrices for x and y. x-rows are specific thurst for various c-values, y-rows are fuel consumption valu...

3 years ago | 0

Answered
How to build a circularly symmetric matrix from a vector
[x,y]=meshgrid(0:.05:100); z=sqrt((x-50).^2+(y-50).^2); Z=(z-25)/25; Z(z>50)=nan; contour(x,y,Z,'FaceColor','flat') colorma...

3 years ago | 0

Answered
How to extract entire rows based on values placed in a single column in a matrix?
H = array2table(randi(10,100, 33)); f=find(H{:,33}>4); f=f(diff(f)>1);%removes consecutive rows >4 for k=1:length(f) c{k...

3 years ago | 1

Answered
how to count words in a cell array
ca = {{'Let it go'} {'Let it go'} { 'Can''t hold it back anymore'}} for i = 1:length(ca) a=ca{i}; a=strsplit(a{1},' '...

3 years ago | 0

Answered
how to remove an entire column in a cell array
ca = {'Name','Test1','Test2','Test3','Final'; 'A', 70 , 80 , 100, 99; 'B', 30 , 90, 95, 90; 'C', 100, 70, 8...

3 years ago | 0

Answered
Need help on a problem
You need a while loop. x=input('Enter an even integer: '); while mod(x,2)==1 x=input(sprintf('%.1f is not an even integer...

3 years ago | 0

Solved


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

3 years ago

Solved


Number Puzzle - 097

3 years ago

Solved


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

3 years ago

Answered
Question about to reconduct [for loop statement] to the code using vectorization
format long s=sum(1./(2*(0:2:500)+1)-1./(2*(1:2:501)+1))

3 years ago | 0

| accepted

Solved


Number Puzzle - 098

3 years ago

Solved


Mandelbrot Number Test [Real+Imaginary]
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

3 years ago

Load more