photo

Krish Desai


自 2015 起处于活动状态

Followers: 0   Following: 0

统计学

  • Thankful Level 4
  • First Answer

查看徽章

Feeds

排序方式:

提问


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 ...

8 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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...

9 years 前 | 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...

9 years 前 | 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...

9 years 前 | 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) ...

9 years 前 | 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;...

9 years 前 | 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=...

9 years 前 | 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)...

9 years 前 | 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; ...

9 years 前 | 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. ...

9 years 前 | 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

9 years 前 | 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...

9 years 前 | 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...

9 years 前 | 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...

9 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

9 years 前 | 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...

9 years 前 | 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...

9 years 前 | 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);

9 years 前 | 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...

9 years 前 | 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);...

9 years 前 | 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 ...

9 years 前 | 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...

9 years 前 | 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...

9 years 前 | 1 个回答 | 0

1

个回答

加载更多