Community Profile # Porgs

Active since 2018

#### Statistics

• #### Content Feed

View by

Question

Why do I get an error on line 17?
clc deviation = (1) .^ 0.5; n = deviation .* randn(100000, 1); % noise t = [-5: 0.01: 4.99]; % time p = 5 .* sin(...

oltre 4 anni ago | 0 answers | 0

### 0

Question

Why is the mean function not working?
clc x=randn(1,100000); y=randn(1,100000); Za=x+10; [f,x]=hist(Za,100); %Simulated PDF bar(x,f/trapz(x,f))...

oltre 4 anni ago | 1 answer | 0

### 1

How to display error using error function?
Ok thanks

oltre 4 anni ago | 0

How to display error using error function?
Where would I put that in my code because I'm getting an error message when I'm trying to use this.

oltre 4 anni ago | 0

Question

How to display error using error function?
I have a program that computes thermal conductivity based on an input of a certain alloy and temperature. I would like to have t...

oltre 4 anni ago | 4 answers | 0

### 4

Question

How to display an error in an input for my function?
I have a function that calculates thermal conductivity, and I want to have the function display an error if the user inputs the ...

oltre 4 anni ago | 0 answers | 0

### 0

Question

Have a function take a string and an number as an input?
I am trying to create a function that can take a name of an alloy of metal and a temperature and calculate the thermal conductiv...

oltre 4 anni ago | 1 answer | 0

### 1

Question

Why am I getting this error "Operands to the || and && operators must be convertible to logical scalar values."
function ThCond alloy = input('Enter the type of metal alloy:', 's'); T = input('Enter temperature(K) to calcu...

oltre 4 anni ago | 2 answers | 0

### 2

Linear Combination of 3 matrices.
I'm trying to prove that one given matrix is the linear combination of 3 other matrices.

oltre 4 anni ago | 0

Question

Why am I getting this error, "Subscript indices must either be real positive integers or logicals."
% This code worked the last time I ran it but now I get an error message. Why is this? t = [-2: .001: 1.999...

oltre 4 anni ago | 2 answers | 0

### 2

Question

Linear Combination of 3 matrices.
How do you compute the linear combination of 3 (1x3) matrices.

oltre 4 anni ago | 2 answers | 0

### 2

Question

Why do I get Error: File: exercise_1_b.m Line: 8 Column: 28 Unexpected MATLAB operator.
I get this error Error: File: exercise_1_b.m Line: 8 Column: 28 Unexpected MATLAB operator. this is my code t ...

oltre 4 anni ago | 2 answers | 0