Solved


MATLAB Basics: Complex Numbers
For a given complex number, x, return the real and imaginary parts as a vector, y = [Real Imaginary].

26 giorni ago

Solved


MATLAB Basics: Complex Argument
For a given complex number, x, return the argument, y, in degrees.

27 giorni ago

Solved


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

27 giorni ago

Solved


Compute the sum of reciprocals of quadratics
Write a function to compute the following sum: See also Cody Problem 46000.

27 giorni ago

Answered
How to deal with error "Input #3 expected to be a cell array, was double instead." using cellfun?
Loops are not bad. cellfun is performing a loop. Mb = {Mbx -Mbx Mby -Mby}; for k=1:4 [~,locs{k},~,~] = findpeaks(Mb{k},t,...

circa un mese ago | 0

Answered
i want to calculate the jacobian with known values of A B and V2, the answer should be 14 -4 0; -4 9 0; 0 0 14
syms A B D E F V2 P2 P3 Q3; P2=10*V2*sin(A)+4*V2*sin(A-B)+1.5; P3=5*sin(B)+4*sin(B-A)-1; Q3=-10*V2*cos(B)+14*(V2^2)-4*V2*cos...

circa un mese ago | 0

Answered
Hello everyone, anyone knows how to approximate a data with polynomial of degree 8 using least square method?
Use polyfit, place the x and y columns of your data into the function. p=polyfit(x,y,8);%you will need to convert time using da...

circa un mese ago | 0

Solved


Convert Thermocouple output voltage (in mV) to Temperature (in C)
Convert Thermocouples of types (B,E,J,K,N,R,S,T) output junction voltage (in mV) to temperature (in C) using NIST coefficients r...

circa un mese ago

Problem


Convert Thermocouple output voltage (in mV) to Temperature (in C)
Convert Thermocouples of types (B,E,J,K,N,R,S,T) output junction voltage (in mV) to temperature (in C) using NIST coefficients r...

circa un mese ago | 0 | 3 solvers

Solved


Compute a sum involving the totient over divisors of a number
Write a function to compute the following sum: where is the totient function. The sum is computed over the divisors of (inc...

circa un mese ago

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

circa un mese ago

Solved


Radioisotope Thermoelectric Generator (RTG)
Given an isotope's atomic mass (in amu), half-life (in years(a) or days(d)), and average kinetic energy absorbed (of emitted dec...

circa un mese ago

Problem


Radioisotope Thermoelectric Generator (RTG)
Given an isotope's atomic mass (in amu), half-life (in years(a) or days(d)), and average kinetic energy absorbed (of emitted dec...

circa un mese ago | 0 | 3 solvers

Solved


Nuclear Binding Energy
Compute the approximate nuclear binding energy in MeV using the least-squares fit of the semi-emirical mass formula. Round to th...

circa un mese ago

Answered
Extracting elements from one matrix and placing in another
I am confused when you said the expected size was 1440x721x10 but then your code has the corrected expected size. SLP_top_10=ye...

circa un mese ago | 0

Answered
Block diagonal change the first and last blocks with some other matrices
Why not use blkdiag() function? T=blkdiag(B,C,B);

circa un mese ago | 0

Problem


Nuclear Binding Energy
Compute the approximate nuclear binding energy in MeV using the least-squares fit of the semi-emirical mass formula. Round to th...

circa un mese ago | 1 | 5 solvers

Answered
how to get xyz value
rgb2xyz(RGB)

circa un mese ago | 0

Answered
Convert decimal to ASCII
uint8(['SO:VO ',num2str(voltage)]);

circa un mese ago | 0

| accepted

Answered
Problem with code-beginner
distances = zeros(length(xx),length(yy),NumberOfSites); xshift = isd*sind(AngleDistance*((1:NumberOfSites)-1));%assume isd and ...

circa un mese ago | 0

| accepted

Answered
How to write a program that selectively picks hexadecimal values from a text file based on bit size?
r=randi(4); a=readcell('hextest.txt'); x=input('hex length: '); hexValue=a{log2(x/16)+1,r};

circa un mese ago | 1

| accepted

Solved


Bleed non-zeros to the right
What a title! Yet, it says what I mean. You get a vector, some values and a lot of zeroes. Every zero is replaced by the firs...

circa un mese ago

Solved


Juego de posiciones
Crea una función que ordene vectores de tal manera que los primeros números sean negativos ordenados de menor a mayor. Y después...

circa un mese ago

Solved


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

circa un mese ago

Solved


Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

circa un mese ago

Solved


Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...

circa un mese ago

Answered
How do I perform prelocation when creating an array using a for loop?
speedvalue=160; Vcruise=zeros(1,speedvalue); HPreq=zeros(1,speedvalue); for i=1:1:speedvalue Vcruise(i)=i; Ptotal_fw...

circa un mese ago | 0

| accepted

Solved


Capitilize the first letter of every word in a string
For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

circa un mese ago

Solved


Four quadrant inverse tangent function.
Create a function that returns an array P the same size as X and Y containing the element-by-element, four-quadrant inverse tang...

circa un mese ago

Solved


surface of parallelogram
Given 2 vectors of each 3 elements, determine the surface of the parallelogram which can be created from these 2 vectors.

circa un mese ago

Load more