Community Profile

photo

Krish Desai


2015년부터 활동

통계

  • Thankful Level 4
  • First Answer

배지 보기

Content Feed

보기 기준

질문


How can I change multiple variable name within a loop, while assigning those variables as matrix values?
I have a n x 3 matrix called dataMat. I also have n amount of processes that this code will eventually be able to handle. Each ...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Constant number is changing value, why?
So I have a 1 that should print out, but instead only on the first line does 1 print out, for the rest the number keeps changing...

대략 8년 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to find dimension problems?
You could try to use the size function. For example: A= 1: 5 A= 1 2 3 4 5 size(A) ans= 1 5

대략 8년 전 | 0

질문


Change file name in loop
For some reason only one file dump_0 is being created. Does this mean Matlab is not going through the for loop? for t=0:dt:...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Output data to new text file for every time step
where should I put my printf's that for the current time steps that I have, I get 5 new files for each step with the x,y,z posi...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Why am I getting index must be positive integer or local error?
for ind=0:1920 U=3*ind+linspace(1,3,3); k= PHI_disp_RBME_ModePlot_N(ind); r=xlocs_full(ind); end i=...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to graph the displacement of an atom? (formula below)
*u*(jl,t)=Σ *U*(j,k,v)exp(i[k*r(jl)-⍵(k,v)t]) the displacement of the jth atom in the lth unit cell. Sum of all wave vecto...

대략 8년 전 | 답변 수: 0 | 0

0

답변

질문


Plotting a function error
I'm trying to plot the following: y=((e^(-6t))/6)*(1-9e^(6t)+14e^(6t) t=-10:1:10; plot (t,((exp(-6*t))/6)*(1-9*exp(4*...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to graph this function?
So I'm trying to graph a function and when I plot the following: plot(y,(.65*y)-(0.65*y.^2/10.5)); It works fine but whe...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Why is my graph stopping at 10?
So I'm graphing the following (note: I'm also graphing a direction field) and when I plot it the graph stops when x=10. Any sugg...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to Alternate Between Two Different Graphs
So I'm plotting a graph and the direction field. Is there any way I can press a button and switch between the two graphs, also c...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


How to graph a differential equation
The equation I am trying to graph: f(y)=r(1−(y/L)y - py^2/(q+y^2) Where p=1.2, q=1 and L=6.1 function yp=fishfun(t,y) ...

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


Get rid of unwanted output
I have the following code function output=beautyofmath(i) for i = 1:9 if i == 1 j(i, 1) = i;...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Problem creating an equation
I am trying to create f=e^(cos(t))+-2cos(4t)-(sin(t/12))^5 is the below the same thing or do I have to change it? f=...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Function that graphs equations
Create a function named butterfly. The function receives three input arguments and returns two output variables (x and y values)...

8년 초과 전 | 답변 수: 3 | 0

3

답변

질문


Get rid of unwanted output
I have the following code: function output=beautyofmath(i) for i = 1:9 if i == 1 j(i, 1) = i; ...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to make a Palindrome Checker
I need to write a code that checks to see if an input is a palindrome-same backwards as forwards, for instance madam or rotor. ...

8년 초과 전 | 답변 수: 2 | 0

2

답변

질문


How to select the first letter of every word
I have no idea how I would go about doing this Input: I like eating pizza Output: Ilep

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Select first letter in multiple words
I want to select the first letter in every word in a string statement. example: Input: 'Are you going to see the new ABC s...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Create Minesweeper Like Game
I create this board with my code: 1 2 3 4 5 1x x x x x 2x x x x x 3x k x x x 4x x x k x 5x x x x x I want to replac...

8년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Create game board in matlab
I want to create a board that displays for the user to see. I then want the user to be able to enter an x and y coordinate and r...

8년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Use user input to change board
I have a function that makes a board function userboard=userboard(n) userboard = cell(n+1,n+1); % initialize the board ...

8년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Randomly insert new variable
My code currently creates a board of size n x n (user input) What I want to do now is to have certain positions on this board b...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Get multiple variables in an input
What I want to do is to get separate variables for the user inputted "row" and "column". Is there a function I can use to do thi...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Prompt user for a text string
This keeps coming up as an error, what am I doing wrong? prompt= 'State your name, Your Grace '; name=input(prompt);

8년 초과 전 | 답변 수: 2 | 0

2

답변

질문


How to Make a board in Matlab
I want to make a n x n size board in Matlab (n is a user input). How do I do this? I want it to appear as: 1 2 3 4 5 6 7...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Image into grayscale without using toolbox
This is my current code: function out = luminance(current_img ) R=current_img(:,:,1); G=current_img(:,:,2);...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Convert vector position to real number
Really simple question, I have the following: >> vec=[44 3 2 9 11 6] vec = 44 3 2 9 11 ...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Write a function to add random noise to an image in matlab
How do I create a function to add random noise without using imnoise? I am trying to figure out how to do it without using the b...

8년 초과 전 | 답변 수: 3 | 0

3

답변

질문


How to truncate the image values so they stay in the [0 255] range
This is my current code: function newImg = adjust_img(current_img) for current_img>255 new=255; newI...

8년 초과 전 | 답변 수: 1 | 0

1

답변

더 보기