photo

Krish Desai


Attivo dal 2015

Followers: 0   Following: 0

Statistica

  • Thankful Level 4
  • First Answer

Visualizza badge

Feeds

Visto da

Domanda


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

circa 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Risposto
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

oltre 8 anni fa | 0

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 3 risposte | 0

3

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 3 risposte | 0

3

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Carica altro