photo

Krish Desai


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 4
  • First Answer

View badges

Feeds

View by

Question


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

ongeveer 8 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer

Answered
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

meer dan 8 jaar ago | 0

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 3 answers | 0

3

answers

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 2 answers | 0

2

answers

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 9 jaar ago | 2 answers | 0

2

answers

Question


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

bijna 9 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 9 jaar ago | 0 answers | 0

0

answers

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


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);

ongeveer 9 jaar ago | 2 answers | 0

2

answers

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 9 jaar ago | 3 answers | 0

3

answers

Question


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

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Load more