Community Profile

Contact

Top 5% contributor

Hello, suppose I have a vector in legnth of 100 that contains a number between 1-4 how can I make a frequncy vector using th...

3 Answers

0

Asked 2 years ago

Hello, Suppose I have a date in this form only : 14/2/1923 or 8/2/1923 (not 14/02/1923 or 08/02/1923) How can I split it ...

thank's for the comments! but isn't there any simpler code? it's one of my first exercises in matlab and I don't think we are al...

Answered 2 years ago

thanks... how do I use the switch and case if I want to sort number of situations if days < 10 of month < 10 etc... switch mo...

*For example:* sampledata: hello world hello hello world world for i=1:size(sampleData,1) [x y]=n...

2 Answers

Hello, I'm writing a function which returns the sequences of n requested letters in a string. For example, : string =...

I running this code and and I don't understand why it is writing me that x is less than y... can you help me figure this out? ...

Let X ~ gamma (60,0.5) and I want to calculate P(X < 5) for example. How can I use gampdf and gamcdf for calculating this? I c...

1 Answers

I Have a database called DB and when I run DB at the command window I get: DB = Template: {'date' 'name' 'ph...

Hello, suppose I have the file bbb.txt: date intrest profit loss 24/4/2013 5 232 3232 23/4/2013 6 4...

function DB = DBInit() DB.Records = []; DB.Template = {}; end what's the diffrence between [] and {}?

Example: M= rand(5) printmat(M, 'My Matrix', 'ROW1 ROW2 ROW3 ROW4 ROW5', 'FOO BAR BAZ BUZZ FUZZ' ) but...

I made an histogram (left one) and I want to change the y axis units so it will be like the histogram on the right. http://oi...

Hey, *First question :* Suppose I have two vectors : x = [1 2 3] and y=[0.5,0.35,0.15] and I want to draw a graph using only ...

function totalDays=dateDiff(date1,date2) y1=date1(3); y2=date2(3); diff1 = dateDiffSameY(date1,[31 12 y1])+1; diff...

Hello, I want to write a function code that draw a funcion based on the user input. function plotFunc(f,x_min,x_max) ...

Suppose I have : x = 1-2 frequency 5 probability 1/2 x= 2-4 frequency 3 probability 3/10 x = 4-6 frequency 2 probability...

I'm new in matlab and I want to ask what each symbol means. <http://oi45.tinypic.com/s5v8lt.jpg> <<http://oi45.tinypic.com...

for example: a=[1 1 2000] ---> 1/1/2000 I'm only allowed using num2str but I don't understand how to use it. thank's..

hey, I want to write a program that returns the day diffrence between two specific dats. Now,, I want the second date to be ...

1

hey, i'm trying to take a sample from a raw vector using myRandPerm. i had started in the folowing way: function s=sample(...

Hello, suppose I have a vector of string [1 2 3 4] and i want to change it to a vector of nmbers to do a numeric caculations,...

Asumming that I have a string = 'abcd' and i want to sum 'a' and 'b' to be z = 'ab'... i guess a(1)+a(2) won't work... ...

Hey, I hope that you could help me figure out this problem : http://img13.imageshack.us/img13/9687/problemkp.jpg thank yo...

I'm trying to draw a graph of density in matlab and I'm encountering several problems. First, binValues is a function that do...

I'm writing a function which recives a matrix of birth and death dates and return the number of days between them. function...

Hey! I'm trying to write a program which take two matrices when one is a type of coin(for exmple: 1 cent, 2 cent etc) and fre...

Hello, Suppose I have a distribution with this pdf: p*(x==0) + (1-p)*poisspdf(2,x(i)) her log likelihood will be: ...

0 Answers

Hello! I'm trying to build a previous nod vector and I'm handling some problems. not clear, right? :) that's way I'll explai...

Hello, *1: * I wrote a function that does some manipulations over a vector strings. Now, I want to apply it on text files...