photo

lazymatlab


Last seen: 1 dag ago Active since 2019

Followers: 2   Following: 0

Message

Life is short. Matlab code is shorter.

Programming Languages:
MATLAB
Spoken Languages:
English, Korean

Statistics

All
  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 2
  • Community Group Solver
  • Personal Best Downloads Level 1
  • Solver
  • First Submission

View badges

Feeds

View by

Solved


This is a palindrome and so am I
A palindrome is a sequence of characters which reads the same backward or forward, for instance 'a man a plan a canal panama'...

4 maanden ago

Answered
매트랩 오류 배열 인덱스는 양의 정수이거나 논리값이어야 합니다.에 대한 오류가 발생한 이유는 무엇인가요?
func1을 함수로 사용하시려는 것 같은데, 에러 메시지를 보면 변수 func1이 있는게 아닌가 싶습니다. 함수가 func1이 있다면 clear 후에 다시 실행해보세요.

5 maanden ago | 1

Answered
함수에 가변적인 입력 인수를 넣는 법
셀 배열에 대해서 {:}를 사용하면 comma separated list가 생성됩니다. 이것을 함수의 입력인자로 넣으면 됩니다. c{1} = [1]; c{2} = [1, 2]; c{3} = [1, 2, 3]; com...

7 maanden ago | 1

| accepted

Answered
오류를 해결해서 답을 도출하고싶어요. (결합하려는 배열의 차원이 일치하지 않습니다.)
말 그대로 크기가 맞지 않습니다. itr은 1x1이고 Re는 3x1이고 xn'는 1x3이라서 가로방향(horizontal)으로 합칠 수 없습니다.

7 maanden ago | 1

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

12 maanden ago

Solved


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

12 maanden ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

12 maanden ago

Answered
How to make a line in Mohrcircle
Because the center is fixed and the lines would pass the center (because it's Mohr's circle), all you need is either x value of ...

12 maanden ago | 2

Question


lookfor could not find polyfit using keyword 'polynomial' and 'fitting'.
I thought the function lookfor searches for the keyword given in the first line (referred as 'summary line' in the reference pag...

12 maanden ago | 1 answer | 2

1

answer

Answered
Help using fsolve (theta beta mach)
You do not need fsolve. Code below would be enough. num = M1^2 * (sin(beta))^2 - 1; den = M1^2 * (gamma + cos(2*beta)) ...

12 maanden ago | 0

Answered
Matlab memory optimization regarding output arguments
It depends. If the else block runs (y = x) in functieLocala, y shares x because it is just another name of same matrix. If leng...

12 maanden ago | 2

| accepted

Answered
스크립트의 함수 정의는 파일의 끝에 표시되어야 합니다. "preprocessMiniBatch" 함수 정의 뒤에 있는 모든 명령문을 첫 번째 로컬 함수 정의 앞으로 이동하십시오.
함수는 스크립트 중간에 정의될 수 없습니다. 코드 중 아래 부분을 스크립트 맨 뒤로 옮기고 실행해보세요. function X = preprocessMiniBatch(data) % Concatenate mini-ba...

12 maanden ago | 1

| accepted

Answered
출력 줄바꿈
fprintf를 쓰면 줄넘김 없이 출력할 수 있습니다. for i = 1:10 fprintf('%d ', i) end

ongeveer een jaar ago | 0

| accepted

Answered
Can you help me debug this code?
1. If you intended to make sensitivityAnalysis and monteCarloSimulation to be nested functions, the overall code should be also ...

meer dan een jaar ago | 0

Answered
How to figure out "preview too large to be displayed" error while importing .mat file with import wizard
The preview pane on the Import Wizard window tries to show all the elements of selected matrix which may fail if it has too many...

meer dan een jaar ago | 1

| accepted

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

meer dan een jaar ago

Answered
Defining Private and Public Fields within a Struct
As far as I know, matlab struct does not support access modifiers. Maybe you need to write a class which starts like this: cl...

meer dan een jaar ago | 0

Answered
Why aren't my dashed lines working?
If 'Bell412' is the label of ConstantLine, you should write the line specifiers before the label. yline(1,'r--','Bell412')

meer dan een jaar ago | 0

| accepted

Answered
애드온 툴박스 설치 시, 이 컴퓨터에서 실행 중인 MATLAB 세션이 있습니다. 라는 오류창
백그라운드에서 돌아가고 있는 매트랩 세션이 있지 않은지 확인해보세요. 작업관리자 - 세부정보에서 matlab.exe가 돌아가고 있다면, 강제종료 후에 설치해보세요.

meer dan een jaar ago | 0

Answered
>> fun_f 입력 인수가 부족합니다. 오류 발생: fun_f (7번 라인) theta_d(1:n)=theta(n+1:2*n);
함수의 첫 줄은 함수의 입력과 출력을 선언하는 부분입니다. function theta_d=fun_f(t,theta) 위와 같이 작성된 함수는, 입력인자 2개(t, theta)를 받아서 함수 내부에서 theta_d를 계산한 뒤 ...

meer dan een jaar ago | 0

Answered
fsolve 오류에 대한 질문
fsolve는 equation이 여러 개 있을 때 사용하며, equation이 하나일 때에는 fzero를 사용하는 것이 좋습니다. fzero는 지정한 초기값에서부터 방정식의 해를 찾아가는 방식인데, 주어진 F에 x=0을 대입하면 ...

meer dan een jaar ago | 0

Answered
입력상수 부족문제 어떻게 해결해야하나요?
function이라는 키워드로 시작하는 함수의 첫 줄은 함수에 필요한 입력인자와 함수가 반환하는 출력인자를 정의합니다. 작성하신 코드의 첫 줄을 보면 function V = Poisson_FDM_Solver_2D(V, BC, ...

meer dan een jaar ago | 1

| accepted

Question


I want to turn on/off dependency of two class properties based on the third property.
I made a class "rect" for rectangle, with independent properties width, height and fix_aspect_ratio. What I want to do is: If ...

bijna 2 jaar ago | 1 answer | 0

1

answer

Solved


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

ongeveer 2 jaar ago

Solved


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

ongeveer 2 jaar ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

ongeveer 2 jaar ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

ongeveer 2 jaar ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

ongeveer 2 jaar ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

ongeveer 2 jaar ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

ongeveer 2 jaar ago

Load more