Risposto

Function definitions are not permitted in this context.

Rename the file *ok.m* to *uniform_pcm.m* and save file. Type the name of function from command window (giving input arguments)...

Function definitions are not permitted in this context.

Rename the file *ok.m* to *uniform_pcm.m* and save file. Type the name of function from command window (giving input arguments)...

26 giorni fa | 0

Risposto

Create a solid line instead of single points in the plot

If the plot function is inside a loop, you could put it outside the loop as shown below, in order to plot solid line plot(vR(1,...

Create a solid line instead of single points in the plot

If the plot function is inside a loop, you could put it outside the loop as shown below, in order to plot solid line plot(vR(1,...

26 giorni fa | 0

Risolto

Consecutive Powers

Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

26 giorni fa

Risolto

calculate PI without using pi function

There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

26 giorni fa

Risolto

Create an arrow matrix

An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

26 giorni fa

Risolto

Find the minimum of the column-maximums of a matrix

Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

26 giorni fa

Risolto

Calculate the mean of each half of a matrix

Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

26 giorni fa

Risposto

Plotting a diagram and getting some errors

There is no function called plotv in Matlab (or it must have been removed in new release), Please refer to the following link f...

Plotting a diagram and getting some errors

There is no function called plotv in Matlab (or it must have been removed in new release), Please refer to the following link f...

26 giorni fa | 0

| accettato

Risposto

fsolve stopped because the last step was ineffective

The problem seems to occur if you have the same initial conditions for all the angles. Try giving different initial conditions/...

fsolve stopped because the last step was ineffective

The problem seems to occur if you have the same initial conditions for all the angles. Try giving different initial conditions/...

27 giorni fa | 1

Risposto

summation of aij & i, j dependent function in matlab

% % initial contraction from flow, formula from diagram 4.10 % % %given test values Re_0=60.46; f0=1; f1=2.7225; % ind=...

summation of aij & i, j dependent function in matlab

% % initial contraction from flow, formula from diagram 4.10 % % %given test values Re_0=60.46; f0=1; f1=2.7225; % ind=...

27 giorni fa | 0

| accettato

Risposto

Why am I receiving a "Too many output arguments" error on this particular code?

Load the data and assign to a variable. When you load a MAT file using load function, it returns a struct with different data ...

Why am I receiving a "Too many output arguments" error on this particular code?

Load the data and assign to a variable. When you load a MAT file using load function, it returns a struct with different data ...

27 giorni fa | 1

| accettato

Risposto

Keeping getting gradient error and no figure 2

%function [] =ZacharyC1 clear all clc U=4.7; m=6; a=0.5; [X,Y]=meshgrid (linspace(-2,2,100),linspace(-2,2,100)); r=sqrt...

Keeping getting gradient error and no figure 2

%function [] =ZacharyC1 clear all clc U=4.7; m=6; a=0.5; [X,Y]=meshgrid (linspace(-2,2,100),linspace(-2,2,100)); r=sqrt...

27 giorni fa | 0

Risposto

Why are my error bars multicoloured with no line?

x = 20:1:25; y = [1.75 1.78 1.81 1.85 1.9 1.95]; err = repmat(0.1,length(x),1); errorbar(x,y,err)

Why are my error bars multicoloured with no line?

x = 20:1:25; y = [1.75 1.78 1.81 1.85 1.9 1.95]; err = repmat(0.1,length(x),1); errorbar(x,y,err)

28 giorni fa | 2

Risposto

comparison number on interval

px = 0; py = 1000; pz = 0; if (-524 <= px) & (px <= 524) & (-524 <= py) & (py <= 524) & (0 <= pz) & (pz <= 524) px ...

comparison number on interval

px = 0; py = 1000; pz = 0; if (-524 <= px) & (px <= 524) & (-524 <= py) & (py <= 524) & (0 <= pz) & (pz <= 524) px ...

29 giorni fa | 0

| accettato

Risposto

Function with for loop doesn't always work

With option as rev, it wont work, since the variable deg is undefined option = 'rev' % with this option it wont if strcmp...

Function with for loop doesn't always work

With option as rev, it wont work, since the variable deg is undefined option = 'rev' % with this option it wont if strcmp...

29 giorni fa | 0

Risolto

Rainbow matrix

Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

29 giorni fa

Risposto

How can i put the values in gradient of a function obtained through the gradient command?

@RADHIKA GOUR, you can use subs and plug-in the values for p1,p2,p3, p4 variables. TT=[1 1 1 1]; noise = randi([2 10]); sym...

How can i put the values in gradient of a function obtained through the gradient command?

@RADHIKA GOUR, you can use subs and plug-in the values for p1,p2,p3, p4 variables. TT=[1 1 1 1]; noise = randi([2 10]); sym...

29 giorni fa | 0

Risolto

Calculate area of sector

A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

29 giorni fa

Risolto

radius of a spherical planet

You just measured its surface area, that is the input.

30 giorni fa

Risolto

Given a square and a circle, please decide whether the square covers more area.

You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

30 giorni fa

Risolto

Perimeter of a semicircle

Given the diameter d, find the perimeter of a semicircle

30 giorni fa

Risolto

Convert Volume Mixing Ratio to Density

The partial pressure of a constituent gas species of the atmosphere can be expressed in parts per million by volume. For exampl...

30 giorni fa

Risolto

Partial Pressure of Water Vapor from Relative Humidity

Buck (1996, 1981) published the following constants for the saturation pressure of water*: 6.1121 (mb) The saturation pressur...

30 giorni fa

Risolto

Pressure for a given Above Sea Level Altitude

For altitudes up to the stratosphere (around 11 km above mean sea level), the air pressure can be estimated from: with where...

30 giorni fa

Risolto

Molar Air Density from Temperature and Pressure

The molar density of air can be found from the Temperature and Pressure using the ideal gas law. where the Molar density STP ...

30 giorni fa