photo

Arslan Ahmad


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Binary tree using structured arrays???Plz help
I am trying to make a binary tree of a given array=[0 7 4 3 9 6]; using structured arrays and plot using cellplot and find its d...

ongeveer 6 jaar ago | 1 answer | 0

1

answer

Question


Binary to floating point representation using IEEE-754
I am given a Character array of length 32 made of only zeros and ones and i want to convert in floating point representation usi...

ongeveer 6 jaar ago | 2 answers | 0

2

answers

Answered
hi everyone i have a 9x9 chess board I am given an initial position and final position of knight. can anyone plz help me to find minimum no of moves to reach final position??
I did it myself easy way using structured arrays with the help from another code. function [turns] = myKnightTo(board_d...

ongeveer 6 jaar ago | 0

| accepted

2

answers

Question


Hi i have made a separable differential equation now i want to put values of t at instant, equations are made but i down know how to put value
syms A(t) C(t) k k=4; ode1=diff(A,t)==-k*A ode2=diff(C,t)==k*A odes=[ode1;ode2] S=dsolve(od...

ongeveer 6 jaar ago | 2 answers | 0

2

answers

Question


Hi i want to display two strings in one function but G is showing but M is not i dont know what the problem is kindly help me??
function [G,M]=myGreeting(name, major, year) frmtspc1='Hi, my name is %s and my major is %s.\nI started at Cal in %d.';...

ongeveer 6 jaar ago | 1 answer | 0

1

answer

Question


I have a code for simulation of earth sun and moon i need to incorporate mercury how would i do it please help.
function [] = SunEarthMoon(years,framerate) % Inputs: % years = Observation Time Period (years) % framera...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


I am writing a code that will check two numbers whether they are relatively prime or not if they are it would return 1 else 00the problem is that i am getting 1 all the times. Kindly help me midfy my code.
function [r]=prime(a,b) a=input('Enter 1st number='); b=input('Enter 2nd number='); % factors for 1st num...

meer dan 6 jaar ago | 2 answers | 0

2

answers

Question


I want to solve this equation and plot it but lot of errors are coming kindly help
x=0:3; y=diff((x^3)*(ln(3*x+1))^2)

bijna 7 jaar ago | 1 answer | 0

1

answer

Question


I am stuck in a question
my code is syms y(t); ode = diff(y,t) == (1-y)*exp(-0.1*y) ysol(t) = dsolve(ode) cond = y(0) == .5; ysol(t) = ds...

ongeveer 7 jaar ago | 1 answer | 0

1

answer

Question


i am solving a ode
syms y(t); ode = diff(y,t) == (1-y)*exp(-0.1*y) ysol(t) = dsolve(ode) cond = y(0) == .5; ysol(...

ongeveer 7 jaar ago | 1 answer | 0

1

answer